Registered User Joined: 11/3/2004 Posts: 2
|
Could anyone help me write a PCF that indicates the distance between the current price and the 20 bar moving average line? I hope that this indicator works on diferent time frames. Thanks
Xp
|
 Administration
Joined: 9/30/2004 Posts: 9,187
|
ABS(C-AVGC20) if you want the value in dollars.
ABS(C-AVGC20) / AVGC20 * 100 if you want it as a percentage.
If you want to know if it's above or below the moving average, just remove the ABS from the formula.
|