Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Bollinger Band Squeeze Highlighter and Exploration for Amibroker (AFL)

Rating:
3 / 5 (Votes 8)
Tags:
amibroker, bands

Highlights period when Bollinger Band is tightening, which in turn makes breakouts obvious to see. Also includes exploration to scan for stocks which bollinger band is tightening. Please note bollinger band does not indicate the direction of the potential forthcoming breakout, need in combination with other indicators to determine breakout direction.

Screenshots

Similar Indicators / Formulas

%B of Bollinger Bands With Adaptive Zones
Submitted by kaiji almost 10 years ago
Trend Bands
Submitted by rogercraft over 9 years ago
Jurik's Spandex Band
Submitted by xavier over 8 years ago
Bollinger %B
Submitted by konidena over 9 years ago
Bollinger Band Squeeze & Expansion
Submitted by razasia over 9 years ago
Bands
Submitted by tanujaya over 8 years ago

Indicator / Formula

Copy & Paste Friendly
Length = 14;
Price = EMA(Close, Length);
 
// Keltner 
kLength = Length;
kN = 1.5;
kATR = ATR(kLength);
kUpper = Price + kN * kATR;
kLower = Price - kN * kATR;
 
// Bollinger
bbLength = Length;
bbN = 2;
bbStDevValues = StDev(Close, bbLength);
bbUpper = Price + bbN * bbStDevValues;
bbLower = Price - bbN * bbStDevValues;
 
IsBBSqueeze = bbUpper <= kUpper AND bbLower >= kLower;

Proportion = (kUpper - kLower) / (bbUpper - bbLower);
BBBreakout = Cross(1,Proportion); 
Periods = Param("BBPeriods", 14, 2, 300, 1 );
Width = Param("Width", 2, 0, 10, 0.05 );
Color = ParamColor("Color", colorCycle );
Style = ParamStyle("Style");
bbtop=BBandTop( C, Periods, Width );
bbbot=BBandBot( C, Periods, Width );
Plot(bbtop, "", Color, Style ); 
Plot(bbbot , "", Color, Style );

sqeezcolor=ColorRGB(194,220,218);

PlotOHLC( bbtop,bbtop, bbbot,bbbot, "",IIf(IsBBSqueeze,colorYellow,colorWhite), styleCloud|styleNoRescale,  Null, Null, Null, -1 );
Plot(Close,"Close",colorGreen,styleCandle); 

Filter = BBBreakout;

AddColumn(BBBreakout, "BB Breakout", 1, colorWhite, IIf(BBBreakout==1, colorRed, colorWhite));
//set default sorting to Date/time in descending order in results window
SetSortColumns(-2);

4 comments

1. esy

Hi IG,
line 33 col128 error 16 too many arguments
can u help me out please

Ed

2. lgmqy2000

esy, sry not sure about the error. No errors for me running with latest version of AB.

3. kash4u213

esy ,

i think u have to wrap the code.

4. niftytiger

Very gud indicator

Leave Comment

Please login here to leave a comment.

Back