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")]
public class KaufmannAdaptiveMovingAverage : LengthIndicator<decimal>, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
Inheritance
KaufmannAdaptiveMovingAverage
Implements
IPersistable
ICloneable<IIndicator>
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

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

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

OnProcess(IIndicatorValue)

To handle the input value.

protected override IIndicatorValue OnProcess(IIndicatorValue input)

Parameters

input IIndicatorValue

The input value.

Returns

IIndicatorValue

The resulting value.

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.