When Ninja Trader’s strategy submitted to open a trade, it issued a fatal error and disconnected with IBKR-GW.
Error message: 4002 Interactive Brokers: Lost or unable to establish communications with IB TWS/GW. Please verify TWS/GW is running on the target machine and try reconnecting or contact support if the issue persists (Panic).
Then I reconnected Ninja Trader to IBKR-GW, which was still running, and issued a “flatten” order, to close the trade. Once again, Ninja Trader issued the same fatal error.
If it helps with diagnosing the issues, below are the messages in the IBKR-GW’s log after I issued the “flatten” order and Ninja Trader crashed:
09:46:05:534 <- 3-42-4-0-ES-FUT-202503-0---CME--USD-----SELL-1-MKT-0-0-DAY--U11750699--0--1-0-0-0-0-0-1-0--0-------0--0-0---0---0-0--------0-----0-0-0-0-0-0-0-----0---0-0--0--
09:46:05:594 -> 4-2-4-2109-Order Event Warning:Attribute 'Outside Regular Trading Hours' is ignored based on the order type and destination. PlaceOrder is now being processed.-
09:46:05:677 -> 5-34-4-603558932-ES-FUT-20250321-0-?-50-CME-USD-ESH5-ES-SELL-1-MKT-0.0-0.0-DAY--U11750699-C-0--0-1312307929-0-0-0--1312307929.0/U11750699/100---------0---1-0-------0-0-0--3-0-0--0-0--0-None--0----?-0-0--0-0------0-0-0-----0--IB-0-0--0-0-PreSubmitted-1.7976931348623157E308-1.7976931348623157E308-1.7976931348623157E308------0-0--3-6-4-PreSubmitted-0-1-0-1312307929-0-0-0--
09:46:05:684 -> 71-1-600-U11750699-603558932-ES-FUT-20250321-0.0--50--USD-ESH5-ES-0-0.0--
09:46:05:694 -> 59-1-00019123.678755b6.01.01-2.4525-USD-57.595-1.7976931348623157E308—
My questions:
1. Is NinjaTrader Desktop 8.0.28.0 compatible with IBKR-GW 10.30.1t? If not which versions of Ninja Trader are compatible with the 10.30.1t version?
3. Is there anything I can set on either IBKR-GW 10.30.1t or Ninja Trader version 8.0.28.0 to make them compatible to avoid the error I encountered?
Thanks,
Ben.
Comment