Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Changing the trailing stop

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

    Changing the trailing stop

    I want to change the trailing stop in an automated strategy similar to how it is done in the ATM. After a certain level a profit I want to tighten the trail. Will I need to use an OCO to recreate the trailing parameters? Also, is it possible to backtest OCOs ?

    #2
    Asing,

    Its possible to use a pre-made ATM strategy for all order entries in a automated strategy. There is a reference sample on how to do this that comes with NinjaTrader accessible by going to Tools > Edit NinjaScript > Strategy > SampleATMStrategy.

    Here is a link to our help guide on ATM strategy methods : http://www.ninjatrader.com/support/h...gy_methods.htm

    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the quick reply. My impression was that using the pre-made ATM was only as a semi-manual exit option. So you could automate an entry and then manage the exit with the ATM. Also, I thought that you can not test any strategies with the pre-made ATM trailing stops?

      Comment


        #4
        Asing,

        Yes, you could not test the strategy using the strategy wizard using ATM strategies.

        I would suggest that you consider the Unmanaged approach if you want to be able to backtest, as well as have all the functionality of a ATM strategy. The main issue here is you would need to program all the logic yourself.

        Here is a link to our help guide on the topic : http://www.ninjatrader.com/support/h...d_approach.htm

        Please let me know if I may assist further.
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          I am a little confused about using the ATM methods. If we used the" managed approach" with ATM methods, ( not using the wizard) can I create these trailing stops that tighten through an OCO call? and then back-test?

          Or is this only possible with the unmanaged approach?

          Comment


            #6
            Asing,

            You can use either a trailing stop or a static stop loss in the managed approach as SetStopLoss() will override the trailing stop. If you want to tighten the trailing stop, you can simply use : SetTrailStop() and use whatever logic you want to reset it.

            Please let me know if I may assist further.
            Adam 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
            109 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            573 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            575 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X