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 samish18, Today, 10:13 AM
|
0 responses
2 views
0 likes
|
Last Post
by samish18
Today, 10:13 AM
|
||
Started by kenz987, Yesterday, 10:20 AM
|
2 responses
13 views
0 likes
|
Last Post
by kenz987
Today, 10:13 AM
|
||
Started by nicthe, 08-23-2023, 07:53 AM
|
7 responses
196 views
0 likes
|
Last Post
by nicthe
Today, 09:26 AM
|
||
Started by nicthe, Today, 09:24 AM
|
0 responses
5 views
0 likes
|
Last Post
by nicthe
Today, 09:24 AM
|
||
Started by stalt, 12-28-2015, 01:36 PM
|
6 responses
1,536 views
0 likes
|
Last Post
by giulyko00
Today, 09:16 AM
|
Comment