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-Quotes Plus -- Ignore unavailable to you. Want to Upgrade?


To: Richard Estes who wrote (6894)9/29/1998 11:34:00 AM
From: gonzongo  Read Replies (1) | Respond to of 11149
 
StochRSI(21/21) UP - with other stuff looking good:
====================================================
Yes headings in the program would help very much

Key elements:
1.Price above yesterday
2. QRS high or low- above 87 or below 30
3. high volatility- mov avg high divided by low> 1.035
4. Std deviation in a reasonable range- bb<12. Not necessarily tight
but not blow out wide.
5.StochRSI(8,5)- rising but still below 80 yet above 32.
6. stochrsi(21,21) - Just turned up- yet still below 60.

Println: close today- close yesterday- stochRSI 8/5 value-StochRSI 21/21 value-- volume- ratio to avg volume - qrs- date- title of scan

==============================================
output="grace.lst";
input="250vol.lst";
ProcessMs= "c:\meta\grace\",VMS;

daystoload= 400;
daysrequired=400;
integer p, i, j;
float weight, maperiod1, maperiod2, total, totaldays,StochRSI,PrvStRSI, PrvPrvSRSI, StochRSI2, PrvStRSI2, PrvPrvSRSI2,maperiod1a, maperiod2a, weighta, totala, totaldaysa,bb,pctgain;

for p = 0 to 0 step 1 do
if close(p) > close(p-1) then
if qrs(p) > 87 or (qrs (p)<30 and qrs(p)>0) then
if movavg(p,89,hi)/movavg(p,89,lo) > 1.035 then
bb :=(stdev(p,p-7)/(.000001+max(p-1,p-144,hi)-min(p-1,p-144,lo)))*100;
if bb<12 then

//SET MA'S FOR FIRST STOCHRSI
maperiod1:=8; //set MA: e.g., in StochRSI(8,5), set for 8; in StochRSI(10),
maperiod2:=5;// set MA: e.g., in StochRSI(8,5), set for 5; in StochRSI(10),

set rsi = maperiod1;

//SET MA'S FOR SECOND STOCHRSI -- Second RSI is automatically set below when
maperiod1a:=21; //set MA: e.g., in StochRSI(8,5), set for 8; in StochRSI(10),

maperiod2a:=21;// set MA: e.g., in StochRSI(8,5), set for 5; in StochRSI(10),

weight:=0;
total:=0;
for i = maperiod2 to 1 step -1 do
total:= total + i;
next i;
totaldays:=total;

StochRSI:=0;
PrvStRSI:=0;
PrvPrvSRSI:=0;
for j = maperiod2 to 1 step -1 do
weight:=((j/totaldays)*100);
StochRSI:=StochRSI+((rsi(j-(maperiod2-p))-min(j-(maperiod2-p),(j-maperiod2)-(maperiod1-1-p),rsi))/(.000001+max(j-(maperiod2-p),(j-maperiod2)-(maperiod1-1-p),rsi)-min(j-(maperiod2-p),(j-maperiod2)-(maperiod1-1-p),rsi))*(weight));
PrvStRSI:=PrvStRSI+((rsi(j-(maperiod2+1-p))-min(j-(maperiod2+1-p),(j-maperiod2)-(maperiod1-p),rsi))/(.000001+max(j-(maperiod2+1-p),(j-maperiod2)-(maperiod1-p),rsi)-min(j-(maperiod2+1-p),(j-maperiod2)-(maperiod1-p),rsi))*(weight));
PrvPrvSRSI:=PrvPrvSRSI+((rsi(j-(maperiod2+2-p))-min(j-(maperiod2+2-p),(j-maperiod2)-(maperiod1+1-p),rsi))/(.000001+max(j-(maperiod2+2-p),(j-maperiod2)-(maperiod1+1-p),rsi)-min(j-(maperiod2+2-p),(j-maperiod2)-(maperiod1+1-p),rsi))*(weight));
next j;
if StochRSI>PrvStRSI then
if StochRSI<80 and StochRSI>32 then
set rsi = maperiod1a;

