Help on mouse drag event

 

I know there's an event with object dragging, but how can I detect mouse drag?

Is it possible at this point in mql5?

And if yes, how can I achieve it?... I need some clues or an example...

----

Besides this, is it possible somehow to access the information when in crosshair mode? (difference in pips, current price, number of bars)...

Thank you in advance. 

Documentation on MQL5: Timeseries and Indicators Access / Bars
  • www.mql5.com
Timeseries and Indicators Access / Bars - Documentation on MQL5
 

Could you explain?
Would you like to catch event when your mouse is moved?

 
alexvd:

Could you explain?
Would you like to catch event when your mouse is moved?

sorry about delayed response.

I mean to be able to know when mouse left button is down, and mouse is moving. As far as I know now, these are 2 separate events.

I want to use these 2 positions of the mouse: from where left button was kept down, until left button was released.

With these 2 positions I can convert into time and price (time is easier, price has some errors because of y position being int type (nr of pixels).

That's why I was asking if crosshair data can be fetched from somewhere.

Thanks 

 
ifmihai:

sorry about delayed response.

I mean to be able to know when mouse left button is down, and mouse is moving. As far as I know now, these are 2 separate events.

I want to use these 2 positions of the mouse: from where left button was kept down, until left button was released.

With these 2 positions I can convert into time and price (time is easier, price has some errors because of y position being int type (nr of pixels).

That's why I was asking if crosshair data can be fetched from somewhere.

Thanks 

 

Unfortunatelly you are able to catch left mouse click only.

But you can recieve events when you click and drag objects on the chart. 

 
alexvd:

Unfortunatelly you are able to catch left mouse click only.

But you can recieve events when you click and drag objects on the chart. 

thanks for your answer.

So I could use an object to move it around to get my results.

More events on mouse are needed from my point of view.

And some capability to access and extend the functionality of crosshair tool. This would be a killer feature from what I've read so far on different platforms, MT4 and MT5 included. 

 
ifmihai:

More events on mouse are needed from my point of view. 

May be it will, but definitely not now.
At this time we have a lot of other tasks.