Conversion of Screen Coordinates to Price/Time

 
I do not know whether I can ask for an advice on MT4 programming. Is it possible to achieve the following ?

1) Get the (x,y) screen coordinate when a mouse button is clicked.

2) Convert the (x,y) screen coordinates to the corresponding Price and Time

Thanks.

Best regards,


Tiffany

 
I do not know whether I can ask for an advice on MT4 programming. Is it possible to achieve the following ?

1) Get the (x,y) screen coordinate when a mouse button is clicked.

2) Convert the (x,y) screen coordinates to the corresponding Price and Time
  1. That's the purpose of this forum, help with programming. (No Slaves here, learn to code or pay someone. We're not going to code it FOR you. We are willing to HELP you.)
  2. There is no built in support for the mouse. You can get where a script or EA was dragged onto the chart (WindowXOnDropped) and you can find out where any object is (EA creates object, user moves object.)
  3. See also Buttons & Textfields on mt4 chart possible now - MQL4 forum



Reason: