LinearRegressionForecast


Summary

Linear Regression Forecast is one of the indicators calculated by the Linear Regression approach.

Remarks

The Linear Regression Forecast is used for identifying trends and trend direction, and shows the statistical trend of a financial instrument over a specified time period. The calculation uses a Linear Regression Line.

Syntax

public interface LinearRegressionForecast

Members

NameTypeSummary
Result PropertyThe Result Series of the Linear Regression Forecast Indicator

Example 1

private LinearRegressionForecast _linearRegressionForecast;
[Parameter("Period", DefaultValue = 14)]
public int Period { get; set; }
protected override void Initialize()
{
    // initialize a new instance of LinearRegressionForecastIndicator class 
    _linearRegressionForecast = Indicators.LinearRegressionForecast(MarketSeries.Close, Period);
}