Is there a way to reconcile the numbers some way?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Differences in Open price
Collapse
X
-
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?Tags: None
-
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
-
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.Originally posted by NinjaTrader_Josh View Postmarketmasher,
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.
Comment
-
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 NullPointStrategies, Today, 05:17 AM
|
0 responses
50 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
126 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
69 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment