Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
strategy builder help- 30min high low break
Collapse
X
-
strategy builder help- 30min high low break
I am trying to build a strategy that calculates the high and low on a 30 minute bar and then enters a trade based on a break of that prior 30 minute bar high and low. I would like for this to repeat every 30 minutes throughout the day. Can anyone give me guidance on how to create this in strategy builder?Tags: None
-
Hello ageeholdings,
Welcome to the NinjaTrader forums!
You can create 2 variables to store the 30 min High and Low. If you aren't applying your strategy to a 30 Minute chart, you can add the additional time frame in the 'Additional Data' window.
In your actions, you can set your variables to the High and Low of the 30 minute series.
Then, you can use these saved variables in your a condition that checks if the High or Low of your desired series is greater/less than (or equal to) your saved variables.
Please see the attached screenshots that show an example.
Please let us know if you have any other questions.
-
-
thanks... how do i ensure only one trade per candle break takes place? currently if it breaks and profit target or stop loss is reached it immediately enters again on another break of the same candle.
Comment
-
Hello,
You can use BarsSinceEntryExecution() to check if it has been at least 1 bar since your last entry.
https://ninjatrader.com/support/help...yexecution.htm
Please let us know if you have any other questions.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
39 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
124 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
64 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
41 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment