Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Inflection range for HMA

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

    Inflection range for HMA

    I am having trouble finding a way to get strategy builder to identify a change in the hull moving average's direction ANYTIME in the past 4 bars from rising to falling or falling to rising. I have tried slope and "is rising" but they don't want to work. Please assist is finding the strategy builder setup that will identify the 4 bars after an HMA has turned around. I need that as a filter for another indicator that will serve as the trigger to buy which is why the HMA can change in bar 0,1,2,3, or 4...doesn't matter just so long as it turned in one of those 4 bars. Many thanks!

    #2
    Try Is HMA Greater (or Less) than HMA One bar ago and use a lookback of 4 bars

    Comment


      #3
      Thanks, I'm new to this and I have the HMA(0)>HMA(1) part down but I don't see where to add the lookback period. It's not "properties offset" in Strategy Builder is it?

      Comment


        #4
        Originally posted by bsbisme View Post
        Thanks, I'm new to this and I have the HMA(0)>HMA(1) part down but I don't see where to add the lookback period. It's not "properties offset" in Strategy Builder is it?
        No its above properties under General/ bars ago

        Comment


          #5
          Hello bsbisme,

          Thanks for your post.

          Joccee310 has provided some good information on this topic.

          The BarsAgo property for the indicator determines what bar you are comparing the HMA() value of.

          You could detect if the current bar HMA() indicator value (Indicators folder > HMA > BarsAgo set to 0) is greater than the previous HMA() indicator value (Indicators folder > HMA > BarsAgo set to 1) to determine if the current HMA value is up from the previous bar's value.

          You could detect if the current bar HMA() value is less than the previous HMA() value to detect if the current bar's value is down from the previous bar's value.

          See the help guide documentation below for more information.

          Conditions: https://ninjatrader.com/support/help...on_builder.htm
          <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

          Comment


            #6
            Thanks, I believe there still is some confusion (maybe on my part but not sure). What you describe above tells me if the HMA is greater or less than it was X bars ago. That part I get.

            What I'm looking for is a way to determine if the HMA has reversed course (from up to down or vice versa) 1 bar ago or 2 bars ago or 3 bars ago, etc....not just that it's higher or lower than X bars ago but did it reverse course sometime within the past X bars.

            Please see attached image.with notations on it for clarification. Many thanks!

            Comment


              #7
              Just to further clarify, Jocce310's concept of a lookback is exactly what I need but I don't know how to apply that in this situation. Thanks

              Comment


                #8
                Hello bsbisme,

                Thanks for your notes.

                Greater or Less than comparisons do not allow you to specify a lookback period.

                You could consider checking if the previous bar's Slope() value (Misc folder > Slope) of the HMA is greater than 0 and check if the current bar's Slope() value of the HMA is less than 0 to determine if the HMA changed direction downward.

                To detect if the HMA changed direction upward you could consider checking if the previous bar's Slope() value of the HMA is less than 0 and check if the current bar's Slope() value of the HMA is greater than 0.

                Slope(): https://ninjatrader.com/support/help.../nt8/slope.htm
                <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

                Comment


                  #9
                  Hello,
                  As a late follow up to this question....I am trying to use strategy builder to detect the rise or decline of the slope of the HMA. I use this indicator: https://ninjatraderecosystem.com/use...d-options-nt8/

                  However, I can't seem to get the markers to print correctly when I say slope enhanced indicator of 1 < slope enhanced indicator 0 for a rising hma slope.

                  Any ideas why this will not work? Or any other ways to get this to work?

                  Thanks

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  577 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  334 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  101 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  553 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  551 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X