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 - Keltner Bands for Amibroker (AFL)
kaiji
almost 15 years ago
Amibroker (AFL)

Rating:
2 / 5 (Votes 4)
Tags:
amibroker, bands

Although Volatility-based Bollinger Bands and Keltner Bands share many similarities, they differ in their construction. While Bollinger Bands rely on Std Deviation calculations, Keltner Band uses Average True Range, in representing volatility. Like Bollinger bands, Keltner Band signals are produced when the price action breaks above or below the channel bands and return to the median line. Some traders use this combination as Volatility Squeeze Indicator. When either of the band, converge, a volatility Squeeze occurs, which lead to sharp moves, upon “opening up” of the bands.

Similar Indicators / Formulas

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

Indicator / Formula

Copy & Paste Friendly
/* Bollinger - Keltner Bands */
/* AFL code by Prakash Shenoi */
/* Change BB Length and Std dev / Keltner Band periods and ATR settings by using Param function (CTLR-R) to your preferred settings. */ 

BBLength= Param("BBLength",10,2,30,2);
StdDv= Param("Stdev",2,0.5,5,0.1);
K1= Param("Kelt EMA Periods?",5,3,50);
K2= Param("ATR Periods?",10,2,50);
Mul= Param("ATR Multiplier?",1,0.5,5,0.5);
Mi=EMA(C, K1);
Kel= ATR(K2)*Mul;
UB= Mi + Kel;
LB= Mi - Kel;
UpB=BBandTop(H,BBLength,StdDv);
Mdb=MA(C, BBLength);
DnB=BBandBot(L,BBLength,StdDv);
Plot (Close, "close",1,64);
Plot (Mi,"",3,1);
Plot (UB,"",3,1);
Plot (LB,"",3,1);
Plot(UpB,"",12,1);
Plot(MdB,"",12,1);
Plot(DnB,"",12,1);
GraphXSpace=4;
Title=Name()+ EncodeColor (colorViolet )+  "   Bollinger - Keltner Bands: "
+"\n"+"RESISTANCE = "+WriteVal(UpB,1.2) + ", " +WriteVal (Ub,1.2) + "   SUPPORT
= " +WriteVal (Lb,1.2) + ", "+ WriteVal(Dnb,1.2);

0 comments

Leave Comment

Please login here to leave a comment.

Back