indicator · own pane · open source

Rainbow Oscillator indicator

Rainbow Oscillator is a free open-source indicator. Rainbow Oscillator compares the 2-EMA to the 10-EMA and expresses the difference as a… Deepwick Script runs a subset of Pine Script.

v1Updated 3 Oct 2026▲ 0 users
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")

Comments

No comments yet.

Sign in to comment.