PureBytes Links
Trading Reference Links
|
Thank you Roy, but it is just the Wilders smoothing that I want to replace
with a center weighted smoothing, as per a John Ehlers article regarding FIR
smoothing. Any other thoughts would be appreciated.
Bijan
-----Original Message-----
From: owner-metastock@xxxxxxxxxxxxx
[mailto:owner-metastock@xxxxxxxxxxxxx]On Behalf Of Roy Larsen
Sent: Monday, August 26, 2002 10:15 PM
To: metastock@xxxxxxxxxxxxx
Subject: Re: RSI
Bijan
> Since Metastock language does not permit a For...To loop, how is RSI
> calculated in Metastock. I need the actual formula to play with. Thanks.
{RSI Indicator}
A:=Input("RSI periods",2,50,14);
B:=CLOSE; {RSI target array}
U:=Wilders(If(B>Ref(B,-1),B-Ref(B,-1),0),A);
D:=Wilders(If(B<Ref(B,-1),Ref(B,-1)-B,0),A);
100-(100/(1+(U/D)));
Roy
|