Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    JimNinjaTrader Customer Service

    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 Stanfillirenfro, Today, 07:23 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by cmtjoancolmenero, Yesterday, 03:58 PM
      2 responses
      22 views
      0 likes
      Last Post cmtjoancolmenero  
      Started by olisav57, Yesterday, 07:39 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by cocoescala, 10-12-2018, 11:02 PM
      7 responses
      944 views
      0 likes
      Last Post Jquiroz1975  
      Started by oviejo, Today, 12:28 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X