![]() |
|
|||||||
| Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Junior Member
Join Date: Sep 2009
Posts: 13
Thanks: 0
Thanked 0 times in 0 posts
|
##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]); } |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
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.
Adam P.
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |