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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        61 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        148 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        98 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X