Pedro Sanchez: How do you guys do to get price updates from an object that is being dragged...
- Same way you do with an object not being dragged, you just read it.
- Drag event is when the object is released, not while being moved.
- Instead, wait for a mouse move and read the object. See my GUI/Trade Assistant EA where I monitor the lines for changes.
Indicators: Money Manager Graphic Tool - Risk Management - Articles, Library comments - MQL5 programming forum - Page 8 #80 (2022.02.16).
![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
How do you guys do to get price updates from an object that is being dragged....let me explain..
I have an horizontal line placed at a let's say price XXXX, so when I click on that line to drag it up, I can get the CHARTEVENT_OBJECT_DRAG event, but it seems like it only gets received in the onChartEvent once the line has been dropped, so basically I am only able to get the final price where the horizontal line was dropped YYYY, but not the different prices while it is being moved.
Maybe is not possible?
I was thinking in some sort of combination with the CHARTEVENT_MOUSE_MOVE event but...no luck so far.