[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Different RSI in MetaStock ?



PureBytes Links

Trading Reference Links

Onno,

I have tested the following code and I beleive it will fix your RSI problem

- Bill Hebert

---------------------------------------------------------------------------

A:=Input("RSI periods",2,50,14);
B:=C; {RSI target array}
U:=If(B>Ref(B,-1),B-Ref(B,-1),0);
D:=If((B<Ref(B,-1) OR (B=Ref(B,-1))),Ref(B,-1)-B,0);
UE:=Mov(U,A,S);
DE:=Mov(D,A,S);
100-(100/(1+(UE/DE)));

----------------------------------------------------------------------------


----- Original Message -----
From: "onno goedknegt" <o.goedknegt@xxxxxxxxx>
To: <pdmanager@xxxxxxxxxxxxxxxxx>
Cc: <metastock@xxxxxxxxxxxxx>
Sent: Thursday, December 20, 2001 11:42 AM
Subject: Different RSI in MetaStock ?


> Dear Sirs,
>
> It looks like other MetaStock users noticed the following fact:
>
> It seems that the calculation for RSI in MetaStock differs from the
> standard RSI calculation.
>
> I'm trying to "translate" my MetaStock trading system into an Excel
> sheet.
> And because my MetaStock trading system contains RSI, I need
> to "translate" the RSI calculation into Excel.
>
> Attached Excel sheet contains my RSI calculation (sheet: calc 1).
> Other calculations downloaded from the Internet give the same values
> for RSI as my calculation (sheet: calc 2).
>
> MetaStock RSI values are shown in red.
>
> 1. Which version is correct ?
> 2. How does MetaStock calculate their RSI ?
> 3. Can you give the exact formula how MetaStock's RSI is calculated?
>
> Kind regards,
> Onno
>