Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

I cannot treat StrategyPlot

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    I cannot treat StrategyPlot

    ##ENGHLISH##
    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]);
    }
    Attached Files

    #2
    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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by f.saeidi, Today, 08:01 PM
    0 responses
    2 views
    0 likes
    Last Post f.saeidi  
    Started by Rapine Heihei, Today, 07:51 PM
    0 responses
    3 views
    0 likes
    Last Post Rapine Heihei  
    Started by frslvr, 04-11-2024, 07:26 AM
    5 responses
    96 views
    1 like
    Last Post caryc123  
    Started by algospoke, 04-17-2024, 06:40 PM
    6 responses
    49 views
    0 likes
    Last Post algospoke  
    Started by arvidvanstaey, Today, 02:19 PM
    4 responses
    11 views
    0 likes
    Last Post arvidvanstaey  
    Working...
    X