Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATR Trailing Stop Strategy

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

    ATR Trailing Stop Strategy

    New to Ninja Trader,

    Trying to figure out how to code or build a strategy based of a an ATR Trailing stop Indicator that I used on Think or Swim. I want to be able to view it on a chart as well at backtest around the indicator using different conditions. It might already be on here, and i cant find it. Thanks in advance.

    -Sean

    #2
    Hi seanfleming365,

    Thank you for your post.

    Depending on what you are looking to do, you can start with the Strategy Wizard, using the ATR:http://www.ninjatrader-support.com/H...lueComparisons

    In that example, the ADX is used, but you can use the ATR as well, once you're ready, you can open the code an manually edit the code.

    ATR Syntax: http://www.ninjatrader-support.com/H...guide.html?ATR
    TimNinjaTrader Customer Service

    Comment


      #3
      this is what im trying to get.
      see attached.
      im not a programmer, just a strategist.

      possible?
      Attached Files

      Comment


        #4
        Hi seanfleming365,

        Yes, in fact I was able to find a similar one on these forums: http://www.ninjatrader.com/support/f...id=1&linkid=20
        TimNinjaTrader Customer Service

        Comment


          #5
          ATR Trailing Stop Strategy

          Thank you very much. Big help.
          Another Question....
          Im trying to set up a strategy based on this indicator. I want it to trade in each direction once per day, one right after the other. first trade enter at 9:31am, exits on ATR Trailing Stop switch and reverses in opposite direction. 2 moves. 4 Executions.

          I cant quite figure out how to set number of trades allowed per day in the strategy wizard. Thanks in advance

          Comment


            #6
            Sean,

            You will need to use the User Variables and run a counter for how many times you have traded already. As you trade once, increase the counter by one. Then when that counter reaches your 2 limit, don't allow for trading anymore. For help on using User Variables, please see this reference sample: http://www.ninjatrader.com/support/f...ad.php?t=15417
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Hi seanfleming365,

              You'll likely
              Here is a sample on filtering the hours for your strategy: http://www.ninjatrader.com/support/f...ead.php?t=3226

              As for halting a strategy after one trade, there are several ways I can think of doing this, you may consider looking in to the follow reference sample for some ideas: http://www.ninjatrader.com/support/f...ad.php?t=19289
              TimNinjaTrader Customer Service

              Comment


                #8
                i have downloaded the zip files...
                dont quite understand how to implement them.
                am i looking for them in the strategy wizard?
                thanks in advance

                Comment


                  #9
                  Sean,

                  You can install the file via File>Utilities>Import NinjaScript. Then go to Tools>Edit NinjaScript>Strategy and select the file you just imported. Then it will open up the Strategy Wizard and you can see the relationship of how it creates things in the Strategy Wizard.
                  Josh P.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  648 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  369 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  108 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  572 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  573 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X