TS SUPPORT
home contacts site map search
MultiCharts MCFX Other Products & Services Support Company

You are here:  Home > Support > Knowledgebase

Knowledgebase


Search in     for   
     
Bands > Bollinger Bands [Indicators]

Article/Author: Omega Research Inc., 1997

Download: BB.ELA

Category: Indicator > Bands

Description:

The Bollinger Bands indicator calculates a simple arithmetic average of prices, specified by the input Price, from each of the most recent number of bars specified by the input Length. This indicator also calculates the standard deviation in those prices for the same number of bars. An upper band is plotted a specified number of standard deviations above this average and a lower band is plotted a specified number of standard deviations below the average. The average is not plotted.

Usage:

Bollinger Bands combine the trend identifying aspects of a moving average with a dynamic factor, each markets own volatility, to plot an envelope. The distance between the bands is, therefore, a reflection of volatility. During sideways periods, prices reaching the bands may indicate overbought or oversold conditions. Strong movement up through the upper band or down through the lower band may indicate the beginning of a trend.




Inputs:

Price - Price to be used to calculate the moving average and volatility
Length - Number of bars of data to be included in calculation of Moving Average and volatility
StdDevUp - Number of Standard Deviations added to Moving Average for upper Bollinger Band
StdDevDn - Number of Standard Deviations subtracted from Moving Average for lower Bollinger Band
Displace - Number of bars to displace the plot of the Bollinger Bands

EasyLanguage Code:
INPUT: 	PRICE(CLOSE), LENGTH(9), STDDEVUP(2), STDDEVDN(-2), DISPLACE(0);

VARIABLES: BBTOP(0), BBBOT(0);

BBTOP = BOLLINGERBAND(PRICE, LENGTH, STDDEVUP);
BBBOT = BOLLINGERBAND(PRICE, LENGTH, STDDEVDN);

IF DISPLACE >= 0 OR CURRENTBAR > ABSVALUE(DISPLACE) THEN BEGIN
PLOT1[DISPLACE](BBTOP, "BOLLTOP");
PLOT2[DISPLACE](BBBOT, "BOLLBOT");

{ALERT CRITERIA}
CONDITION1 = PLOT1 <> PLOT2;
IF PRICE > PLOT1 AND CONDITION1 THEN
ALERT("PRICE IS OVER THE TOP BAND")
ELSE
IF PRICE < PLOT2 AND CONDITION1 THEN
ALERT("PRICE IS UNDER THE BOTTOM BAND");
END;

Support Menu

Contact Customer Support


Discussion Forum


Online Tutorials


Downloads & Check Version


Knowledgebase

Toll Free

Latest Events

June 29
We are starting beta-testing of MultiCharts 6.0 Beta 4.

September 10
We are glad to announce the release of MultiCharts 5.5!

September 10
Users of MultiCharts's can now subscribe to Barchart's real-time data feeds from $49/m.

February 10
MultiCharts received GOLD in Trade2Win's 2008 Members' Choice Awards.

Devember 8
Free MCFX PRO is now also available with Forex.com




© 1999-2010 TS Support, LLC. All rights reserved.