Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 hazylizard, Today, 08:38 AM
    2 responses
    8 views
    0 likes
    Last Post hazylizard  
    Started by geddyisodin, Today, 05:20 AM
    2 responses
    17 views
    0 likes
    Last Post geddyisodin  
    Started by Max238, Today, 01:28 AM
    5 responses
    47 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by giulyko00, Yesterday, 12:03 PM
    3 responses
    13 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by habeebft, Today, 07:27 AM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_ChristopherS  
    Working...
    X