Reading the distance displayed by the crosshair

 

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?

Reason: