Log in to see Cloud of Tags

Wealth-Lab Wiki

Acceleration Bands

RSS

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 ); } } }

Important Disclaimer: The information provided by Wealth-Lab is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security.  The owner of Wealth-Lab.com assumes no liability resulting from the use of the material contained herein for investment purposes. By using this web site, you agree to the terms of this disclaimer and our Terms of Use.


ScrewTurn Wiki. Some of the icons created by FamFamFam.