ema-institutional-ribbon.orrnn (//@orrnn=1)
//@orrnn=1
indicator("EMA Institutional Ribbon", overlay = true, max_bars_back = 500)
let fastLen = input.int(9, title = "Fast EMA", minval = 2, maxval = 100)
let slowLen = input.int(21, title = "Slow EMA", minval = 5, maxval = 300)
let fast = ta.ema(close, fastLen)
let slow = ta.ema(close, slowLen)
let bullCross = ta.crossover(fast, slow)
let bearCross = ta.crossunder(fast, slow)
plot(fast, title = "Fast EMA", color = color.info, linewidth = 2)
plot(slow, title = "Slow EMA", color = color.warning, linewidth = 2)
alertcondition(bullCross, title = "EMA Bullish Cross", message = "Fast EMA crossed above Slow EMA")
alertcondition(bearCross, title = "EMA Bearish Cross", message = "Fast EMA crossed below Slow EMA")Documentation
Clean-room OrrnnScript (`//@orrnn=1`) trend ribbon ready to compile to `.rx5` or run directly in RTX5 Web Terminal.
Developer Comments (1)
@trader_demo
Clean OrrnnScript structure — compiled to .rx5 without warnings.