weighta:=0;
totala:=0;
for i = maperiod2a to 1 step -1 do
totala:= totala + i;
next i;
totaldaysa:=totala;

StochRSI2:=0;
PrvStRSI2:=0;
PrvPrvSRSI2:=0;
for j = maperiod2a to 1 step -1 do
weighta:=((j/totaldaysa)*100);
StochRSI2:=StochRSI2+((rsi(j-(maperiod2a-p))-min(j-(maperiod2a-p),(j-maperiod2a)-(maperiod1a-1-p),rsi))/(.000001+max(j-(maperiod2a-p),(j-maperiod2a)-(maperiod1a-1-p),rsi)-min(j-(maperiod2a-p),(j-maperiod2a)-(maperiod1a-1-p),rsi))*(weighta));
PrvStRSI2:=PrvStRSI2+((rsi(j-(maperiod2a+1-p))-min(j-(maperiod2a+1-p),(j-maperiod2a)-(maperiod1a-p),rsi))/(.000001+max(j-(maperiod2a+1-p),(j-maperiod2a)-(maperiod1a-p),rsi)-min(j-(maperiod2a+1-p),(j-maperiod2a)-(maperiod1a-p),rsi))*(weighta));
PrvPrvSRSI2:=PrvPrvSRSI2+((rsi(j-(maperiod2a+2-p))-min(j-(maperiod2a+2-p),(j-maperiod2a)-(maperiod1a+1-p),rsi))/(.000001+max(j-(maperiod2a+2-p),(j-maperiod2a)-(maperiod1a+1-p),rsi)-min(j-(maperiod2a+2-p),(j-maperiod2a)-(maperiod1a+1-p),rsi))*(weighta));
next j;
if StochRSI2 < 60 then
If StochRSI2>PrvStRSI2 then
If PrvStRSI2<PrvPrvSRSI2 then
if p<-9 then
pctgain := ((Max(p+10,p+1,hi))/close(p))-1;
Println Symbol:-6,",",Max(p+10,p+1,hi):6:3,",",close(p):6:3,",",pctgain:6:3,",",StochRSI:4:2,",",StochRSI2:4:2,",",vol(p):8:0,",",vol(p)/(avgvol(p-1,p-34)):5:2,",",qrs(p):4:0,",", date(p),",","grace";
else
Println Symbol:-6,",",close(p):6:3,",",close(p-1):6:3,",",StochRSI:5:1,",",StochRSI2:5:1,",",vol(p):8:0,",",vol(p)/avgvol(p-1,p-34):6:3,",",qrs(p):4:0,",",date(p),",","grace";
endif;endif;endif;endif;endif;endif;endif;endif;endif;endif;
next p;





To: Richard Estes who wrote (6894)9/29/1998 11:40:00 AM
From: gonzongo  Respond to of 11149
 
grace scan hits on 9/14:( 10 days back)
as an example:
symbol-high in ten days-close on scan day- pct diff - stochrsi(8/5)- stochRsi(21/21)-volume- ratio to avg vol- qrs- date - title
ANN ,30.000,28.062, 0.069,78.66,34.95, 253800, 0.45, 97,09/14/1998,grace
ASI ,17.000,11.875, 0.432,58.32,23.60, 2505800, 1.55, 15,09/14/1998,grace
CMCAF ,16.750,14.000, 0.196,79.86,27.12, 290800, 1.28, 91,09/14/1998,grace
DELL ,69.125,59.062, 0.170,68.45,41.52,22526300, 0.48, 99,09/14/1998,grace
JDAS ,15.000,10.812, 0.387,63.80,45.29, 698800, 0.93, 24,09/14/1998,grace
LXK ,75.500,58.500, 0.291,55.07,12.88, 864500, 1.62, 96,09/14/1998,grace
SKYW ,20.688,18.000, 0.149,68.40,18.88, 426900, 1.38, 93,09/14/1998,grace