Class KalmanFilter
- Namespace
- StockSharp.Algo.Indicators
- Assembly
- StockSharp.Algo.dll
Kalman Filter indicator.
[Display(ResourceType = typeof(LocalizedStrings), Name = "KalmanFilter", Description = "KalmanFilterDesc")]
[IndicatorIn(typeof(DecimalIndicatorValue))]
public class KalmanFilter : LengthIndicator<decimal>, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
- Inheritance
-
KalmanFilter
- Implements
- Inherited Members
- Extension Methods
Remarks
Adaptive filter for price smoothing and trend detection.
Constructors
KalmanFilter()
Initializes a new instance of the KalmanFilter class.
public KalmanFilter()
Properties
MeasurementNoise
Measurement noise coefficient (R).
[Display(ResourceType = typeof(LocalizedStrings), Name = "MeasurementNoise", Description = "MeasurementNoiseDesc", GroupName = "General")]
public decimal MeasurementNoise { get; set; }
Property Value
ProcessNoise
Process noise coefficient (Q).
[Display(ResourceType = typeof(LocalizedStrings), Name = "ProcessNoise", Description = "ProcessNoiseDesc", GroupName = "General")]
public decimal ProcessNoise { get; set; }
Property Value
Methods
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnProcessDecimal(IIndicatorValue)
To handle the input value.
protected override decimal? OnProcessDecimal(IIndicatorValue input)
Parameters
input
IIndicatorValueThe 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
SettingsStorageSettings storage.
ToString()
public override string ToString()