Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Last Bar Before the RealTime Data

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

    Last Bar Before the RealTime Data

    Hi,

    Is there a way to know the last bar on chart before the real time data occur?

    Thanks.

    #2
    Hello kezyclaire,

    You can use Count - 2 to know the last bar in the dataset ahead of time in processing as long as tick replay is not being used. That gives you the bar index that you could compare against CurrentBar.

    Comment


      #3
      Hi Jesse,

      Thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      46 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      22 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      31 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X