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 NullPointStrategies, Today, 05:17 AM
      0 responses
      50 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      126 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      69 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X