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 kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    17 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    59 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    43 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    47 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    38 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X