Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Configure ATR variable without code

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

    Configure ATR variable without code

    Hi,

    How do I define a stop in the strategy wizard when the price falls back by half the ATR?

    Do I need to use coding or is it possible to do so in the condition builder? I ve been working for hours on that and I can't figure it out...

    Thanks.

    #2
    Hello,

    Sure, this can be done however takes a little bit to figure out.

    First things first you need to be able to figure out at what point you want to take this measurement.

    At the high of the day? the swing high? what value? or any value?

    How do I define a stop in the strategy wizard when the price falls back by half the ATR?
    Then you take take the ATR and devide that by 2 with an offset. Then you compare that and store this value in variable in the DoTheFollowing section.

    Then you take that variable this is the number of ticks down or up your watching for.

    Then you take that variable and subtract it vs the Close price to get the trigger price. This is all in the DoTheFollowing section of the first bar that you start monitoring for this.

    Then your setup in a secondary set to check if Close price is >= or <= depending on if your planning on going long or short before you go live this trigger price which would be your half atr level.

    Then take action in the do the following.

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      Thanks Brett. I m still confused with what to do here:

      "take the ATR and devide that by 2 with an offset. Then you compare that and store this value in variable in the DoTheFollowing section"

      I don't know how to store a value in a variable under "Do the Following" section.
      You know what, I learned to use NT intuitively in the past 3 days I leased it, but I think I need to read the Condition Builder help guide and see if I can figure out how to configure what you described to me. I ll let you know if I still cant figure it out. Is there any other sections I should read in the help guide, in addition to the "Condition Builder", to understand how to configure this?

      Thanks.

      Comment


        #4
        hello,

        Thats ok this one was a little tricky expecially if you havnt worked with the strategy wizard much.

        To do divides best way is to use percentage offset mode like this.

        50 Percent is the same as divide by 2.
        Attached Files
        BrettNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        633 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        364 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        567 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        568 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X