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 sjsj2732, Yesterday, 04:31 AM
        0 responses
        39 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        289 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        289 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        135 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        96 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X