Class FractalAdaptiveMovingAverage
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
The Fractal Adaptive Moving Average (FRAMA) by John Ehlers
public class FractalAdaptiveMovingAverage : BarIndicator, IIndicator, IUpdatable
- Inheritance
-
FractalAdaptiveMovingAverage
- Implements
- Inherited Members
- Extension Methods
Constructors
FractalAdaptiveMovingAverage(int)
Initializes a new instance of the average class
public FractalAdaptiveMovingAverage(int n)
Parameters
nintThe window period (must be even). Example value: 16
FractalAdaptiveMovingAverage(int, int)
Initializes a new instance of the average class
public FractalAdaptiveMovingAverage(int n, int longPeriod)
Parameters
nintThe window period (must be even). Example value: 16
longPeriodintThe average period. Example value: 198
FractalAdaptiveMovingAverage(string, int, int)
Initializes a new instance of the average class
public FractalAdaptiveMovingAverage(string name, int n, int longPeriod)
Parameters
namestringThe name of the indicator instance
nintThe window period (must be even). Example value: 16
longPeriodintThe average period. Example value: 198
Properties
IsReady
Returns whether the indicator will return valid results
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(long, DoubleArray)
Computes the average value
protected override DoubleArray Forward(long time, DoubleArray input)
Parameters
timelonginputDoubleArrayThe data for the calculation
Returns
- DoubleArray
The average value
Reset()
Resets the average to its initial state
public override void Reset()