Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Understanding Primary / Secondary Strategy Plot

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

    Understanding Primary / Secondary Strategy Plot

    Hello,

    I've attached a modified "SampleStrategyPlot" file and a screenshot to help me understand the primary and secondary relationships.

    The Primary Bars are based on high of the current bar and the Secondary Bars are based on OHLC for what I thought was the current bar:

    StrategyPlot(0).Value.Set(High[0]);
    StrategyPlot(
    1).Value.Set(Opens[1][0]);
    StrategyPlot(
    2).Value.Set(Highs[1][0]);
    StrategyPlot(
    3).Value.Set(Lows[1][0]);
    StrategyPlot(
    4).Value.Set(Closes[1][0]);

    You can see from the screenshot that the secondary plots are one bar behind the current primary bars. SetComputeOnClose = false. What do I need to change to show the secondary plots being updated dynamically?

    Sincerely,

    Kirk
    Attached Files

    #2
    Not sure what you mean. The StrategyPlots will take on the value you set it as you call it. It will take on the latest value the moment you call it. Remember only one BarsInProgress gets processed at once. If you have an incoming tick for the same instrument one of the time frames is processed first and all calls to access the other time frame's data will be 1 tick "behind" because it was not processed there yet.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Is there a way to get the secondary 3 minute plot to plot concurrently with each tick of the 3 minute primary?

      so that the plots are updating in realtime at the right-edge? (siimilar to the High[0])

      (I may need to re-study bar / tick timing, etc.)

      kz
      Attached Files

      Comment


        #4
        Depending on the ordering of your bar series you will achieve different OnBarUpdate() event sequencing. Please see the description in the reference sample on this issue. It will provide you with information on what needs to be done. Also, the StrategyPlot() is a temporary solution that has its limitations. NT7 will provide multi-time frame indicators for plotting purposes.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          okay, thanks,

          when is the approximate release date for NT7?

          kz

          Comment


            #6
            Beta slotted for early 2009.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            557 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            324 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            545 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            547 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X