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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    647 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    368 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    571 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X