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

Jurik's Spandex Band for Amibroker (AFL)
xavier
almost 8 years ago
Amibroker (AFL)

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

Jurik’s Spandex Band

Elastic Band around the price movement.
Can be use to spot support and resistant.

All credit goes to the creator.

Screenshots

Similar Indicators / Formulas

%B of Bollinger Bands With Adaptive Zones
Submitted by kaiji over 9 years ago
Trend Bands
Submitted by rogercraft about 9 years ago
Bands
Submitted by tanujaya about 8 years ago
Bollinger %B
Submitted by konidena about 9 years ago
Bollinger Band Squeeze & Expansion
Submitted by razasia about 9 years ago
BB Band
Submitted by rakan about 8 years ago

Indicator / Formula

Copy & Paste Friendly
HalfLife	= Param("channel halflife", 4.5, 0, 10, 0.1, 0);
ChanLen	= Param("channel length", 1, 1, 100, 1, 0);

shrink		= 2^(-HalfLife);
shrink2	= 1 - shrink;

topChan[0]	= High[0];
botChan[0]	= Low[0];

HH	= HHV(High, ChanLen);
LL	= LLV(Low, Chanlen); 

for( i = 1; i < BarCount; i++ ) {
	topChan[i] = shrink * H[i] + shrink2 * topChan[i-1] ;
	botChan[i] = shrink * L[i] + shrink2 * botChan[i-1] ;
	if (HH[i] >= topChan[i])	topChan[i] = HH[i];
	if (LL[i] <= botChan[i])	botChan[i] = LL[i];
	}

Plot(topChan,"spandex", colorRed, styleThick);
Plot(botChan,"", colorRed, styleThick);

//for( i = 1; i < BarCount; i++ ) { 
//	if (HH[i] >= topChan[i-1])			topChan[i] = HH[i];
//	else							    	topChan[i] = shrink * HH[i] + shrink2 * topChan[i-1] ;
//	if (LL[i] <= botChan[i-1])			botChan[i] = LL[i];
//	else							    	botChan[i] = shrink * LL[i] + shrink2 * botChan[i-1] ;
//	}

2 comments

1. ole

How would use this for trading?

2. xavier

This is a price band with “elastic” properties. it expand as price tries to
break through and contracts afterwards.
Price never breaks through this band and trading signals may be taken when price is “pushing” the band up or down.

Leave Comment

Please login here to leave a comment.

Back