Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

strategy setstoploss setprofittarget oco entries

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

    strategy setstoploss setprofittarget oco entries

    Hello i just want to confirm SetStopLoss() SetProfitTarget() OCO behaviour when using

    EnterLongStop and EnterShortStop - if there is slippage on the market order when price is reached the SetStopLoss and SetProfitTarget will be based on the fill price and not the stopPrice specified as parameter to EnterLongStop & EnterShortStop.

    If there is slippage on entry that is understood and i just want to ensure stop and profit targets are set as expected.

    thanks and hope this is clear.

    #2
    Hello soulfx,

    Thank you for your post.

    Correct, the SetStopLoss() and SetProfitTarget() will be set the number of ticks or the percent away from the average entry price (filled price). If you use price for the calculation mode it will stay the same no matter the fill price.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by sjsj2732, Yesterday, 04:31 AM
    0 responses
    30 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    286 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    282 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    132 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    90 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X