OPEN-SOURCE SCRIPT

Moving Average Ribbon (10x, per-MA timeframe)

18
A flexible moving‑average ribbon that plots up to 10 MAs, each with its own type, length, source, color, and independent timeframe selector for true multi‑timeframe analysis without repainting on higher‑timeframe pulls.​

What it does

Plots ten moving averages with selectable types: SMA, EMA, SMMA (RMA), WMA, and VWMA.​

Allows per‑line timeframe inputs (e.g., 5, 15, 60, 1D, 1W) so you can overlay higher‑ or equal‑timeframe MAs on the current chart.​

Uses a non‑repainting request pattern for higher‑timeframe series to keep lines stable in realtime.​

How to use

Leave a TF field blank to keep that MA on the chart’s timeframe; type a timeframe (like 15 or 1D) to fetch it from another timeframe.​

Typical trend‑following setup: fast MAs (10–21) on chart TF, mid/slow MAs (34–200) from higher TFs for bias and dynamic support/resistance.​

Color‑code faster vs slower lines and optionally hide lines you don’t need to reduce clutter.​

Best practices

Prefer pulling equal or higher timeframes for stability; mixing lower TFs into a higher‑TF chart can create choppy visuals.​

Combine with price action and volume/volatility tools (e.g., RSI, Bollinger Bands) for confirmation rather than standalone signals.​

Showcase example charts in your publish post and explain default settings so users know how to interpret the ribbon.​

Inputs

Show/Hide per MA, Type (SMA/EMA/SMMA/WMA/VWMA), Source, Length, Color, Timeframe.​

Defaults cover common lengths (10/20/50/100/200 etc.) and can be customized to fit intraday or swing styles.​

Limitations

This is an analysis overlay, not a signal generator; it doesn’t place trades or alerts by default.​

Effectiveness depends on instrument liquidity and user configuration; avoid overfitting to one market or regime.​

Attribution and etiquette

Provide a brief explanation of your calculation choices and note that MA formulas are standard; credit any borrowed concepts or snippets if used.​

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.