Table of Contents

Class KaufmannAdaptiveMovingAverage

Namespace
StockSharp.Algo.Indicators
Assembly
StockSharp.Algo.dll

Kaufman adaptive moving average.

[Display(ResourceType = typeof(LocalizedStrings), Name = "KAMA", Description = "KaufmannAdaptiveMovingAverage")]
[Doc("topics/api/indicators/list_of_indicators/kama.html")]
public class KaufmannAdaptiveMovingAverage : LengthIndicator<decimal>, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
Inheritance
KaufmannAdaptiveMovingAverage
Implements
Derived
Inherited Members
Extension Methods

Remarks

Constructors

KaufmannAdaptiveMovingAverage()

Initializes a new instance of the KaufmannAdaptiveMovingAverage.

public KaufmannAdaptiveMovingAverage()

Properties

FastSCPeriod

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

[Display(ResourceType = typeof(LocalizedStrings), Name = "FastMa", Description = "FastMaDesc", GroupName = "General")]
public int FastSCPeriod { get; set; }

Property Value

int

NumValuesToInitialize

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

public override int NumValuesToInitialize { get; }

Property Value

int

SlowSCPeriod

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

[Display(ResourceType = typeof(LocalizedStrings), Name = "SlowMa", Description = "SlowMaDesc", GroupName = "General")]
public int SlowSCPeriod { get; set; }

Property Value

int

Methods

CalcIsFormed()

Calc IsFormed.

protected override bool CalcIsFormed()

Returns

bool

IsFormed

GetCapacity()

Gets the capacity of the buffer for data storage.

protected override int GetCapacity()

Returns

int

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

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

OnProcessDecimal(IIndicatorValue)

To handle the input value.

protected override decimal? OnProcessDecimal(IIndicatorValue input)

Parameters

input IIndicatorValue

The input value.

Returns

decimal?

The new value of the indicator.

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).

public override void Reset()

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.