Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello MetaQuotes Technical Team,
We are investigating chart enumeration behavior in MetaTrader 5 build 6230.
In a connected Demo terminal with one XAUUSD/M1 chart, our read-only MQL5 diagnostic consistently observes:
ChartFirst() returns the valid current Chart ID, with GetLastError() == 0.
After a separate ResetLastError(), ChartNext(valid_chart_id) returns -1.
An immediate GetLastError() returns 4103 (ERR_CHART_NOT_FOUND).
Two consecutive diagnostic readings reproduce this behavior.
Separate object enumeration reports zero OBJ_CHART objects, with no API errors.
The terminal's Window list displays only one chart.
The documentation states that ChartNext() returns -1 at the end of the chart list, while 4103 is documented as Chart Not Found.
Could you please clarify:
Is ChartNext(valid_last_chart_id) == -1 together with GetLastError() == 4103 an expected end-of-list result in build 6230?
Can this combination indicate an invalid/stale chart ID, or an enumeration inconsistency?
Does ChartNext enumeration include embedded OBJ_CHART objects as well as chart windows?
What is the recommended reliable way to distinguish a normal end-of-list result from a failed enumeration?
Is there a documented or version-specific behavior that we should account for?
We are looking for an authoritative, build-specific interpretation rather than a workaround that ignores runtime errors.
Thank you.