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 charlesugo_1, 05-26-2026, 05:03 PM
                  0 responses
                  51 views
                  0 likes
                  Last Post charlesugo_1  
                  Started by DannyP96, 05-18-2026, 02:38 PM
                  1 response
                  142 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by CarlTrading, 05-11-2026, 05:56 AM
                  0 responses
                  160 views
                  0 likes
                  Last Post CarlTrading  
                  Started by CarlTrading, 05-10-2026, 08:12 PM
                  0 responses
                  96 views
                  0 likes
                  Last Post CarlTrading  
                  Started by Hwop38, 05-04-2026, 07:02 PM
                  0 responses
                  275 views
                  0 likes
                  Last Post Hwop38
                  by Hwop38
                   
                  Working...
                  X