Hi I am looking for Rainbow oscillator code. Can any help to configure trade signal?
1 Like
#copied from tradescript guide
Rainbow Oscillator
RainbowOscillator(Vector, Levels, MA Type)
RBO(Vector, Levels, MA Type)
Overview
The rainbow oscillator is calculated based upon multiple time frames of a moving
average.
Interpretation
The trend may reverse suddenly when values stay above 0.80 or below 0.20 for
two consecutive days.
Recommended Parameters
Vector: CLOSE
Levels: 3
MA Type: SIMPLE
Example
SET R = RBO(CLOSE, 3, SIMPLE)
R > 0.8 AND REF(R, 1) > 0.8
Evaluates to true when the Rainbow Oscillator has been above 0.8 for at least
two consecutive days.
Thank you very much