MQL5-JSON-API icon indicating copy to clipboard operation
MQL5-JSON-API copied to clipboard

adding multiple data streams not working when one is delayed

Open blodone opened this issue 3 years ago • 1 comments

when i add 2 data streams, e.g. BTCUSD and NQ100 and one is delayed / no data comes in, it won't work properly:

2022-08-28 12:27:44.975851 BTCUSD Data Status: DELAYED
2022-08-28 12:27:44.975851 [NQ100] Data Status: DELAYED
ZMQ LIVE DATA:  {'status': 'CONNECTED', 'symbol': 'BTCUSD', 'timeframe': 'TICK', 'data': [1661693265732, 19935.48, 19996.04]}
ZMQ LIVE DATA:  {'status': 'CONNECTED', 'symbol': 'BTCUSD', 'timeframe': 'TICK', 'data': [1661693266232, 19933.48, 19995.54]}

I only see ZMQ Data plotted when debug=True, but nothing else, when i disable debug... when adding 2 times the same symbol here -> BTCUSD and it's not delayed, then everything seems to be working

blodone avatar Aug 28 '22 10:08 blodone

sry wrong repo (https://github.com/khramkov/Backtrader-MQL5-API)

blodone avatar Aug 28 '22 14:08 blodone