Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

accessing previous plot values

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

    accessing previous plot values

    Hello, i using a non time based custom bar type - not unlike range bars.
    Given we do not know when the current bar will close, various time calculations to determine the number of minutes/seconds duration for the previous bar cant be determined until it closes and the first tick of the current bar (ie new bar just opened).
    This i see and have the Time methods to calculate this.

    What i am trying to do is then update the plot of the previous value ....

    which was set something like

    Values[0].Set(somevalue);

    even if i maintain in my own separate dataseries the values i need to reset previous plot to, is there a way to update the previous value?

    Do i need to do a plot override for this to repaint the values with updated values?

    As it happens i only really need access to the previous bars plot ie not the whole series from the first bar.

    thanks

    #2
    Hello Soulfx,

    Thank you for your note.

    Yes, you can set the value for the number of bars ago for the data series that you would like to change.

    Values[0].Set(1, somevalue);

    This will change the value from one bar ago.

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Perfect thanks - i was trying various syntax's using [] brackets but it wasn't happening - thanks for the correct syntax and thankfully no need to override plot (which i have done for other indicators)
      I did a search on this and the help and nothing came up so hopefully will help someone else too
      thanks again

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      558 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