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 samish18, Today, 01:01 PM
        0 responses
        4 views
        0 likes
        Last Post samish18  
        Started by WHICKED, Today, 12:56 PM
        0 responses
        7 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Started by Spiderbird, Today, 12:15 PM
        2 responses
        11 views
        0 likes
        Last Post Spiderbird  
        Started by WHICKED, Today, 12:45 PM
        0 responses
        7 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Started by FrazMann, Today, 11:21 AM
        2 responses
        8 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Working...
        X