nukepanda: I'm trying to make my EA perform a certain action at a certain time everyday. That action is bound to US-markets but my broker's servers are not in the US and, due to the time changes 2 times per year the time difference is not consistent. How can I adjust my code for this situation?
Daylight Savings dates and times are always available ahead of time (as well as historically) from reputable sources, so keep a table of those changes on file and have your EA detect that and adjust accordingly.
Fernando Carreiro:
Daylight Savings dates and times are always available ahead of time (as well as historically) from reputable sources, so keep a table of those changes on file and have your EA detect that and adjust accordingly.
The main problem is not running the EA live, is backtesting it.
nukepanda:The main problem is not running the EA live, is backtesting it.
That is why I wrote "(as well as historically)". Those same sources also offer historical data on when those dates and times occurred all over the world for every time-zone.
![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
Hello everyone,
I'm trying to make my EA perform a certain action at a certain time everyday. That action is bound to US-markets but my broker's servers are not in the US and, due to the time changes 2 times per year the time difference is not consistent. How can I adjust my code for this situation?