Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop loss vs trailing stop

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

    Stop loss vs trailing stop

    I saw in the help guide that The SetStopLoss() method can NOT be used concurrently with the SetTrailStop() method for the same position, if both methods are called for the same position (fromEntrySignal) the SetStopLoss() will always take precedence
    So in the code
    protectedoverridevoid Initialize()
    {
    SetStopLoss(CalculationMode.Percent, perstop);
    SetTrailStop(CalculationMode.Percent,
    2*perstop);

    CalculateOnBarClose =
    true;
    }
    it seems SetStopLoss will predominate.
    But this conjonction of a stop loss & a trailing stop is possible in Strategy ATM... How to code it?


    #2
    Just answered you here - http://www.ninjatrader-support2.com/...d.php?p=126943
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by TheWhiteDragon, 01-21-2019, 12:44 PM
    4 responses
    541 views
    0 likes
    Last Post PaulMohn  
    Started by GLFX005, Today, 03:23 AM
    0 responses
    2 views
    0 likes
    Last Post GLFX005
    by GLFX005
     
    Started by XXtrader, Yesterday, 11:30 PM
    2 responses
    11 views
    0 likes
    Last Post XXtrader  
    Started by Waxavi, Today, 02:10 AM
    0 responses
    7 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by TradeForge, Today, 02:09 AM
    0 responses
    14 views
    0 likes
    Last Post TradeForge  
    Working...
    X