Hello,
does anyone know what the lparam values mean after a CHARTEVENT_CHART_CHANGE event?
It is right there in the table as indicated in the documentation—none of the parameters are defined for that chart event.
Event | Value of the id parameter | Value of the lparam parameter | Value of the dparam parameter | Value of the sparam parameter |
---|---|---|---|---|
Event of change of the chart size or modification of chart properties through the Properties dialog | CHARTEVENT_CHART_CHANGE | — | — | — |

- www.mql5.com
It is right there in the table as indicated in the documentation—none of the parameters are defined for that chart event.
Event | Value of the id parameter | Value of the lparam parameter | Value of the dparam parameter | Value of the sparam parameter |
---|---|---|---|---|
Event of change of the chart size or modification of chart properties through the Properties dialog | CHARTEVENT_CHART_CHANGE | — | — | — |
void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam) { //--- if (id!=CHARTEVENT_MOUSE_MOVE) { Print(EnumToString((ENUM_CHART_EVENT)id)); if (lparam>0) Print("lparam ",lparam); if (dparam>0) Print("dparam ",dparam); if (sparam!="") Print("sparam ",sparam); } }
We cannot see your screen, so show us the log output as well.
However, undefined values are as the word states—undefined. The values that those variables contain can be remnants of what was in the memory before.
We cannot see your screen, so show us the log output as well.
However, undefined values are as the word states—undefined. The values that those variables contain can be remnants of what was in the memory before.
Maybe it's really some random data resulting from internal procedures. Like I said, I was just curious.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
does anyone know what the lparam values mean after a CHARTEVENT_CHART_CHANGE event?