Metastock Indicator Formula |
Recursive Moving Trend Average |
Formula: |
Lb:=Input("Look-Back Period?",3,100,21);
Ty:=Input("1=C 2=H 3=L 4= Median Price",1,4,1);
Tv:=If(Ty=1,C,If(Ty=2,H,If(Ty=3,L,MP())));
Alpha:=2/(LB+1);
Bot:=(1-Alpha)*(If(Cum(1)
RMTA:=(1-Alpha)*(If(Cum(1)
(Alpha*(Tv+Bot-Ref(Bot,-1)));
RMTA |
|
|