Class KaufmanAdaptiveMovingAverage
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
This indicator computes the Kaufman Adaptive Moving Average (KAMA). The Kaufman Adaptive Moving Average is calculated as explained here: http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:kaufman_s_adaptive_moving_average
public class KaufmanAdaptiveMovingAverage : WindowIndicator, IIndicator, IUpdatable
- Inheritance
-
KaufmanAdaptiveMovingAverage
- Implements
- Inherited Members
- Extension Methods
Constructors
KaufmanAdaptiveMovingAverage(int)
Initializes a new instance of the KaufmanAdaptiveMovingAverage class using the specified period.
public KaufmanAdaptiveMovingAverage(int period)
Parameters
periodintThe period of the KAMA
KaufmanAdaptiveMovingAverage(string, int)
Initializes a new instance of the KaufmanAdaptiveMovingAverage class using the specified name and period.
public KaufmanAdaptiveMovingAverage(string name, int period)
Parameters
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 override int WarmUpPeriod { get; }
Property Value
Methods
Forward(IReadOnlyWindow<long>, IReadOnlyWindow<DoubleArray>, long, DoubleArray)
Computes the next value of this indicator from the given state
protected override DoubleArray Forward(IReadOnlyWindow<long> timeWindow, IReadOnlyWindow<DoubleArray> window, long time, DoubleArray input)
Parameters
timeWindowIReadOnlyWindow<long>windowIReadOnlyWindow<DoubleArray>The window for the input history
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()