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
periodintThe 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
periodintThe period of the three moving average (middle, upper and lower band).
widthdoubleA 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
namestringThe name of this indicator.
periodintThe period of the three moving average (middle, upper and lower band).
widthdoubleA coefficient specifying the distance between the middle band and upper or lower bands.
movingAverageTypeMovingAverageTypeType 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
LowerBand
Gets the lower acceleration band (Low * (1 - Width * (High - Low)/ (High + Low)))
public IndicatorBase LowerBand { get; }
Property Value
MiddleBand
Gets the middle acceleration band (moving average)
public IndicatorBase MiddleBand { get; }
Property Value
MovingAverageType
Gets the type of moving average
public MovingAverageType MovingAverageType { get; }
Property Value
UpperBand
Gets the upper acceleration band (High * ( 1 + Width * (High - Low) / (High + Low)))
public IndicatorBase UpperBand { get; }
Property Value
WarmUpPeriod
Required period, in data points, for the indicator to be ready and fully initialized.
public override int WarmUpPeriod { get; }
Property Value
Methods
Forward(long, DoubleArray)
Computes the next value of this indicator from the given state
protected override DoubleArray Forward(long time, DoubleArray input)
Parameters
timelonginputDoubleArrayThe 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()