Some time ago in the following threads
Thank you for an answer.
Some time ago in the following threads
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##
先ほどは以下のスレッドにて
ご回答ありがとうございます。
マルチフレームを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]);
}
Comment