Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stoploss order is cancelled while being executed

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

    Stoploss order is cancelled while being executed

    Hi,

    I have this issue that I don't understand, I am hoping you could shed some light on it.
    I have on the OnBarUpdate, a stoploss order that is following the price. But if the order is very large - so that it can't be executed on 1 bar, when the stop gets hit and starting to get executed, on the middle of the execution, when it changes to the next bar, from no-where it is trying to cancel the order and I get this error: (attached in picture).

    Why? How do I fix it?
    Attached Files
    Last edited by zoharcho; 06-30-2021, 06:18 AM.

    #2
    Hi, you can delete this post, I figure it out, I put 0,true in the right place, I missed a line that was overriding this setting, when I put it there also, no more cancel
    thanks!

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    55 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    132 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 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
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X