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 Rocket, Yesterday, 06:03 PM
        1 response
        42 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by newton1, Yesterday, 09:54 AM
        2 responses
        61 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by SuperDude123, Yesterday, 08:31 AM
        3 responses
        101 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by jeliner, Yesterday, 12:58 AM
        1 response
        32 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by ezrollin, Yesterday, 12:29 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X