Indicators: iForexSessions - page 3

 

fxsaber #:

2024.03.30 19:28:34.579 iForexSessions (XAUUSD,M1)      >> CTimeZoneInfo::HistoryBrokerOffset() FAILED: The requested date 2024.03.24 is not found in the available history
2024.03.30 19:28:34.579 iForexSessions (XAUUSD,M1)      >> CTimeZoneInfo::HistoryBrokerOffset() FAILED: The requested date 2024.03.24 is not found in the available history
2024.03.30 19:28:34.579 iForexSessions (XAUUSD,M1)      >> CTimeZoneInfo::HistoryBrokerOffset() FAILED: The requested date 2024.03.24 is not found in the available history
2024.03.30 19:28:35.551 iForexSessions (XAUUSD,M1)      >> CTimeZoneInfo::HistoryBrokerOffset() FAILED: The requested date 2024.03.24 is not found in the available history
2024.03.30 19:28:35.551 iForexSessions (XAUUSD,M1)      >> CTimeZoneInfo::HistoryBrokerOffset() FAILED: The requested date 2024.03.24 is not found in the available history
2024.03.30 19:28:35.551 iForexSessions (XAUUSD,M1)      >> CTimeZoneInfo::HistoryBrokerOffset() FAILED: The requested date 2024.03.24 is not found in the available history
2024.03.30 19:28:36.554 iForexSessions (XAUUSD,M1)      >> CTimeZoneInfo::HistoryBrokerOffset() FAILED: The requested date 2024.03.24 is not found in the available history
2024.03.30 19:28:36.554 iForexSessions (XAUUSD,M1)      >> CTimeZoneInfo::HistoryBrokerOffset() FAILED: The requested date 2024.03.24 is not found in the available history
2024.03.30 19:28:36.554 iForexSessions (XAUUSD,M1)      >> CTimeZoneInfo::HistoryBrokerOffset() FAILED: The requested date 2024.03.24 is not found in the available history

Fixed in version 1.35.

Thanks for reporting this bug.

 
amrali #:

Fixed in version 1.35.

Thanks for reporting this bug.

Unfortunately, the problem is not resolved.

 
I run it on PepperStone without any error on Weekend. Will update if any error while running in live account.
 
fxsaber #:

Unfortunately, the problem is not resolved.

MQl5 is strange!

I have already tested on 6 brokers, multiple restarts, 4 charts loaded with the indicator attached ->  No errors.

 
Anil Varma #:
I run it on PepperStone without any error on Weekend. Will update if any error while running in live account.

Thanks, please report if you still see the bug in post #21

 
array out of range in 'iForexSessions.mq5' (149,29)
 
amrali #:

Thanks, please report if you still see the bug in post #21

2024.03.31 23:09:22.659 iForexSessions (XAUUSD,M1)      >> CTimeZoneInfo::HistoryBrokerOffset() FAILED: The requested date 2024.03.24 is not found in the available history
2024.03.31 23:09:22.659 iForexSessions (XAUUSD,M1)      >> CTimeZoneInfo::HistoryBrokerOffset() FAILED: The requested date 2024.03.24 is not found in the available history
2024.03.31 23:09:22.659 iForexSessions (XAUUSD,M1)      >> CTimeZoneInfo::HistoryBrokerOffset() FAILED: The requested date 2024.03.24 is not found in the available history
 
fxsaber #:

this line #149

         datetime time  =0;
 

fxsaber #:

array out of range in 'iForexSessions.mq5' (149,29)

I think you are testing the dev build that I sent you. Please use the release build on the codebase.

 

Update 1 April 2024 - version 1.40

Updated the 'TimeZoneInfo' library to version 1.67

Forum on trading, automated trading systems and testing trading strategies

Libraries: Local Timezones and Local Session Hours

amrali, 2024.04.01 00:17

Update 1 April 2024 - version 1.67

Fixed potential issue in the calculation of the broker GMT offset during the first hour of the trading week.

Please report if you still see the bug in post #21