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 bortz, 11-06-2023, 08:04 AM
        47 responses
        1,602 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        8 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        4 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        12 views
        0 likes
        Last Post Javierw.ok  
        Working...
        X