![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I noticed that chart events have different lparam values depending on the type of changes done. However, nothing about those values appears in the documentation of chart events. Is it documented anywhere else, or does anyone know what each value means, or what are all possible values?
For instance, you can get:
-1 when changing chart position with drag or wheel (and with most other events)
-3 sometimes when adding/removing indicators or resizing in mosaic mode
-2 when resizing the window indirectly (by dragging the separation with the logs)
-37 when toggling "Shift end of chart from right border", 33 when activating "Scroll chart to end on tick incoming", 32 when deactivating, and you can get 32,33,34,35 with each auto-scroll depending on the context.
-10/11 when toggling "Show quick trading buttons" in properties (I get 10 if autoscroll on tick is inactive, else 11)
-8 when toggling show/hide quick trading buttons (top-left of chart)
-4 when changing price mode between candle/line/bar
-49 when zooming in/out
-18 when setting scalefix
-19 when setting chart on foreground
-51 when toggling off chart shift from properties window
And I'm leaving some events on the table, some don't seem consistent in an obvious way or they change depending on the context (like a bitmask?)