https://www.mql5.com/en/code/7673 but this is a little tricky to use (in "MT5" it comes original)
You can directly attach EAs to offline charts, but you need to make some modifications.
EAs attached to offline charts only run init() function, but DON'T run start() for new ticks.
You can insert a infinite loop to run start() in init(), and Sleep() certain time in every loop. (Don't forget to RefreshRates() every loop.)
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
just like M2 or M3 chart