mtapi icon indicating copy to clipboard operation
mtapi copied to clipboard

MT4 OnChartEvent

Open vdemydiuk opened this issue 6 years ago • 5 comments

https://docs.mql4.com/basis/function/events OnChartEvent OnChartEvent() is the handler of a group of ChartEvent events: CHARTEVENT_KEYDOWN — event of a keystroke, when the chart window is focused; CHARTEVENT_MOUSE_MOVE — mouse move events and mouse click events (if CHART_EVENT_MOUSE_MOVE=true is set for the chart); CHARTEVENT_OBJECT_CREATE — event of graphical object creation (if CHART_EVENT_OBJECT_CREATE=true is set for the chart); CHARTEVENT_OBJECT_CHANGE — event of change of an object property via the properties dialog; CHARTEVENT_OBJECT_DELETE — event of graphical object deletion (if CHART_EVENT_OBJECT_DELETE=true is set for the chart); CHARTEVENT_CLICK — event of a mouse click on the chart; CHARTEVENT_OBJECT_CLICK — event of a mouse click in a graphical object belonging to the chart; CHARTEVENT_OBJECT_DRAG — event of a graphical object move using the mouse; CHARTEVENT_OBJECT_ENDEDIT — event of the finished text editing in the entry box of the LabelEdit graphical object; CHARTEVENT_CHART_CHANGE — event of chart changes; CHARTEVENT_CUSTOM+n — ID of the user event, where n is in the range from 0 to 65535. CHARTEVENT_CUSTOM_LAST — the last acceptable ID of a custom event (CHARTEVENT_CUSTOM +65535).

vdemydiuk avatar Sep 05 '17 15:09 vdemydiuk

Thanks Vdemydiuk, Could you please create a code example Thanks in advance KG

Kimo11335 avatar May 25 '19 14:05 Kimo11335

Will do.

vdemydiuk avatar May 27 '19 09:05 vdemydiuk

Which one is the code example?

eabase avatar Nov 12 '20 15:11 eabase

I mean, a code example on VB.net or C# using the ChartEvents f.eks, how to display a chart. then catch mouse click event something as simple. Thanks Kimo

Kimo11335 avatar Nov 12 '20 16:11 Kimo11335