The FXB.ta.RSquared class calculates rolling R-squared of a series of values (comparing the values to their position index). It is a value-based calculation, and can be applied to any series of values including the output of another FXB.ta calculation. Parameters are as follows:
| Parameter | Description |
| period | Rolling period for the calculation |