PureBytes Links
Trading Reference Links
|
One implementation of RSI in MetaStock,
{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
----- Original Message -----
From: "rudolf stricker" <lists@xxxxxxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Sent: Friday, February 08, 2002 6:49 AM
Subject: Re: AW: AW: momentum indicators, using also o-h-l
>
> Andreas,
>
> On Wed, 6 Feb 2002 21:49:26 +0100, you wrote:
>
> >for the RSI calculation I use the VB routine below. It's a Wilder's
smoothed
> >percentage of Up-days vs. Down-days. Achelis says in his book "Technical
> >Analysis from A to Z" that "The RSI is a fairly simple formula, but
> >difficult to explain without pages of examples. Refer to Wilder's book
for
> >additional calculation information. The basic formula is:
> >
> >100 - ( 100 / (1 + (U/D))) Where: U = An average of upward price change,
D
> >= An average of downward price change."
> >
> >The result from a straightforward implementation of the above does not
match
> >the results from Metastock, so after a bit more research, I found that U
and
> >D had to be smoothed by Wilder's smoothing, which in fact is the quite
the
> >same as exponential smoothing.
> >
> >You can surely identify the relevant code and find another definition of
Up
> >and Down days using O-H-L.
> >
> >For your investigations, I have also included the VB code for the Relativ
> >Momentum Index, Chandes Momentum Oscillator and some other studies on
> >Momentum, Velocity and Acceleration.
> >
> >I would be interested in your findings. If you need more on this, just
yell.
>
> Thank you much again for your help! - I'll study the material you
> provided, and hopefully come back with something like a "momentum
> indicator using also o-h-l".
>
> Thank you again,
> mfg rudolf stricker
> | Disclaimer: The views of this user are strictly his own.
>
>
>
|