Indicators: iForexSessions - page 6

 

Update 10 April 2024 - version 1.60

Display the status of time synchronization of the local computer (in the left lower corner). 

A hint to check https://time.is/ if pc time is not synchronized.


 

Update 11 April 2024 - version 1.61

Updated the 'TimeZoneInfo' library to version 1.77

Forum on trading, automated trading systems and testing trading strategies

Libraries: Local Timezones and Local Session Hours

amrali, 2024.04.11 03:56

Update 11 April 2024 - version 1.77

Speed-up of the GetDaylightSwitchTimes mehod. Now using a static array to memorize the switch times for the current year.



 

Update 12 April 2024 - version 1.65

Updated the 'TimeZoneInfo' library to version 1.80

Forum on trading, automated trading systems and testing trading strategies

Libraries: Local Timezones and Local Session Hours

amrali, 2024.04.12 04:38

Update 12 April 2024 - version 1.80

Fixed issue in the calculation of the broker GMT offset on brokers that do not provide gold trading.


 

Update 15 April 2024 - version 1.67

Updated the 'TimeZoneInfo' library to version 1.82

Forum on trading, automated trading systems and testing trading strategies

Libraries: Local Timezones and Local Session Hours

amrali, 2024.04.15 19:13

Update 15 April 2024 - version 1.82

Added SetCustomTimeZone method to CTimeZoneInfo class, which you can use to configure the built-in custom time zone with a specified name, an offset from Greenwich Mean Time (GMT) and a daylight schedule identifier. Later, the custom time zone can be accessed via ZONE_ID_CUSTOM.


 

Update 16 April 2024 - version 1.70

Updated the 'TimeZoneInfo' library to version 1.85

Forum on trading, automated trading systems and testing trading strategies

Libraries: Local Timezones and Local Session Hours

amrali, 2024.04.16 18:40

Update 16 April 2024 - version 1.85

Replaced the GetNthSunday internal method with the more optimized GetMonthTime method.


 

Update 17 April 2024 - version 1.72

Updated the 'TimeZoneInfo' library to version 1.87

Forum on trading, automated trading systems and testing trading strategies

Libraries: Local Timezones and Local Session Hours

amrali, 2024.04.17 00:27

Update 17 April 2024 - version 1.87

Replaced the TimeYear internal method with the more optimized GetYear method.


 

Update 18 April 2024 - version 1.73

Updated the 'TimeZoneInfo' library to version 1.88

Forum on trading, automated trading systems and testing trading strategies

Libraries: Local Timezones and Local Session Hours

amrali, 2024.04.18 04:31

Update 18 April 2024 - version 1.88

Added the CreateDateTime internal method to construct datetime values from date components (year, month and day).

This is 100-120x times faster than assigning values to MqlDateTime struct then calling the StructToTime function.


 
هاد جيد
 
good
 
fxsaber #:
I came across the result of running this code.
This is a dangerous practice on charts with an EA.

I agree with you. Below is what documentation says about ChartSetSymbolPeriod()

ChartSetSymbolPeriod: Changes the symbol and period of the specified chart. The function is asynchronous, i.e. it sends the command and does not wait for its execution completion. The command is added to chart messages queue and will be executed after processing of all previous commands.

The symbol/period change leads to the

re-initialization of the Expert Advisor attached to a chart

Depending on the rules/conditions in the EA this will definitely lead to complications.


Reason: