Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ExitLong and EnterShort Deconflict.....

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

    ExitLong and EnterShort Deconflict.....

    Hi,

    I have long and short strategies that I want to run against the same market (SPY and/or E-mini).

    The problem is that the time these strategies are in the market is not entirely mutually exclusive.

    I could separate things and make 2 strategies - one long and one short only, but that will result in performance curves that need to be combined for "total" performance.

    What I'm thinking of is an "executive strategy that knows what the net position should be and sends in orders to make it so.

    In that sort of situation, I can see that if I am long 200 and want to be short 100 (-100), then I would need to ExitLong(200) followed by an immediate EnterShort(100).

    At IB, this would be a simple sell order for 300 shares. Is there any way to do this in NT?

    If I put in two orders (a simultaneous ExitLong and SellShort), will NT deconflict these and only perform one of the desired trades?

    Note that I'd really like to be able to just do this in one order not two....

    John

    #2
    Hello John,
    The Enter() methods will first close any positions in the opposite direction and then enter a new position (no need to append any exit orders). However using the Managed Approach NinjaTrader will submit 2 orders to do so.

    If you want to do it in one order you have to use the Unmanaged Approach.

    Please refer to our help guide to know more about it
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    25 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    115 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    69 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    225 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    411 views
    0 likes
    Last Post CaptainJack  
    Working...
    X