PureBytes Links
Trading Reference Links
|
I have posted an update to the RMTA and TOSC formula's,
the first formulas had an "Absolute Value" that wasn't called for
in the article ( I had mistaken the "[" "]" to mean "|" "|"). The new
formulas seem to plot exactly as the old......but I wanted the code
to match the math in the article.
Thanks go out to William Golson for the help.
{Recursive Moving Trend Average}
Lb:=Input("Look-Back Period?",3,100,21);
Alpha:=2/(LB+1);
Bot:=(1-Alpha)*(If(Cum(1)<Lb,C,PREV))+C;
RMTA:=(1-Alpha)*(If(Cum(1)<Lb,C,PREV))+
(Alpha*(C+Bot-Ref(Bot,-1)));
RMTA;
{TOSC}
Lb:=Input("Look-Back Period?",3,100,21);
Alpha:=2/(LB+1);
Bot:=(1-Alpha)*(If(Cum(1)<Lb,C,PREV))+C;
RMTA:=(1-Alpha)*(If(Cum(1)<Lb,C,PREV))+
(Alpha*(C+Bot-Ref(Bot,-1)));
TOSC:=RMTA-Mov(C,lb,E);
TOSC;
Best wishes,
Adam Hefner.
e-mail: VonHef@xxxxxxxxxx
_____________________
|