Acceleration Bands

Modified on 2020/01/26 18:01 by Eugene — Categorized as: Community Indicators

AccelerationBands: Indicator Documentation

Syntax

DataSeries AccelerationBands( Bars bars );

Parameter Description

bars A Bars object

Description

The Acceleration Bands indicator created by Price Headley serve as a trading envelope that factor in a stock's typical volatility over standard settings of 20 or 80 bars. These bands tend to be a bit wider than Bollinger bands which makes it even more significant when a stock breaks out above them. The author uses the 20-day bands as a general rule. See his book "Big Trends in Trading" for the formula.

Example

This example illustrates how to construct and plot the Acceleration Bands.

using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators;

namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { DataSeries UB = SMA.Series( High * ( 1 + 2 * ( ( ( High-Low ) / ( ( High+Low ) / 2 ) ) * 1000 ) * 0.001 ), 20 ); DataSeries LB = SMA.Series( Low * ( 1 - 2 * ( ( ( High-Low ) / ( ( High+Low ) / 2 ) ) * 1000 ) * 0.001 ), 20 ); UB.Description = "Upper Band"; LB.Description = "Lower Band"; PlotSeries( PricePane, UB, Color.Blue, WealthLab.LineStyle.Solid, 1 ); PlotSeries( PricePane, LB, Color.Red, WealthLab.LineStyle.Solid, 1 ); } } }