LinearRegressionRSquared


Summary

Linear Regression R Squared is used to confirm the strength of the market trend

Remarks

A higher value of R-Squared means that the stronger the trend.

Syntax

public interface LinearRegressionRSquared

Members

NameTypeSummary
Result PropertyThe Result Series of the LinearRegressionRSquared Indicator

Example 1

private LinearRegressionRSquared rSquared;
protected override void OnStart()
{
    // initialize rSquared indicator
    rSquared = Indicators.LinearRegressionRSquared(Source, Period);
}
protected override void OnTick()
{
    Print("{0}", rSquared.Result.LastValue);
}