Code Library / Indicators
EMA Ribbon
Color EMA ribbon for trend visualization.
Language: Pine Script · Category: Indicators · Tags: EMA, ribbon, Pine Script
Source code
//@version=5
indicator("EMA Ribbon", overlay=true)
p1=plot(ta.ema(close,8),color=color.green)
p6=plot(ta.ema(close,89),color=color.red)
fill(p1,p6,ta.ema(close,8)>ta.ema(close,89)?color.new(color.green,85):color.new(color.red,85))How to use this snippet
This is a building block, not a finished trading system. Paste it into your own Pine Script project, compile it, and test it on a demo account with your broker's real spreads before relying on it. You can convert it to MQL4 or MQL5 with the Pine Script converter.