How to change time zone in MT5? - page 2

 
Md Mostakim Hossain Hira #:
How do I match my AI's time zone and my broker's time zone to a VPS in a different time zone. For example, my broker's time zone is GMT+3 and my VPS's time zone is +5.

You can't change your broker time zone, but you can change your EA's trading time settings to much those of your broker's, if your EA has such an option.

Your computer or VPS time zone is irrelevant.

 
You have to calculate it yourself: https://www.mql5.com/en/code/45287
Dealing with time (2) functions
Dealing with time (2) functions
  • www.mql5.com
Calculate DST for USA, EUR, AUD and RUB and the offset time of the broker automatically from the 70's until 2030 - even in the Strategy Tester of MQ.
 
how does one update the month from june to october
 
June Tumo #:
how does one update the month from june to october

The charts of the price, the price and the time of the price are related to the broker.
If the price on your charts are not refreshed so it means the following:

  • you did not connect to your trading account;
  • your broker is not promosing this symbol for traders.
 
Alain Verleyen #:

There is nothing to clarify. The answer you got is pretty clear.

The timezone is set by the broker (server), you can't change. Search for a broker who uses the timezone you want.

yes ttrue

 

Lo and behold, Aleksandr Slavskii coded an improved version of his Period Converter Mod service plainly named, Period Converter (attached below), that generates a time-offset custom chart (in addition to supporting creation of custom timeframes not natively supported in MT5). Aleksandr Slavskii kindly did so at my request. Although I'm not in the habit of posting unpublished source code of other developers, Aleksandr Slavskii expressly allowed me to do so. This work of his will finally put an end to decades of MT5 traders searching for a time zone fix.

The input, "Time shift in minutes", is exactly that. Regardless of the timeframe that you select, the timestamps of the generated bars are shifted by minutes. Therefore, use 60 for each hour of shift (offset). That input supports both positive or negative shift values, so no one on Earth is left out.

Please respect the copyright that is included in the code─as a matter of international law. Aleksandr Slavskii reserves all rights.

Files: