Print(PriorDayOHLC().PriorLow[1]);
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
PriorDayOHLC
Collapse
X
-
Hello cay7man,
Thank you for your post.
What is your input series for this script? Please see this forum post that explains indexing for PriorDayOHLC():
Creating an intraday strategy (10 min bars): Does PriorDayOHLC.PriorClose[0] (index 0) give the close of the last intraday bar while PriorDayOHLC.PriorClose[1] gives the close of the last session? Also, I notice that PriorDayOHLC.PriorClose and PriorDayOHLC.PriorOpen does not give the same values as the Open and Close of a
Your code will print the prior session's low according to 1 bar ago.
From the Help Guide:
// Prints the value of the prior session low
double value = PriorDayOHLC().PriorLow[0];
Try providing 0 for the barsAgo (the current bar processing). Are you still getting an incorrect value?
I look forward to your response.
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
42 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
25 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|
||
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
162 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
98 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
157 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
Comment