Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SetStoploss and ExitLong/ExitShort working at same moment

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

    SetStoploss and ExitLong/ExitShort working at same moment

    I have the problem that sometimes an order has been executed that is not under control of my strategy. It is executed because on the same moment a stoploss and exitLong/exitShort has been executed.

    In the Initialize section I placed my StopLoss for a strategy. In the OnBarUpdate section I programmed ExitLong and the ExitShort commands. Based on certain conditions the ExitLong and ExitShort will be executed.

    There are moments that the StopLoss is executed and the ExitLong/ExitShort are executed on the same moment (minute.second).
    Instead of a flat situation an new order has been executed. Do you have a example to solve this problem.

    #2
    Hi edmar,

    If you submit a market sell order, you have the possibility of submitting both an order to sell with the market order and the stoploss.

    Instead, I suggest adjusting the StopLoss order to get filled for specific condition.

    More info at - http://www.ninjatrader.com/support/f...ead.php?t=3222
    TimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    64 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    35 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    59 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Working...
    X