Table of Contents

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")]
public class LinearReg : LengthIndicator<decimal>, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
Inheritance
LinearReg
Implements
IPersistable
ICloneable<IIndicator>
Derived
Inherited Members
Extension Methods

Remarks

Constructors

LinearReg()

Initializes a new instance of the LinearReg.

public LinearReg()

Methods

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