SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : TA-Quote Plus Version 2.0 -- Ignore unavailable to you. Want to Upgrade?


To: TechTrader42 who wrote (11)2/3/1998 10:39:00 PM
From: TechTrader42  Respond to of 85
 
Oops: The second RSI formula in my previous note, the formula with the moving average of the moving average, had one wrong line. The correct line is: for i = (0-d) to (-(13-1)-d) step -1 do

So the formula is:

output="rsima.lst";

daystoload=1000;

issuetype=common;
exchange nyse,nasdaq,amex;

float plus, minus, newrsi, rs;

integer i, d;

plus:=0;
minus:=0;

for d = 0 to 10 step 1 do
for i = (0-d) to (-(13-1)-d) step -1 do
if close(i)>close(i-1) then
plus:= plus + (close(i)-close(i-1));
endif;

if close(i) < close(i-1) then
minus:= minus + abs(close(i)-close(i-1));
endif;

next i;
next d;

rs:=plus/(minus+.000000001);

newrsi:= 100-(100/(1+rs));

println Symbol:-6,",", "Plus: ", plus, "Minus: ", minus:6:3, "Newrsi: ", newrsi:6:3;