# EMA Institutional Ribbon (//@orrnn=1)

- Canonical: https://rxm.orrnn.com/codebase/ema-institutional-ribbon
- Updated: 2026-12-02T01:51:53.248051-08:00

> Open-source OrrnnScript indicator plotting dual fast/slow EMA trend regimes with crossover chart markers and alert conditions.

Clean-room OrrnnScript (`//@orrnn=1`) trend ribbon ready to compile to `.rx5` or run directly in RTX5 Web Terminal.

```orrnn
//@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")
```
