Skip to content

LinearRegressionForecast.Result

property · LinearRegressionForecast · cAlgo.API.Indicators

DesktopCLICloud

The Result Series of the Linear Regression Forecast Indicator

Definition

IndicatorDataSeries Result {get;}
linearRegressionForecast.Result: IndicatorDataSeries

Returns IndicatorDataSeries

Examples

var linearRegressionForecast = Indicators.LinearRegressionForecast(Bars.ClosePrices, 14);
Print("Linear Regression Forecast of the last closed bar = {0}", linearRegressionForecast.Result.Last(1));
linearRegressionForecast = api.Indicators.LinearRegressionForecast(api.Bars.ClosePrices, 14)
api.Print(f"Linear Regression Forecast of the last closed bar = {linearRegressionForecast.Result.Last(1)}")