Open-source scriptindicator/v1
Moving Average Ribbon
Compare a sequence of exponential moving averages to visualize trend alignment and compression.
#moving-average#ribbon#trend
Description
The Moving Average Ribbon overlays several exponential averages with progressively longer lengths. Ordered and expanding lines can make a sustained trend easier to recognize, while compression and reordering can highlight transition or consolidation.
Open-source script. Everyone can inspect the source code, use the script on a chart, and save an editable copy.
Release notes
Version history · 1 published version
Version 1CurrentChart updatedMoving Average Ribbon · Aug 31, 2026
Source codempl-2.0View sourceHide source
indicator("Moving Average Ribbon", { overlay: true });
const source = input.source("Source", "close");
plot(ema(source, 8), { title: "EMA 8", color: "#00e5ff" });
plot(ema(source, 13), { title: "EMA 13", color: "#00b8d4" });
plot(ema(source, 21), { title: "EMA 21", color: "#2979ff" });
plot(ema(source, 34), { title: "EMA 34", color: "#536dfe" });
plot(ema(source, 55), { title: "EMA 55", color: "#7c4dff" });
plot(ema(source, 89), { title: "EMA 89", color: "#b388ff" });
Community discussion
0 comments
No comments yet. Start the discussion.