Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

StrategyPlot - Stops plotting correctly in real time

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

    StrategyPlot - Stops plotting correctly in real time

    Hi,

    I will provide more detail, but first I want to know if there is a quick fix for a common issue.

    I am using StrategyPlot to plot a spread between two stocks.

    it works, everything is doing as expected. The part that I want to know if anyone has run in to is when you run it in real time, it's correctly plotting up to the point you start the strategy and then as it runs in real time, the plot just keeps falling as though its not getting new data. Mind you if I "reload" the historical data, it then re-adjusts and shows correctly.

    I am using multi-series and I am using bars in progress, etc.

    If this is rare or unheard of issue, I will provide code and more detail. My guess is I am missing something obvious.


    Thanks,

    #2
    Hello,

    I cannot tell what is going on from you description below. What does "falling" mean exactly, etc.?

    Please post your code and a screen shot of what you are seeing and I will try to assist you.
    DenNinjaTrader Customer Service

    Comment


      #3
      Hi r2k Trader,
      I am having the same problem. It happens when I set CalculateOnBarClose = false in my strategy.
      Have you come up with an explanation?

      Comment


        #4
        Do you set CalculateOnBarClose somewhere in a called / referenced indicator? Then please remove the call completely and retry, this is a known bug fixed in NT7.

        Comment


          #5
          Hi Bertrand,
          thank you for replying.

          The answer is yes, I have a call to CalculateOnBarClosein the indicator plotted by the strategy, as I developped my indic with the wizard.

          Could it be the problem why the indicator did not plot when I tried to plot it directly using Add() in the init ? (currently I use StrategyPlot).

          Thanks.

          Comment


            #6
            Hello,

            Jumping in here, sorry.
            That doesn't sound proper. Can you post a code snipet?
            DenNinjaTrader Customer Service

            Comment


              #7
              no pbm,
              I already sent the strat+indic Attn Bertrand on 11/09.
              I can do it again if needed.

              Comment


                #8
                fle, you set CalculateOnBarClose in each referenced indicator > please remove those from the indicator Initialize() methods and then set this only from the calling strategy, then please rerun to test again.

                Comment


                  #9
                  I have removed them, and will as of know in all indicators that I will develop.

                  However, if I set COBC in my strat, at the first non historical tick the indicators go to zero.

                  I will stick w/ COBC = true, as I have other concerns (with multi instruments synchronisation).

                  Thank you for your help.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  672 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  379 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  111 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  577 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  582 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X