Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
CurrentDayOHL().Open[0] returning wrong values
Collapse
X
-
CurrentDayOHL().Open[0] returning wrong values
CurrentDayOHL().Open[0] is returning the opening value of the current intraday bar instead of the current day's open.Tags: None
-
Ok, just figured out that you have to use CurrentDayOHL().CurrentOpen[0]
Not sure why the other is even there since it is misleading and useless.
-
Hello motownlucas,
Thank you for your post and glad to hear you were able to sort it out.
There may be some indicator or strategy instances where the current bars value would be needed. Of course, Open will be static throughout the day, however the High and Low are dynamic.MatthewNinjaTrader Product Management
Comment
-
Thanks for the quick response Matthew.
My point is that if you needed the current bar's opening value, you would use Open[0], not CurrentDayOHL().Open[0].
CurrentDayOHL().Open[0] implies that you are looking for the current day's opening value but that is not what it gives.
Needless confusion that adds no value.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Wave333, Today, 02:09 PM
|
2 responses
17 views
0 likes
|
Last Post
![]()
by Wave333
Today, 03:02 PM
|
||
Started by AyeSir, 04-19-2025, 03:01 PM
|
4 responses
39 views
0 likes
|
Last Post
![]()
by AyeSir
Today, 02:56 PM
|
||
Started by M_ichel, Today, 02:21 PM
|
0 responses
7 views
0 likes
|
Last Post
![]()
by M_ichel
Today, 02:21 PM
|
||
Started by manteored, 02-16-2023, 10:24 AM
|
7 responses
1,643 views
0 likes
|
Last Post
|
||
Started by Mike8085, 06-11-2013, 04:00 AM
|
10 responses
7,368 views
0 likes
|
Last Post
![]()
by alanbb8989
Today, 01:32 PM
|
Comment