Download MetaTrader 5

Mouse Clicks capturing price and time?

To add comments, please log in or register
YYZ
412
YYZ  
Hi:  Any way for MQL5 to capture mouse clicks for price and time (similar to an Andrew's Pitchfork capture)?    Thanks for the input. 
Simon Gniadkowski
Moderator
18021
Simon Gniadkowski  
YYZ:
Hi:  Any way for MQL5 to capture mouse clicks for price and time (similar to an Andrew's Pitchfork capture)?    Thanks for the input. 
Have a look at CHART_EVENT_MOUSE_MOVE
phi nuts
2181
phi nuts  
YYZ:
Hi:  Any way for MQL5 to capture mouse clicks for price and time (similar to an Andrew's Pitchfork capture)?    Thanks for the input. 
Use OnChartEvent's CHARTEVENT_CLICK and then convert the X, Y pixels coordinates into time price coordinates using ChartXYToTimePrice function.
YYZ
412
YYZ  
Thanks to both of you for that information!
To add comments, please log in or register