I would like to move the items freely as in the EA below (Link), does anyone know the library that was used or has any code example with a similar movement for me to use as a base?
In order to track mouse movement and adjust a graphic object accordingly, you will need to process chart events via the OnChartEvent() event handler. Events of interest for this case will probably be the following:
- CHARTEVENT_MOUSE_MOVE
- CHARTEVENT_CLICK
- CHARTEVENT_OBJECT_CLICK
- CHARTEVENT_OBJECT_DRAG
- docs.mql4.com
For example code, I found the following CodeBase example which demonstrate using various chart events including mouse movement: https://www.mql5.com/en/code/17875
However, there should probably be other example code in the CodeBase and/or in Articles about this subject. Do a thorough search of you own and research your findings.
- www.mql5.com
Please don't answer or post in Portuguese. This is the English forum and you must follow the rules.
Your link in the first post was removed by the moderator because it is against the rules to mention or discuss Market products on the forum.
Irrespective of the video, I had already already clearly understood your requirement in your first post, and so my recommendations remain the same.
Without your coding attempt, we am unable to offer more detailed advice. So if you need further advice, post your code, by using the "</>" icon on the posting toolbar or [Alt-S]. If it is a long file, then attach it with the "+ Attach file" link at the bottom of the posting section.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I started to create an EA to visually draw orders in Metatrader 4 like Tradingview does, but when it comes to dragging objects across the chart I am having difficulties.
I would like to move the items freely as in the EA below (Link), does anyone know the library that was used or has any code example with a similar movement for me to use as a base?
Thanks!
<Link removed>