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: Roy Yorgensen who wrote (5218)7/6/1998 10:10:00 PM
From: TechTrader42  Respond to of 11149
 
Roy: I read Mike's note, but for some reason, I'm having a hard time adding a condition for percentage gain in slope. I can add percent in the output easily enough with this:

if
j<0 and // eliminate first pass thru loop
b< b1 then
pctgain:=abs((b1/b)-1);
endif;

if
j<0 // eliminate first pass thru loop
and b< b1 then
println symbol,",", date(i),",",close(0):6:2,","," B: ",
b:4:3,","," B1: ", b1:4:3,","," Pctgain: ", pctgain:4:2;
b1:=b; // save current for next test
else
b1:=b; // must alway set ot last day's val
endif;
next j;

That gives an output like this:

DELL ,07/01/1998, 92.88, B: 0.609, B1: 0.651, Pctgain: 0.07

This awkward coding probably looks like an odd way to add percent, but I tried various ways, and this one doesn't get divide by zero errors (or other errors, for that matter).

But I run into problems trying to add percent as a condition. I can't seem to say, for example, if pctgain > .1, and I can't get around it by saying if b1>1.1*b, for example, because it doesn't work in the output for some reason. You'll have to try it to see what's going on. I think I'm running into problems here because I don't fully understand how you're getting values for b1 in the scan (though I can see that you are and that they're accurate).

Brooke




To: Roy Yorgensen who wrote (5218)7/6/1998 11:36:00 PM
From: Michael Quarne  Read Replies (2) | Respond to of 11149
 
HI Roy,

North West of you about 1200 miles.

Eagle River, AK

Arctic Mike