Measure the distance between price and Moving average

Fron's avatar

Fron since: 08 Jan 2020;

  14 Feb 2021, 02:04
Measure the distance between price and Moving average

Good Day, 

Is there a function where i can measure the price and Moving average before they  cross or touch ? 

here is the best example i can explain

vivapeiro

norf
PanagiotisCharalampous's avatar

PanagiotisCharalampous since: 13 Jan 2017;

  15 Feb 2021, 09:20

Hi Fron,

I am not sure what kind of function are you looking for. This is just a subtraction.

Best Regards,

Panagiotis 

Join us on Telegram

Head of Community Management at cTrader
Fron's avatar

Fron since: 08 Jan 2020;

  18 Feb 2021, 22:48
RE:

PanagiotisCharalampous said:

Hi Fron,

I am not sure what kind of function are you looking for. This is just a subtraction.

Best Regards,

Panagiotis 

Join us on Telegram

I was thinking something like a Gauge like function, it would tell the Percentage of the distance betweeen the two points price and MA,  as price  draws closer to the other or once  it crosses still calculate the differance from price and MA 

norf