Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

strategy builder help- 30min high low break

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?

    #2
    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.
    Attached Files

    Comment


      #3
      would this need to be setup as set1 and set2?

      Comment


        #4
        Hello,

        Yes, these are in two condition sets so that one condition set can calculate the values and store them to a variable at a specific time, then in the second condition set you can use those saved values on other bars.

        Please let me know if you have any other questions.

        Comment


          #5
          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


            #6
            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 NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            124 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            64 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            41 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            46 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X