darwinex / dwxconnect

Seamlessly link any Trading Strategy in ANY programming language to Darwinex liquidity via MetaTrader 4 or 5. DWX Connect is your very own, fully customizable Trading API!
BSD 3-Clause "New" or "Revised" License
158 stars 84 forks source link

How to check in python that the EA is attached #38

Open piotryordanov opened 11 months ago

piotryordanov commented 11 months ago

What's a reliable way to make sure from inside the python code, that the EA is attached to the chart?

elvinex commented 4 months ago

Hi, Sorry for the late reply. You could subscribe to symbols and check if there are long times without ticks. However, that might also be true when the market is closed. Alternatively, you could request historic data fwith the function get_historic_data regularly to force a reply from time to time.