Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trailing stop

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

    Trailing stop

    Hi!
    I don't understand why my Trailing stop didn't work (see attachments)
    I have stop loss and Trailing stop set to 6 ticks.
    Any ideas?

    I have another question:
    How to realize ATM strategy, lets say 3 contracts with different stop losses and targets using strategy builder?

    thanks
    Attached Files

    #2
    Hi maratrm, you could unfortunately not combine the SetTrailStop and SetStopLoss on the same position, it would be either the trail stop or the stoploss - as otherwise one would be ignored. If you seek to start with a static stoploss and then change into a trailing mode later, please check into this reference sample we have on the topic - http://www.ninjatrader.com/support/f...ead.php?t=3222

    ATM's could only be called for exit management from a custom coded NinjaScript strategy, but unfortunately not from the Strategy Wizard.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      How can I include it in my strategy?
      I mean I know I have to unlock my strategy 1st.
      Where should I place the code?

      Comment


        #4
        maratrm, the code once unlocked would be worked in the OnBarUpdate() section. For a complete working example check into the SampleAtmStrategy installed per default with NinjaTrader.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by jclose, Today, 09:37 PM
        0 responses
        5 views
        0 likes
        Last Post jclose
        by jclose
         
        Started by WeyldFalcon, 08-07-2020, 06:13 AM
        10 responses
        1,414 views
        0 likes
        Last Post Traderontheroad  
        Started by firefoxforum12, Today, 08:53 PM
        0 responses
        11 views
        0 likes
        Last Post firefoxforum12  
        Started by stafe, Today, 08:34 PM
        0 responses
        11 views
        0 likes
        Last Post stafe
        by stafe
         
        Started by sastrades, 01-31-2024, 10:19 PM
        11 responses
        169 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X