Thank you!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Time Range High/Low Breakout in Strategy Builder
Collapse
X
-
Time Range High/Low Breakout in Strategy Builder
Hello! I would like to know how to enter a position at the break of the high or low of a predefined time range (like the opening range). In strategy builder I figured out how to define the time range but I don't know how to enter a position when price breaks above/below the high/low of that range. I guess I have to define the high and low of that range and then make a condition for the breakout but I can't figure out how..
Thank you!
Tags: None
-
Hi nothingtrader,
ONE of the options to accomplish this with the StrategyBuilder could be to do the following:
Step 1) Add two variables of type double, a) dRangeHigh, b) dRangeLow,
Step 2) Reset them to zero at the start of each trading day,
Step 3) During the time of the opening range, set/update dRangeHigh and dRangeLow as needed, i.e. if
i) dRangeHigh == 0, set dRangeHigh to High[0], else if dRangeHigh > 0 AND dRangeHigh < High[0], set/update dRangeHigh to High[0],
ii) dRangeLow == 0, set dRangeLow to Low[0], else if dRangeLow > 0 AND dRangeLow > Low[0], set/update dRangeLow to Low[0].
The variable dRangeHigh will (in general) continue to increase during the range time and dRangeLow will, once initialized, (in general) continue to decrease during the range time.
Step 4) Apply your other entry logic, for example:
Time > end of opening range time AND High[0] > dRangeHigh, Go Long (or speculate on turnaround and Go Short)
Time > end of opening range time AND Low[0] < dRangeLow, Go Short (breakout in trend direction, or speculate on turnaround and Go Long).
I hope, this clarifies the concept of ONE of the options.
Have fun.
NT-Roland
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
54 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
130 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
70 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
44 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment