indicator · own pane · open source
Rainbow Oscillator indicator
Rainbow Oscillator is a free open-source indicator by @deepwick. Rainbow Oscillator compares the 2-EMA to the 10-EMA and expresses the difference as a… Deepwick Script runs a subset of Pine Script.
Running…
Loading chart…
What Rainbow Oscillator does
Rainbow Oscillator compares the 2-EMA to the 10-EMA and expresses the difference as a percentage of the slow average. Acts as a fast trend ribbon gauge.
- Crosses zero mark ribbon flips; positive = bullish stack, negative = bearish.
- Useful as a regime filter for shorter-term entries.
Source code
Deepwick Script, a subset of Pine Script · read-only
//@version=6
indicator("Rainbow Oscillator", overlay=false)
colorUp = input.color("color.green", "Color Up")
colorDown = input.color("color.red", "Color Down")
colorNeutral = input.color("color.gray", "Color Neutral")
ro = (ta.sma(close, 2) - ta.sma(close, 10)) / ta.sma(close, 10) * 100
hline(0, "Zero", color=colorNeutral, linestyle=hline.style_dashed)
p_RO = plot(ro, "RO", color=ro >= 0 ? colorUp : colorDown, linewidth=2)
alertcondition(ta.crossover(ro, 0), "RO turns up", "Rainbow Oscillator crossed above zero")
alertcondition(ta.crossunder(ro, 0), "RO turns down", "Rainbow Oscillator crossed below zero")
No comments yet.
Sign in to comment.