Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Historical and Realtime

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

    Historical and Realtime

    Hello Support,

    My indicator has historical and realtime plot. It is working ok except when I load the chart not at the rightmost (ie. last bar is not in the viewed chart page), the historical are plotted as expected, but when I scoll to the right, historical are all zero. After that the realtime portion is plotting.

    What is the cause ? and how can I fix it?

    Thanks.

    Regards.
    EdwardK

    #2
    Hello EdwardK,

    Can you share more about how this is structured?
    Which version are you using?

    Something like:

    if (Historical)
    Plot0.Set(10);

    else
    Plot0.Set(20);
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Hello RyanM,

      Yes, something like what you wrote.
      Actually when I scroll to the right, the zeros are already actually the realtime portion. I have an MA plot that uses two plots, one for Historical and one for Realtime, the zero is showing the color of Realtime MA.

      I am using NT6.5.

      Thanks.

      Regards,
      EdwardK.

      Comment


        #4
        I'm not sure why you're getting those results. If you can share the indicator or a code snippet I will take a look here.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Hello RyanM,

          It is a weird effects. But it is fixed, but probably there are still issues, please read on.
          I just use a big else portion, rather than having multiple !Historical
          Probably previously some realtime code gets executed when scrolling right. I have no idea why it is so.

          When I reload the indicator, I saw it can exhibit two cases:
          Say now it is 3PM. last bar on the viewed page 1PM.
          1. Prints showing till the last bar on the viewed page. Then first print of my RT bar comes in but showing just past 1PM.

          2. Prints showing till the actual last bar of 3PM, then prints RT bars as it is formed.

          I believe the correct behaviour should be like case1 but when RT bar is formed it should print correct time.

          What could be the cause ? How to fix this ?

          Thanks.
          Regards,
          EdwardK.

          Comment


            #6
            I'm not sure how to setup what you're seeing. Using a brief test snippet everything works as expected. Do you have something to share here that I can try out?
            Ryan M.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            566 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            330 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
            547 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            548 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X