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 Hwop38, 05-04-2026, 07:02 PM
|
0 responses
152 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
304 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
244 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
345 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
175 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
Comment