Result Property
Summary
The Result Series of the Linear Regression R Squared indicator.
Signature
| public abstract IndicatorDataSeries Result {get;}
|
Return Value
IndicatorDataSeries
Declaring Type
cAlgo.API.Indicators.LinearRegressionRSquared
Examples
| 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