trading two Interactive Brokers accounts (FFA subaccounts) simultaneously from a script (same script running for both), this morning I got an error on one account immediately after a enter short limit order was sent out and script got closed (see log below).
As there seems to be some issues between NT6.5 and TWS887.2 (at least with FFA subaccounts), I wonder what the cause of the problem was, and why such an error terminates a running strategy (while it kept running for the other account)?
Can such errors be caught before crashing a script? If not, wouldn’t that make automated trading IB via NT impossible?
Error log:
3/4/2009 9:36:19 AM,Default,Order Event Warning:Attribute 'Outside Regular Trading Hours' is ignored based on the order type and destination. PlaceOrder is now being processed. 2109,
3/4/2009 9:36:19 AM,Strategy,Strategy 'HoboESv05e' submitted an order that generated the following error 'OrderRejected'. Strategy has sent cancel requests, attempted to close the position and terminated itself.,
3/4/2009 9:36:19 AM,Order,Error processing request:-'sb' : cause - jextend.sb.e(sb.java:1027) (322) Affected Order: SellShort 1 Limit @ 709.25,
3/4/2009 9:36:19 AM,Order,Order='99223f6eb86a48e2b4e5d1c98ebd6ce8/U517134' Name='HoboST' New State=Rejected Instrument='ES 03-09' Action=SellShort Limit price=709.25 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=OrderRejected Native error='Error processing request:-'sb' : cause - jextend.sb.e(sb.java:1027) (322)',
3/4/2009 9:36:19 AM,Order,Order='99223f6eb86a48e2b4e5d1c98ebd6ce8/U517134' Name='HoboST' New State=Accepted Instrument='ES 03-09' Action=SellShort Limit price=709.25 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=NoError Native error='',
3/4/2009 9:36:19 AM,Order,Order='66e8273e6a2641f794434e8665631a35/U516155' Name='HoboST' New State=PendingSubmit Instrument='ES 03-09' Action=SellShort Limit price=709.25 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=NoError Native error='',
3/4/2009 9:36:19 AM,Order,Order='99223f6eb86a48e2b4e5d1c98ebd6ce8/U517134' Name='HoboST' New State=PendingSubmit Instrument='ES 03-09' Action=SellShort Limit price=709.25 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=NoError Native error='',
Thank you for your support!
hlh
P.S.: To avoid the usual recommendations: Yes, I do have the current recommended versions of NT, TWS, .NET, and yes I have reinstalled them several times as requested by NT support (without it ever helping at all).
Comment