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 Berry Trader, Today, 09:45 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Started by quantyse_ntforum, 03-10-2025, 09:05 AM
        16 responses
        307 views
        0 likes
        Last Post zakki
        by zakki
         
        Started by M_ichel, Yesterday, 02:21 PM
        2 responses
        22 views
        1 like
        Last Post NinjaTrader_ChristopherJ  
        Started by shankar.deshapande, Today, 08:24 AM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by lacerda4269, Today, 08:03 AM
        1 response
        15 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X