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
-
IPersistableICloneable<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
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
Methods
CalcIsFormed()
Calc IsFormed.
protected override bool CalcIsFormed()
Returns
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnProcess(IIndicatorValue)
To handle the input value.
protected override IIndicatorValue OnProcess(IIndicatorValue input)
Parameters
input
IIndicatorValueThe 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
SettingsStorageSettings storage.