Skip to content

Result Property

Summary

The Result Series of the Linear Regression R Squared indicator.

Signature

1
public abstract IndicatorDataSeries Result {get;}

Return Value

IndicatorDataSeries

Declaring Type

cAlgo.API.Indicators.LinearRegressionRSquared

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 private LinearRegressionRSquared rSquared;
 protected override void OnStart()
 {
     // initialize rSquared indicator
     rSquared = Indicators.LinearRegressionRSquared(MarketSeries.Close, 9);
 }
 protected override void OnTick()
 {
     // Print the last value of rSquared indicator to the log
     Print("The current value of R Squared is {0}", rSquared.Result.LastValue);
 }

Last update: March 23, 2023