Summary
The R Squared or coefficient of determination indicator's main purpose is the confirm the strength of the market.
Syntax
public LinearRegressionRSquared LinearRegressionRSquared(DataSeries source, int periods)
Parameters
Name | Description |
---|
Example 1
private LinearRegressionRSquared rSquared; protected override void OnStart() { rSquared = Indicators.LinearRegressionRSquared(Source, Period); } protected override void OnTick() { Print("R squared is {0}", rSquared.Result.LastValue) }