Table of Contents

Class AccelerationBands

Namespace
FinanceSharp.Indicators
Assembly
FinanceSharp.dll

The Acceleration Bands created by Price Headley plots upper and lower envelope bands around a moving average.

public class AccelerationBands : BarIndicator, IIndicator, IUpdatable
Inheritance
AccelerationBands
Implements
Inherited Members
Extension Methods

Constructors

AccelerationBands(int)

Initializes a new instance of the AccelerationBands class.

public AccelerationBands(int period)

Parameters

period int

The period of the three moving average (middle, upper and lower band).

AccelerationBands(int, double)

Initializes a new instance of the AccelerationBands class.

public AccelerationBands(int period, double width)

Parameters

period int

The period of the three moving average (middle, upper and lower band).

width double

A coefficient specifying the distance between the middle band and upper or lower bands.

AccelerationBands(string, int, double, MovingAverageType)

Initializes a new instance of the AccelerationBands class.

public AccelerationBands(string name, int period, double width, MovingAverageType movingAverageType = MovingAverageType.Simple)

Parameters

name string

The name of this indicator.

period int

The period of the three moving average (middle, upper and lower band).

width double

A coefficient specifying the distance between the middle band and upper or lower bands.

movingAverageType MovingAverageType

Type of the moving average.

Properties

IsReady

Gets a flag indicating when this indicator is ready and fully initialized

public override bool IsReady { get; }

Property Value

bool

LowerBand

Gets the lower acceleration band (Low * (1 - Width * (High - Low)/ (High + Low)))

public IndicatorBase LowerBand { get; }

Property Value

IndicatorBase

MiddleBand

Gets the middle acceleration band (moving average)

public IndicatorBase MiddleBand { get; }

Property Value

IndicatorBase

MovingAverageType

Gets the type of moving average

public MovingAverageType MovingAverageType { get; }

Property Value

MovingAverageType

UpperBand

Gets the upper acceleration band (High * ( 1 + Width * (High - Low) / (High + Low)))

public IndicatorBase UpperBand { get; }

Property Value

IndicatorBase

WarmUpPeriod

Required period, in data points, for the indicator to be ready and fully initialized.

public override int WarmUpPeriod { get; }

Property Value

int

Methods

Forward(long, DoubleArray)

Computes the next value of this indicator from the given state

protected override DoubleArray Forward(long time, DoubleArray input)

Parameters

time long
input DoubleArray

The input given to the indicator

Returns

DoubleArray

A new value for this indicator

Reset()

Resets this indicator to its initial state

public override void Reset()