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 guillembm, Yesterday, 11:25 AM
        2 responses
        9 views
        0 likes
        Last Post guillembm  
        Started by junkone, 04-21-2024, 07:17 AM
        9 responses
        68 views
        0 likes
        Last Post jeronymite  
        Started by trilliantrader, 04-18-2024, 08:16 AM
        4 responses
        18 views
        0 likes
        Last Post trilliantrader  
        Started by mgco4you, Yesterday, 09:46 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by wzgy0920, Yesterday, 09:53 PM
        0 responses
        10 views
        0 likes
        Last Post wzgy0920  
        Working...
        X