NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Strategy Analyzer

Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer.

Reply
 
Thread Tools Display Modes
Old 11-12-2011, 07:54 PM   #1
JPMAN
Junior Member
 
Join Date: Sep 2009
Posts: 13
Thanks: 0
Thanked 0 times in 0 posts
Default I cannot treat StrategyPlot

##ENGHLISH##
Some time ago in the following threads
http://www.ninjatrader.com/support/f...ad.php?t=45451
Thank you for an answer.
Some time ago in the following threads
http://www.ninjatrader.com/support/f...ad.php?t=45451
Thank you for an answer.
The strategy that had you introduce it by an answer without a method to let you display a multi-frame in a chart of Strategy Analyzer being found: I describe StrategyPlot as follows and carried it out, but the indication of the second panel was possible, but cannot display the second data in a blank.
I uploaded it with the chart of the problem as IMG.
Why will you be?
The following states
Some other time thanking you in advance.
##JAPANESE##
先ほどは以下のスレッドにて
http://www.ninjatrader.com/support/f...ad.php?t=45451
ご回答ありがとうございます。
マルチフレームをStrategy Analyzerのチャートにて表示させる方法が見つけられず、回答にて紹介していただいた戦略:Stra tegyPlotを以下の様に記述して実行してみましたが、2つ目のパネルの表示はできましたが空白で、セ カンドデータを表示できません。
その問題のチャートをIMGにしてアップロードしました。
なぜでしょうか?
改めて宜しくお願いします。

protected override void Initialize()
{
CalculateOnBarClose = true;

// Create a multi-time frame strategy
Add(PeriodType.Minute, 20);

/* Add our blank placeholder indicators. The parameter we pass in is used to distinguish the two
indicators from each other. */
Add(StrategyPlot(0));
Add(StrategyPlot(1));

// Set the color for the indicator plots
StrategyPlot(0).Plots[0].Pen.Color = Color.Blue;
StrategyPlot(1).Plots[0].Pen.Color = Color.YellowGreen;

// Set the panel which the plots will be placed on. 1 = price panel, 2 = panel under the price panel, etc.
StrategyPlot(0).PanelUI = 1;
StrategyPlot(1).PanelUI = 2;

// For more options please see the forum tip titled "Adding Indicators to Strategies"
// http://www.ninjatrader.com/support/forum/showthread.php?t=3228
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
/* Set the values of our indicators. One of them is set to the High of the primary bar series while the
other is set to the High of the secondary bar series. This effectively creates a multi-time frame plot. */
StrategyPlot(0).Value.Set(High[0]);
//StrategyPlot(1).Value.Set(Closes[1][0]);
StrategyPlot(1).Value.Set(Highs[1][0]);
}
Attached Images
File Type: jpg chart.jpg (103.1 KB, 25 views)
JPMAN is offline  
Reply With Quote
Old 11-13-2011, 10:53 AM   #2
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

JPMan,

Thanks for your note.

If you could check the "Log" tab of your Control Center and report any error messages to me it would be very helpful. Alternatively you can submit your log and trace files along with the strategy you have made to support[at]ninjatrader[dot]com and I would be happy to test on my end.

Please let me know if I may assist further.
NinjaTrader_AdamP is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
StrategyPlot in NT7 xTrader1 Version 7 Beta General Questions & Bug Reports 1 07-26-2010 09:19 AM
Line in StrategyPlot poseidon_sthlm Strategy Development 2 03-01-2010 08:06 AM
StrategyPlot backcolor gregid Indicator Development 1 08-31-2009 12:36 PM
Multiple StrategyPlot() stefy Strategy Development 31 03-04-2009 06:54 PM
StrategyPlot ATI user Strategy Development 1 06-30-2008 10:23 PM


All times are GMT -6. The time now is 12:39 AM.