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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    47 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    15 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    21 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X