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.
Hi,
I'm doing some tests,
Seems to be the sum of changes (like power of 2, bits)
Apparently, changes should be :
1 = time scale changes 2 = size chart changes 4 = shift (true false) changes 8 = ? (not appeared) 16 = price scale changes 32 = autoscroll changes 64 = ? (not appeared, if there's more)
If that can help someone
1 ((lparam&1)==1) : time scale/scroll changes, except autoscrolling on new candle 2 ((lparam&2)==2) : resize chart 4 ((lparam&4)==4) : chart mode changes, shift on/off 8 ((lparam&8)==8) : I haven't seen 16 ((lparam&16)==16) : price scale changes 32 ((lparam&32)==32) : autoscroll doing is job 64 ((lparam&64)==64) I haven't seen, don't know if exists
So I think 1 is first visible bar..
- 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?