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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    45 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
    31 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
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X