Traders' Tips from TASC Magazine

Ehlers Filters

The formulas discussed by John Ehlers;
in his article, "Ehlers Filters", can be created in MetaStock 6.52 or higher. To create these indicators, in MetaStock, select the Indicator Builder from the Tools menu. Then click New and enter the formulas as listed below

Name: Ehlers Filters
Formula:
ti:= 15;
pr:= MP();
coef:= Abs(pr - Ref(pr,-5));

Sum(coef*pr,ti)/Sum(coef,ti)

Name: Distant Coefficient Ehlers Filter
Formula:
ti:= 15;
pr:= MP();
coef:=Sum(Power(Ref(LastValue(pr+PREV-PREV)-pr,-1),2),ti);

Sum(coef*pr,ti)/Sum(coef,ti)


Contents