Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Replace active ATM with trailing stop

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

    Replace active ATM with trailing stop

    I really should know how to do this by now (IF it is possible)....

    Say I am long 2 units with 2 targets; first target is hit and a strong trend seems to be developing, so I cancel my remaining target, but rather than manually trail my stop, I would like to cancel the fixed stop and replace with a trailing stop ... how do I do this, please ?

    I know I can change a fixed stop within an ATM to a trailing stop before the entry order is placed, but normally I prefer fixed stops.

    #2
    Hello jtrade,

    When SetStopLoss is used in your script for a position, SetTrailStop will no longer work.

    From the help guide:
    "The SetTrailStop() method can NOT be used concurrently with the SetStopLoss() method for the same position, if both methods are called for the same position (fromEntrySignal) the SetStopLoss() will always take precedence. You can however, use both methods in the same strategy if they reference different signal names."
    http://ninjatrader.com/support/helpG...ttrailstop.htm

    However, you can add logic to your script that can cause the SetStopLoss to work like a trailing stop.

    Attached is a script I have made previously to demonstrate this.
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank-you, Chelsea.

      But is it possible to manually add a trailing stop to an existing position via either the DOM, Chart Trader, or Basic Order screen ?

      Comment


        #4
        Hi jtrade,

        My apologies, I was thinking this was in a NinjaScript Strategy.

        For an Atm Strategy on the SuperDOM, it would not be able to replace the Atm Strategy for an existing position after it has been opened.

        The trailing stop logic must be applied before the entry order is placed in the Atm Strategy setup. (You could set the trail to start after a certain amount of ticks of profit)

        I do want to mention that functionality to add an Atm to an existing position has been written into NinjaTrader 8.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        68 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        38 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        62 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X