MT4 indicator that calculates the distance of the price from a moving average

kevinforex

Newbie
Jun 27, 2024
2
0
1
36
Hi everyone.

I am looking for an indicator for MT4 that calculates the maximum past distance of the price from a given EMA. In practice the indicator has to calculate how much distance it was in pips once the price is above the EMA and moves away forming the high. To know the value of the absolute maximum, wait for the price to fall touching the EMA. I attach an image to help you understand better (I hope!).
 

Attachments

  • Cattura.JPG
    Cattura.JPG
    178.3 KB · Views: 2
Last edited by a moderator:

Enivid

Administrator
Staff member
Nov 30, 2008
19,234
1,507
144
Odesa
www.earnforex.com
So, that's like a maximum excursion of price from its moving average between the crosses? That's interesting. I don't think I ever saw an indicator like that. There might be issues finding the way to display the distances optimally. In theory, there could be a number to display on every bar (on extremely whipsawing markets), so some means of placement the text label object should be found for this to be readable.