KaufmanAdaptiveMovingAverage

StockSharp.Algo.Indicators

Kaufman adaptive moving average.

Inherits: DecimalLengthIndicator

Constructors

KaufmanAdaptiveMovingAverage
public KaufmanAdaptiveMovingAverage()
kaufmanAdaptiveMovingAverage = KaufmanAdaptiveMovingAverage()

Initializes a new instance of the KaufmanAdaptiveMovingAverage.

Properties

FastSCPeriod
public int FastSCPeriod { get; set; }
value = kaufmanAdaptiveMovingAverage.FastSCPeriod
kaufmanAdaptiveMovingAverage.FastSCPeriod = value

'Rapid' EMA period. The default value is 2.

NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = kaufmanAdaptiveMovingAverage.NumValuesToInitialize

Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals ). if undefined.

SlowSCPeriod
public int SlowSCPeriod { get; set; }
value = kaufmanAdaptiveMovingAverage.SlowSCPeriod
kaufmanAdaptiveMovingAverage.SlowSCPeriod = value

'Slow' EMA period. The default value is 30.

Methods

CalcIsFormed
protected override bool CalcIsFormed()
result = kaufmanAdaptiveMovingAverage.CalcIsFormed()

Calc IsFormed.

Returns: IsFormed

GetCapacity
protected override int GetCapacity()
result = kaufmanAdaptiveMovingAverage.GetCapacity()

Gets the capacity of the buffer for data storage.

Returns: The capacity of the buffer. By default, it is equal to Length.

Load
public override void Load(SettingsStorage storage)
kaufmanAdaptiveMovingAverage.Load(storage)

Load settings.

storage
Settings storage.
OnProcessDecimal
protected override decimal? OnProcessDecimal(IIndicatorValue input)
result = kaufmanAdaptiveMovingAverage.OnProcessDecimal(input)

To handle the input value.

input
The input value.

Returns: The new value of the indicator.

Reset
public override void Reset()
kaufmanAdaptiveMovingAverage.Reset()

To reset the indicator status to initial. The method is called each time when initial settings are changed (for example, the length of period).

Save
public override void Save(SettingsStorage storage)
kaufmanAdaptiveMovingAverage.Save(storage)

Save settings.

storage
Settings storage.
ToString
public override string ToString()
result = kaufmanAdaptiveMovingAverage.ToString()

Преобразовать к строковому представлению.

Returns: Строковое представление.