Download MetaTrader 5

Reading the distance displayed by the crosshair

To add comments, please log in or register
Take active part in the life of the community. Improve your rating!
ale
68
ale 2015.07.22 06:29 

Using the crosshair functionality, one can click on a point in the chart, keep the button pressed and move the mouse. This will display a line a distance in points between the initial point and where the cursor is.

I would like to read that distance in points (or to calculate it somehow) from my EA. Any suggestions?

To add comments, please log in or register