Class AccumulationDistribution
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
This indicator computes the Accumulation/Distribution (AD) The Accumulation/Distribution is calculated using the following formula: AD = AD + ((Close - Low) - (High - Close)) / (High - Low) * Volume
public class AccumulationDistribution : TradeBarIndicator, IIndicator, IUpdatable
- Inheritance
-
AccumulationDistribution
- Implements
- Inherited Members
- Extension Methods
Constructors
AccumulationDistribution()
Initializes a new instance of the AccumulationDistribution class using the specified name.
public AccumulationDistribution()
AccumulationDistribution(string)
Initializes a new instance of the AccumulationDistribution class using the specified name.
public AccumulationDistribution(string name)
Parameters
namestringThe name of this indicator
Properties
IsReady
Gets a flag indicating when this indicator is ready and fully initialized
public override bool IsReady { get; }
Property Value
WarmUpPeriod
Required period, in data points, for the indicator to be ready and fully initialized.
public 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