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 Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            649 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            370 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            109 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            574 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            576 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X