The FXB.ta.Rainbow class calculates the Rainbow oscillator. 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 | Number of iterations for the rainbow |
| maType | Type of moving average. Defaults to a simple moving average (sma / 0). |