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

Re: [amibroker] Calculating RMI (RSI)



PureBytes Links

Trading Reference Links


Hello,
 
I wrote RMI for you, here it is:
 
///////////////////////////////////////////////
periods = 14; // lookback periodmomperiods 
= 4; // momentum period
 
mom = Close - Ref( Close, -momperiods 
);
 
up = IIF( mom > 0, mom, 0 );down = IIF( 
mom < 0, -mom, 0 );
 
sup = Wilders( up, periods );sdown = 
Wilders( down, periods );
 
graph0 = 100 * sup/ ( sup + sdown ); 

<FONT face="Arial CE" 
size=2>////////////////////////////////////////////////////////////////////
 
Set scaling to Custom: min 0 max 
100
and grid lines to 30/70
 
Best regards,
Tomasz Janeczko
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
<A title=tom_supera@xxxx 
href="">tom_supera@xxxx 
To: <A title=amibroker@xxxxxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx 
Sent: Friday, June 22, 2001 9:30 
PM
Subject: [amibroker] Calculating RMI 
(RSI)
<FONT 
size=2>Hi,allI want to build the formula for 
"Relative Momentum Index".At first i must build the Standard RSI.In 
the formula for RSI, i need the sum of close, which are higher than the 
day before.And at next i need the sum of close, which are lower than the 
day before.Thanks for your helpTom SuperaYour 
use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.