Indicators: iForexSessions - page 8

 

Update 26 October 2024 - version 1.80

Updated the 'TimeZoneInfo' library to version 1.95

Forum on trading, automated trading systems and testing trading strategies

Libraries: Local Timezones and Local Session Hours

amrali, 2024.10.26 18:46

Update 26 October 2024 - version 1.95

Added two new static methods: TimeGMTOffset() and TimeDaylightSavings().

Renamed the HistoryBrokerOffset() method to TimeServerGMTOffset().


 

Update 27 October 2024 - version 1.81

Fixed issue with the text labels of the broker's clock (labels with more than 63 characters were being trimmed by the terminal).

 

Update 28 October 2024 - version 1.82

Updated the 'TimeZoneInfo' library to version 1.97

Forum on trading, automated trading systems and testing trading strategies

Libraries: Local Timezones and Local Session Hours

amrali, 2024.10.28 19:04

Update 28 October 2024 - version 1.97

Converted all macros for dealing with time to functions to avoid double evaluation of parameters inside macro body. More code clean-up in other lines.


 

Update 1 November 2024 - version 1.85

Added input parameter to switch on/off loading gold (XAUUSD) symbol for estimation of the server's TZ/DST.

Updated the 'TimeZoneInfo' library to version 1.99

Forum on trading, automated trading systems and testing trading strategies

Libraries: Local Timezones and Local Session Hours

amrali, 2024.11.01 01:51

Update 1 November 2024 - version 1.99

Added an option to switch off the default loading of Gold symbol for estimation of the server's TZ/DST.

Call CTimeZoneInfo::SetUsingGoldSymbol() with 'false' to use the current chart's symbol, instead.


 

Update 13 November 2024 - version 1.89

Updated the 'TimeZoneInfo' library to version 2.00

Forum on trading, automated trading systems and testing trading strategies

Libraries: Local Timezones and Local Session Hours

amrali, 2024.11.13 01:47

Update 13 November 2024 - version 2.00

Improved estimation of online server tz/dst and in the strategy strategy

TimeGMT library is no longer needed, all the functionality is included within TimeZoneInfo.

Constructor accepts place and time parameters.

New public methods for working with data of datetime type.

Improved error handling and debugging support.



 
amrali #:

Update 13 November 2024 - version 1.89

Updated the 'TimeZoneInfo' library to version 2.00


Thanks my friend for keeping library updated with latest infos.

 

Update 14 November 2024 - version 1.90


Updated the 'TimeZoneInfo' library to version 2.02

Forum on trading, automated trading systems and testing trading strategies

Libraries: Local Timezones and Local Session Hours

amrali, 2024.11.13 23:35

Update 14 November 2024 - version 2.02

Fixed error ERR_HISTORY_NOT_FOUND (4401) when trying to access the XAUUSD,H1 quotes history by the server timezone object.


 

Update 12 December 2024 - version 1.95


Updated the 'TimeZoneInfo' library to version 2.10

Forum on trading, automated trading systems and testing trading strategies

Libraries: Local Timezones and Local Session Hours

amrali, 2024.12.13 09:27

Update 12 December 2024 - version 2.10

Improved performance of HistoryServerGMTOffset() and HistoryServerDaylightSavings() functions, and other minor code changes.


 
Hi Amrali, Thank you for this fantastic indicator. I have two questions: When using the indicator in the Strategy Tester, you need to include this line in the iForexSessions.mq5: #include "TimeGMT.mqh". Do I need to remove this line when I use the indicator in live trading, or is it still relevant? If I leave it in, will the times be incorrect during live trading? In the iForexSessions.mq5, there is this line: input bool InpUseGoldSymbol = true; // Load XAUUSD symbol to estimate the server's time (TZ/DST). I only trade EURUSD. Can I set this to false, or is it necessary to estimate the correct time for Forex as well? In other words, if I set it to false, will the times/sessions for EURUSD be incorrect? Thank you very much for your help.
 

Update 8 April 2025 - version 1.99

Added display the day of week text labels on the chart.