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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    56 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    143 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X