Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

There is no remaining quantity to exit

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

    There is no remaining quantity to exit

    hello . i'm having a recent issue

    Code:
    02/02/2011 16:30:00 Entered internal PlaceOrder() method at 02/02/2011 16:30:00: BarsInProgress=0 Action=BuyToCover OrderType=Stop Quantity=516,000 LimitPrice=0 StopPrice=82.64 SignalName='My Exit Short' FromEntrySignal=''
    
    02/02/2011 16:30:00 Ignored PlaceOrder() method at 02/02/2011 16:30:00: Action=BuyToCover OrderType=Stop Quantity=0 LimitPrice=0 StopPrice=82.64 SignalName='My Exit Short' FromEntrySignal='' Reason='There is no remaining quantity to exit'
    the problem with this is that the quantity i send in the order is Position.Quantity
    and the strategy tab shows i am indeed 516,000s and so does IB .

    nt7.1000.2

    #2
    Hello Zark.be,

    Thank you for the post. Can you please send in your log and trace files for today. You can use Help > Mail to support feature. In the subject, write Attn: Ryan M 430057
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Hello

      sorrry for the delay, i'm sending them to you now. But in the trace and log you don't see anything regarding these ignored orders.


      Basically the position is 516000short, i have three targets (totalling 516k), and 3 stops (totalling 516k).

      I'm thinking maybe NT is ignoring my new exit requests because the whole position is already covered with targets ?
      The strat has been running fine for a couple of months now without modification,and all of a sudden it acts like this.

      Comment


        #4
        Thanks for the reply Zark. Yes, that could be an explanation here. Internal order handling will ignore orders if they are redundant.

        Methods that generate orders to exit a position will be ignored if:
        • A position is open and an order submitted by an enter method (EnterLongLimit() for example) is active and the order is used to open a position in the opposite direction
        • A position is open and an order submitted by a set method (SetStopLoss() for example) is active

        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Okay

          So had some time to debug things and here are my findings.

          all of a sudden (this is the same unmodified strat, running since 7.0beta) STOP type orders cannot cover more than the position quantity.

          eg: position quantity : 400.000
          stop order 400.000
          if i try to send another stop order (for a trail), it will be ignored.
          I need to cancel my first order to be able to send the other one.

          THIS IS NEW BEHAVIOR, and only exists in LIVE TRADING. if my order is ignored in live trading, and i restart the strat, historical trading will accept my trail order !!


          1/ I have looked thru the releases notes (again), and there is no trace of such a change in the internal engine
          2/ Having orders ignored in live and not historical is bad ! And also something quite new ! I always managed to debug my strats thanks to the historical and logs to find problems.

          Comment


            #6
            zark.be, there was a minor change / fix with bug # 4341 - NinjaScript strategies
            Quantity of exit orders could have been amended by an incorrect logic though I'm not sure how / if it would affect your scenario here - would mind letting us test it here on our end?

            In addition: which IB TWS are you using here and which NinjaScript methods are at play to submit the orders?

            Thanks,

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by charlesugo_1, 05-26-2026, 05:03 PM
            0 responses
            55 views
            0 likes
            Last Post charlesugo_1  
            Started by DannyP96, 05-18-2026, 02:38 PM
            1 response
            142 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            160 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 05-10-2026, 08:12 PM
            0 responses
            96 views
            0 likes
            Last Post CarlTrading  
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            276 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Working...
            X