Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Differences in Open price

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

    Differences in Open price

    I am using IB data and wrote a simple marker to display open (9:30 EST) price on ES (5min and 30min). I get different numbers depending on the chart timeframe I use. It is the same calc using ToTime(Time[0]) == 93000 and both charts set for CalculateOnBarClose = false;

    Is there a way to reconcile the numbers some way?
    Attached Files

    #2
    marketmasher,

    Consider this. When you do your Time[0] check you are simply checking for the timestamp of a particular bar. NinjaTrader timestamps bars with their closing time stamp so on a 30minute chart the 9:30 bar is actually from 9:00-9:30. This means the open price of that bar is really the price at 9:00. Now if you go over to the 5min chart, the 9:30 bar is from 9:25-9:30. The open is the price at 9:25. I believe that would be the discrepancy you are seeing.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      marketmasher,

      Consider this. When you do your Time[0] check you are simply checking for the timestamp of a particular bar. NinjaTrader timestamps bars with their closing time stamp so on a 30minute chart the 9:30 bar is actually from 9:00-9:30. This means the open price of that bar is really the price at 9:00. Now if you go over to the 5min chart, the 9:30 bar is from 9:25-9:30. The open is the price at 9:25. I believe that would be the discrepancy you are seeing.
      Sorry, but I'm confused - when I have the DataBox up and put the crosshair over the 9:30 EST bar on my 5min and 30min chart in turn, I was expecting the Open price to be the same since I am hovering the cursor over the 9:30 time period when both the 5min and 30min bar should start forming (Open). This is a bit non-intuitive.
      Attached Files

      Comment


        #4
        marketmasher,

        That is not how NinjaTrader builds bars. You are thinking of timestamping a bar with the beginning time of the bar time. NinjaTrader timestamps with the close of the bar time. You can very easily see this on a real-time chart. As a new bar begins to build the timestamp of that bar will be in the future representing the expected close time of that bar.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        148 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        71 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        79 views
        0 likes
        Last Post PaulMohn  
        Working...
        X