As I know it is not ok to offline run the EA. In order to run the EA during offline, you may subscribe a offline serve with metatrader
xlitang:
If you are providing ticks to your offline chart you can use exactly the same code.
If EA is running on normal chart, I can use
below code to check whether it is a new bar or not. However it does not work when EA is running on offline chart. Anyone know how to check new bar on offline chart?
RaptorUK:
If you are providing ticks to your offline chart you can use exactly the same code.
If you are providing ticks to your offline chart you can use exactly the same code.
not sure how to providing ticks to offline chart? Can you explain please?
You must have the offline chart generator RUNNING on a chart to get ticks.
WHRoeder:
You must have the offline chart generator RUNNING on a chart to get ticks.
You must have the offline chart generator RUNNING on a chart to get ticks.
I do. The offline chart is constantly updated.
xlitang:
I do. The offline chart is constantly updated.
Your code will work in that situation.
I do. The offline chart is constantly updated.
![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
If EA is running on normal chart, I can use
below code to check whether it is a new bar or not. However it does not work when EA is running on offline chart. Anyone know how to check new bar on offline chart?