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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    366 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    237 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    205 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    290 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    250 views
    0 likes
    Last Post CarlTrading  
    Working...
    X