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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
571 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
331 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
549 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
549 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|
Comment