Price updates while dragging object

 

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.

 
Pedro SanchezHow do you guys do to get price updates from an object that is being dragged...
  1. Same way you do with an object not being dragged, you just read it.
  2. Drag event is when the object is released, not while being moved.
  3. 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).

Reason: