Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
PriorDayOHLC
Collapse
X
-
Thanks for the suggestion, the -1 would returned would mean the condition did not evaluate to 'true'. Is your lookback high enough?
-
It sure would be nice if we could just call this..
PriorDayOHLC().PriorHigh[0].Time[0]
and it would return the time that the prior high happened.
It appears that theres something wrong with my logic. I am getting a -1 for the value of the Low bar.
PHP Code:int LowBar = LRO(delegate {return Low[0]==PriorDayOHLC().PriorLow[0];}, 1, PriorDayOHLC().Bars.Count);
Print(" Low @ Bar: " + LowBar.ToString() + " At: " + Time[LowBar]);
Print(" Low: " + PriorDayOHLC().PriorLow[0].ToString());
thanks
Leave a comment:
-
trade.ripper, I believe you could attempt getting them with the LRO method - http://www.ninjatrader-support.com/H...urenceLRO.html
Leave a comment:
-
PriorDayOHLC
Hi!
Does anyone know if there is a way to get the bar number or bar times from the PriorDayOHLC.PriorHigh[0] or PriorDayOHLC.PriorLow[0] or PriorDayOHLC.PriorClose[0]?
thanksTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by alifarahani, Today, 09:40 AM
|
6 responses
31 views
0 likes
|
Last Post
by alifarahani
Today, 03:18 PM
|
||
Started by Waxavi, Today, 02:10 AM
|
1 response
17 views
0 likes
|
Last Post Today, 03:03 PM | ||
Started by Kaledus, Today, 01:29 PM
|
5 responses
14 views
0 likes
|
Last Post Today, 02:56 PM | ||
Started by Waxavi, Today, 02:00 AM
|
1 response
12 views
0 likes
|
Last Post Today, 02:53 PM | ||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
3 responses
17 views
0 likes
|
Last Post Today, 02:41 PM |
Leave a comment: