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