Wrong. Completely broker dependent.
Time zone - Trading Systems - MQL5 programming forum #2 2020.11.13
you might want to look at this:
SymbolInfoSessionTrade( string name, // symbol name ENUM_DAY_OF_WEEK day_of_week, // day of the week uint session_index, // session index datetime& from, // session beginning time datetime& to // session end time ); datetime from, to; // 0 = Asian session // this corresponds with market open time which varies with different instruments if (SymbolInfoSessionTrade(Symbol(), WEDNESDAY, 0, from, to)) { Print("Daily market open time: ", TimeToString(from); }
I do need to determine the start of the Asian Session (Tokyo) within my EA without using the brokers server time or any kind of online-check by connecting to a server. Most of the time the Asian Session (Tokyo) is at 00:00 at the brokers server time (for example: Global Prime, IC Markets, etc.) and they also always adjust the DST for their servers, but some brokers use completely different offets and I need a reliable way to check if the Asian Session (Tokyo) just started or not, totally independent from the brokers server-time. Can anyone help? I am OK at normal EA coding, but when it comes to time-management like this, I am always pretty much lost.
If you want to automatically calculate the difference between your broker-dealer's trade server time and your local pc time (with an alert for difference changes), see the indicator code at:
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I do need to determine the start of the Asian Session (Tokyo) within my EA without using the brokers server time or any kind of online-check by connecting to a server. Most of the time the Asian Session (Tokyo) is at 00:00 at the brokers server time (for example: Global Prime, IC Markets, etc.) and they also always adjust the DST for their servers, but some brokers use completely different offets and I need a reliable way to check if the Asian Session (Tokyo) just started or not, totally independent from the brokers server-time. Can anyone help? I am OK at normal EA coding, but when it comes to time-management like this, I am always pretty much lost.
Thanks so much :-)