Indicators: iForexSessions - page 7

 
Anil Varma #:

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.


Thanks for your comment, however this was changed in recent versions already.
 

Hi, Thank you nice Indicator and code.
But I have Problem.
My broker server timezone is JST.
So I lost monday value in iForexSessions.mq5.
Please tell me modify code.

Files:
 
かるてしくん #:

Hi, Thank you nice Indicator and code.
But I have Problem.
My broker server timezone is JST.
So I lost monday value in iForexSessions.mq5.
Please tell me modify code.

Please run this script from the following link and send me the 'Experts' log in a text file so I can check for a solution. 
Run the script both on EURUSD and XAUUSD.

https://www.mql5.com/en/forum/463955/page2#comment_53214626
 
amrali #:
Please run this script from the following link and send me the 'Experts' log in a text file so I can check for a solution. 
Run the script both on EURUSD and XAUUSD.

https://www.mql5.com/en/forum/463955/page2#comment_53214626

Thank you reply and comment.
I run week_times.mq5 at EURUS.M1 and H1, XAUUS.M1,  XAUUS.H1.
attach this.

Files:
20240522.log  75 kb
 
cartesikun #:

Thank you reply and comment.
I run week_times.mq5 at EURUS.M1 and H1, XAUUS.M1,  XAUUS.H1.
attach this.

The indicator should draw sessions corectly on your broker's GOLLD charts including Mondays.

However, due to the weired configuration on Forex currency pairs, Mondays are not drawn on EURUSD. The issue has beeen discussed here https://www.mql5.com/en/forum/463955#comment_53124920

Scripts: Determine Broker's Daylight (DST) schedule - My version of an Algo for calculating the DST schedule on brokers that do not provide gold trading
Scripts: Determine Broker's Daylight (DST) schedule - My version of an Algo for calculating the DST schedule on brokers that do not provide gold trading
  • 2024.03.14
  • Automated-Trading
  • www.mql5.com
Update 12 april 2024 - version 1. I think they did not bother to intervene with the timing of gold charts may be because not so many traders actually trade gold, so timings on gold charts follows the expected pattern when us enters summer timing
 
amrali #:

The indicator should draw sessions corectly on your broker's GOLLD charts including Mondays.

However, due to the weired configuration on Forex currency pairs, Mondays are not drawn on EURUSD. The issue has beeen discussed here https://www.mql5.com/en/forum/463955#comment_53124920

Thank you very much for your analysis and reply.
My broker settings are not correct.
Unfortunately, I would like to modify the code at hand individually. ;-(