Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Profit Target, Stop Loss & Trailing Stop

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

    Profit Target, Stop Loss & Trailing Stop

    I am trying to set a profit target, stop loss & trailing stop for my strategy. The trailing stop never seems to trigger even if i set it to 1 tick. It only works if I remove the SetStopLoss. Is it not possible to have all three running at the same time?

    HTML Code:
    else if (State == State.Configure)
                {
                    SetProfitTarget(CalculationMode.Currency,1000);
                    SetStopLoss(CalculationMode.Currency,500);
                    SetTrailStop(CalculationMode.Ticks,1);
                }​

    #2
    Based on the documentation here: SetTrailStop, SetTrailStop and SetStopLoss cannot be used together. See the first sentence under Notes.

    The SetTrailStop() method can NOT be used concurrently with the SetStopLoss() or SetParabolicStop() method for the same position, if any of methods are called for the same position (fromEntrySignal) the SetStopLoss() will always take precedence. You can however, use all three methods in the same strategy if they reference different signal names.​

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Working...
    X