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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    65 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    139 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X