HANGZHOU,ZHEJIANG,CHINA
Posts: 6 since Aug 2016
Thanks Given: 0
Thanks Received: 0
|
Hi guys,
I want to use IB gateway to provide real-time market data for Multicharts' auto trading strategy, and I found a big problem.
I set the port 4001 for IB gateway in MC Quote Manager, at the beginning, every thing is fine, and the QM showed I have connected to the real-time data, and MC can receive the real-time data and update the charts immediately.
But after several minutes, the MC charts would not update anymore, the QM log showed that "warning message: Id= -1; code= 2108; description= Market data farm connection is inactive but should be available upon demand.usfarm".
I think there is no active market data request is connected so the farm connection is become inactive, but I opened MC work space all the time and I need to receive real-time market data.
And When I change the market data source from IB gateway to IB TWS, everything is ok, and the real-time market connection will not be inactive automatically.
Does anyone face this problem before? Please help me, thanks a lot.
LOG FROM MC QM:
[10/04/2016 22:53:09] Connected to real-time data for UVXY ARCA STK USD
[10/04/2016 22:56:14] TWS warning message: Id= -1; code= 2108; description= Market data farm connection is inactive but should be available upon demand.usfarm
[10/04/2016 22:56:14] TWS warning message: Id= -1; code= 2108; description= Market data farm connection is inactive but should be available upon demand.usfarm
LOG FROM IB GATEWAY 952 x64:
JE 22:54:14:710 JTS-Cleaner-25: market data wrapper, cleaning maps
JE 22:55:14:710 JTS-Cleaner-25: market data wrapper, cleaning maps
JE 22:56:14:672 JTS-CommonScheduler-40: Disconnecting usfarm when checking activity
JE 22:56:14:672 JTS-CommonScheduler-40: Farm usfarm/CCP: Stopping connection
JE 22:56:14:672 JTS-CommonScheduler-40: Disconnecting mcgw1.ibllc.com.cn:4000 with status DISCONNECT_ON_INACTIVITY
JE 22:56:14:672 JTS-usfarmServicePingS10-154: Terminating ping thread
JE 22:56:14:672 JTS-usfarmDispatcherS10-151: Terminating dispatcher
JE 22:56:14:672 JTS-usfarmListenerS10-150: Socket for connection mcgw1.ibllc.com.cn:4000 was closed by another thread
JE 22:56:14:672 JTS-CommonScheduler-40: AuthTimeoutMonitor: deactivate
JE 22:56:14:673 JTS-usfarmListenerS10-150: Terminating Listener thread
JE 22:56:14:673 JTS-DisconnectedS10-161: Farm usfarm/UNCONNECTED: Lost active connection with disconnect status DISCONNECT_ON_INACTIVITY
JE 22:56:14:673 JTS-DisconnectedS10-161: Farm usfarm/UNCONNECTED: Not resetting
JE 22:56:14:712 JTS-Cleaner-25: market data wrapper, cleaning maps
|