event CHARTEVENT_OBJECT_DRAG not called
-
You stated MT5 but posted MT4 code. Why did you post your MT4 question in the
Root /
MT5 EA section
instead of the
MQL4 section, (bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Next time post in the correct place. The moderators will likely move this thread there soon. Print("drag "+sparam);
I added which rectangle, otherwise your EA is identical to mine (rectangle selected and OnChartEvent.)
Indicators: 'Money Manager Graphic Tool' indicator by 'takycard' Forum - Page 6- Your EA works fine (experts tab:)2018.04.13 11:10:14.640 rectangle USDCHF,H4: uninit reason 4
2018.04.13 11:10:03.410 rectangle USDCHF,H4: drag rec_rec_label_1
2018.04.13 11:10:00.171 rectangle USDCHF,H4: initialized ChartSetInteger(0,CHART_EVENT_MOUSE_MOVE,1);
You don't need that unless you're going to capture CHARTEVENT_MOUSE_MOVE (which my code does.)
Sorry yes, was a mistake, wrong forum. On MT4 this code works, on MT5 not.
2. Sorry, i do not understand the purpose of this link.
4. Yes, not required.
Can you move this to MT5 forum and do you have a solution ?
Thank you.
Sorry yes, was a mistake, wrong forum. On MT4 this code works, on MT5 not.
2. Sorry, i do not understand the purpose of this link.
4. Yes, not required.
Can you move this to MT5 forum and do you have a solution ?
Thank you.
The rectangle is dragable when you grap the the small quaret in the upper left. For poeple with bad eyes like me, not really funny.
Hello,
i just want to code a rectangle which should be moveable, when dragged.
Unfortunately, i get no CHARTEVENT_OBJECT_DRAG called.
Is there any setting in MetaTrader 5 or a "ChartSetInteger" to be called in order to get it work?
I played around with zorder, from 0 to 2, but no help.
The property selectable is set to true.
A small expert demontrating this is attached.
(There is also a delay before the rectangle spawns and i don't know why.)
Any help appreciated.