PureBytes Links
Trading Reference Links
|
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
|