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

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Bill Lanius who wrote (8937)3/17/1999 7:23:00 PM
From: TechTrader42  Read Replies (2) of 11149
 
Bill: You were looking for bands that had constricted to x amount
(for example, 2 or 3 percent). You could build on the Bollinger band
values scan and do it like this:

//bbands, by Brooke
output="bolling.lst";

float bolbandlower, bolbandlprev, bolbandupper, bolbandmid;
bolbandlower:=movavg(0,20,cl)-(StDev(0,-19)*2);
//bolbandlprev:=movavg(-1,20,cl)-(StDev(-1,-20)*2);
bolbandupper:=movavg(0,20,cl)+(StDev(0,-19)*2);
bolbandmid:=movavg(0,20,cl);

if bolbandupper<=1.03*bolbandlower then //Percentage of upper vs. lower
println Symbol, ", " , " Close:", Close(0):6:3, ", " ,
"Upper vs. lower: ", bolbandupper/bolbandlower:6:2, ", ",
"Bollinger upper: ", bolbandupper:6:2, ", ",
"Bollinger lower: ", bolbandlower:6:2, ", ",
"Bollinger middle: ", bolbandmid:6:2;
endif;

Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext