Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BarsSinceNewTradingDay in replay returns incorrect bars

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

    BarsSinceNewTradingDay in replay returns incorrect bars

    Hi,

    I'm having problems using BarsSinceNewTradingDay in playback(replay) mode. I noticed that the number of bars correspond to the initial time in the replay data file and not the initial session time.
    For example, for my local time, the replay data files start at 9pm and my session starts at 3pm. The BarsSinceNewTradingDay returns a number of bars corresponding to 9pm and not 3pm.
    I don't see that in real time.

    Is there a way to make NT get the actual number bars since the beginning of the session? BTW, this feature used to work fine until recently.

    Thanks in advance,

    Juan

    #2
    Hello Juan,

    Thanks for your post.

    I have just tested this on the current release of NinjaTrader 8 and I am seeing the results I would expect. I am printing the bar timestamp alongside Bars.BarsSinceNewTradingDay and I have my my mouse over the bar that is the 5th bar from the session break line. In the output window, this is 4 since 0 reflects the first bar after the session break and the new trading day.

    Please test the same on your end after updating and let me know if you are getting different results than me.

    Update platform - https://ninjatrader.com/PlatformDirect

    I look forward to assisting.
    Attached Files

    Comment


      #3
      Thanks for the prompt reply. I think I had corrupted tick files. I re-installed the files and it seems to work OK.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      45 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      21 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