Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Reversing a strategy Position

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

    Reversing a strategy Position

    If I am long a contract, and a new signal is generated by my strategy to go short, what is the correct way to go short.

    Currently I use the following


    ExitLong()
    EnterShort()


    However I believe this may be incorrect, as, I ended up Short 2 contracts, instead of one. In both the simulated strategy, and my live account strategy.

    #2
    All you need to call is:

    EnterShort()

    this will take care of closing the long and opening the short.
    RayNinjaTrader Customer Service

    Comment


      #3
      Reversing a position - problem with stop loss

      Hello,
      I would like to ask if anyone knows how to solve the problem with reversin position in case stop loss is used and I need to enter via EnterStopLimit().

      My short position is closed by stop loss (correctly), but command to enter long position in the same bar is ignored (EnterLongStopLimit). I am sure that strategy coding is correct as when I use only long part, it generates correct entry signals.

      Thank you for any idea how to solve it.



      Originally posted by NinjaTrader_Ray View Post
      All you need to call is:

      EnterShort()

      this will take care of closing the long and opening the short.

      Comment


        #4
        Please run with TraceOrders = true. I suspect you may be running into one of these Internal Order Handling Rules. Please check them out here and confirm with your logs if this is the case: http://www.ninjatrader-support.com/H...verview36.html. If not please provide the reason the TraceOrder logs provide as to why your order is ignored. Thanks
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, Yesterday, 01:02 PM
        0 responses
        30 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        22 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        160 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        95 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        148 views
        2 likes
        Last Post CaptainJack  
        Working...
        X