Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Add premarket to PriorDayOHLC
Collapse
X
-
Add premarket to PriorDayOHLC
Good morning, I am trying to modify the PriorDatOHLC indicator to show the highs and lows of the previous day and the premarket session from 4pm to 9:30 of the current day, but for some reason the indicator is calculating the premarket levels from 6pm instead of 4, and I can't figure out why, could you give me a clue? thanks a lot.1 PhotoTags: None
-
Hello micaeliglesias,
Thank you for your post.
The simplest way would be to create a custom trading hours template for this desired period of time, use that trading hours template in your chart, then apply the CurrentDayOHL and/or PriorDayOHLC to that chart.
The forum post linked below goes into detail:
We also have an existing sample script which gets the high and low for a specified time frame, you can specify that time frame to be the premarket hours:
Please let us know if you have any further questions.
-
thank you very much for your answer, I have tried the indicator that you offer me and the idea would be good, but it does not respect the hours that I indicate. I already knew the solution that you offer me to create a custom trading hours template, but it does not help me because my goal is to develop an indicator to be able to use it in starategy builder. thank you very much for your attention.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
599 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
345 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 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
558 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
558 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment