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

[Metastockusers] Re: Smoothed RSI Code



PureBytes Links

Trading Reference Links

Keith,

You can find the answer here:
http://trader.online.pl/MSZ/e-w-RSI_Smoothed.html

Preston

--- In Metastockusers@xxxxxxxxxxxxxxx, "Keith Newhouse" 
<knewhous@xxxx> wrote:
> Could anyone please code this for Metastock.  It is in Easy 
Language 
> and is the MESA Smoothed RSI.
> 
> Thanks for your help.
> 
> Keith
> 
> 
> 
> {****************************************************		
> 	Smoothed Relative Strength Index (SRSI)		
> 	Copyright (c) 2001   MESA 
> Software*****************************************************}
> Inputs:	Len(10);
> Vars:	count(0),	
>         Smooth23(0),	
>         CU23(0),	
>         CD23(0),	
>         SRSI(0);
> Smooth23 = (Close + 2*Close[1] + 2*Close[2] + Close[3])/6;
> CU23 = 0;
> CD23 = 0;
> For count = 0 to Len - 1 begin	
>      If Smooth23[count] > Smooth23[count + 1] then CU23 = CU23 
>              + Smooth23[count] - Smooth23[count + 1];     	
>      If Smooth23[count] < Smooth23[count + 1] then CD23 = CD23 
>              + Smooth23[count + 1] - Smooth23[count];
> end;
> If CU23 + CD23 <> 0 then SRSI = CU23/(CU23 + CD23);
> Plot1(SRSI, "SRSI");


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/zMEolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/