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 andrewtrades, Today, 04:57 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        5 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        436 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        7 views
        0 likes
        Last Post FAQtrader  
        Started by rocketman7, Today, 09:41 AM
        5 responses
        19 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X