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: Bill Lanius who wrote (8937)3/12/1999 9:37:00 AM
From: John Schott  Read Replies (1) | Respond to of 11149
 
Bollinger Band measuring

I didn't check but I remember that there are at least four Bollinger band calculating scans on Brookes site (if you go to www.qp2.com or www.qp2b.com, there is a hyperlink to her address).

You can download them and import them into the QP2 scan function. Using edit (or just reading the raw file in an editor) you can see how they do the calculation.

By editing the one of them you like, you can easily make a scan that merely calculates todays value of bollinger band (which takes the last 20 days of data if that is your setting) Then add the +/- % test yourself.

Hope this helps.



To: Bill Lanius who wrote (8937)3/17/1999 7:23:00 PM
From: TechTrader42  Read Replies (2) | Respond to 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;