Class LinearReg
- Namespace
- StockSharp.Algo.Indicators
- Assembly
- StockSharp.Algo.dll
Linear regression - Value returns the last point prediction.
[Display(ResourceType = typeof(LocalizedStrings), Name = "LRC", Description = "LinearRegression")]
[Doc("topics/api/indicators/list_of_indicators/lrc.html")]
public class LinearReg : LengthIndicator<decimal>, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
- Inheritance
-
LinearReg
- Implements
- Derived
- Inherited Members
- Extension Methods
Remarks
Constructors
LinearReg()
Initializes a new instance of the LinearReg.
public LinearReg()
Methods
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()