Class ArnaudLegouxMovingAverage
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
Smooth and high sensitive moving Average. This moving average reduce lag of the information but still being smooth to reduce noises. Is a weighted moving average, which weights have a Normal shape; the parameters Sigma and Offset affect the kurtosis and skewness of the weights respectively. Source: http://www.arnaudlegoux.com/index.html
public class ArnaudLegouxMovingAverage : WindowIndicator, IIndicator, IUpdatable
- Inheritance
-
ArnaudLegouxMovingAverage
- Implements
- Inherited Members
- Extension Methods
Constructors
ArnaudLegouxMovingAverage(int)
Initializes a new instance of the ArnaudLegouxMovingAverage class.
public ArnaudLegouxMovingAverage(int period)
Parameters
periodintint - the number of periods to calculate the ALMA.
ArnaudLegouxMovingAverage(int, int, double)
Initializes a new instance of the ArnaudLegouxMovingAverage class.
public ArnaudLegouxMovingAverage(int period, int sigma, double offset = 0.85)
Parameters
periodintint - the number of periods to calculate the ALMA
sigmaintint - this parameter is responsible for the shape of the curve coefficients. It affects the weight vector kurtosis.
offsetdoubledouble - This parameter allows regulating the smoothness and high sensitivity of the Moving Average. The range for this parameter is [0, 1]. It affects the weight vector skewness.
ArnaudLegouxMovingAverage(string, int)
Initializes a new instance of the ArnaudLegouxMovingAverage class.
public ArnaudLegouxMovingAverage(string name, int period)
Parameters
namestringstring - a name for the indicator
periodintint - the number of periods to calculate the ALMA.
ArnaudLegouxMovingAverage(string, int, int, double)
Initializes a new instance of the ArnaudLegouxMovingAverage class.
public ArnaudLegouxMovingAverage(string name, int period, int sigma = 6, double offset = 0.85)
Parameters
namestringstring - a name for the indicator
periodintint - the number of periods to calculate the ALMA
sigmaintint - this parameter is responsible for the shape of the curve coefficients. It affects the weight vector kurtosis.
offsetdoubledouble - This parameter allows regulating the smoothness and high sensitivity of the Moving Average. The range for this parameter is [0, 1]. It affects the weight vector skewness.
Properties
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 for 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 of data held in this indicator
timelonginputDoubleArrayThe input value to this indicator on this time step
Returns
- DoubleArray
A new value for this indicator