Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Invalid Order Size - IB TWS

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

    Invalid Order Size - IB TWS

    Dear All,

    I am trading index futures which has 50 shares in 1 lot.
    In my code, I have set DefaultQuantity=50 and any order sent is a multiple of 50, e.g. 50,100,150 etc

    However, sometimes i see the message that IB has rejected the order of 25 size. I have checked the code and not sure how a order of 25 can be generated.

    I have seen this issue multiple times in past few days with high speed execution. NT Strategy gets abruptly terminated.

    On log investigation, it seems that SetStopLoss(CalculationMode.Percent, 0.005) command in the code is generating this Stoploss order and hence IB TWS is rejecting the order. However, still I am confused as to how the SL order is getting triggered for a invalid lot size.

    Kindly help
    Oldmonk

    #2
    Hi Oldmonk, that could be potentially be due to partial fills received - per default each entry execution will trigger the generation of a stop loss / target exit orders. If you can send me your trace / logs via Help >> Mail to Support I could further confirm this for you. Thanks.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Dear Bertrand,

      I have emailed you the logs. I was thinking that one lot should get executed in one go, hence partial fills causing invalid order size for Stoploss order, comes as a suprise to me.

      Thanks,
      Oldmonk
      Last edited by OldMonk; 10-09-2013, 03:16 AM. Reason: size

      Comment


        #4
        Thanks, will check through the details provided and be back in touch.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Option Whisperer, Today, 09:55 AM
        1 response
        11 views
        0 likes
        Last Post bltdavid  
        Started by port119, Today, 02:43 PM
        0 responses
        1 view
        0 likes
        Last Post port119
        by port119
         
        Started by Philippe56140, Today, 02:35 PM
        0 responses
        3 views
        0 likes
        Last Post Philippe56140  
        Started by 00nevest, Today, 02:27 PM
        0 responses
        2 views
        0 likes
        Last Post 00nevest  
        Started by Jonafare, 12-06-2012, 03:48 PM
        5 responses
        3,986 views
        0 likes
        Last Post rene69851  
        Working...
        X