How Can We Help?
R-Squared
RSquared(Vector, Periods)
R2(Vector, Periods)
Overview
R2 or R-Squared is the coefficient of determination for the supplied vector over the specified periods. The values oscillate between 0 and 1.
Example
set BUY = R2(CLOSE, 30) < 0.1
Evaluates to buy when the coefficient of determination is less than 0.1.