MQL OnChartEvent Explained

[YTLoad url=IakYgQqgBG0]

An explanation of how to use OnChartEvent with examples, including some events that normally do not fire and custom events.

This will cover event handling in MT4 and MT5 for
CHARTEVENT_KEYDOWN
CHARTEVENT_MOUSE_MOVE
CHARTEVENT_MOUSE_WHEEL
CHARTEVENT_OBJECT_CREATE
CHARTEVENT_OBJECT_CHANGE
CHARTEVENT_OBJECT_DELETE
CHARTEVENT_CLICK
CHARTEVENT_OBJECT_CLICK
CHARTEVENT_OBJECT_DRAG
CHARTEVENT_OBJECT_ENDEDIT
CHARTEVENT_CHART_CHANGE
CHARTEVENT_CUSTOM

How to set your chart to detect events that are normally not detected.
How to interpret the information provided on an event
How to set objects on the chart to detect events
How to use custom events.

All with examples.

The code I used is available at https://ko-fi.com/s/9b99209010

If you are looking for a broker for MT5 or MT4 consider supporting our channel by using our broker by following one of these links.
MT4: https://www.orchardforex.com/download-mt4
MT5: https://www.orchardforex.com/download-mt5

Discord: https://discord.gg/fuyJW55kx5
Twitter: https://twitter.com/OrchardForex
Telegram: https://t.me/orchardforex

Leave a Comment

Scroll to Top