OPEN-SOURCE SCRIPT
Universal MA Playground

🔥 Universal MA Playground — Test Any Moving Average Combo With Style
Experiment with 14 moving average types, crossovers, and themes in one flexible indicator
What it is
A universal moving average playground with 14 MA types, customizable auto/manual lengths, and multiple color themes.
It highlights crossovers with glowing lines, background tint, and theme-based styling. Intended as a flexible exploration tool, not a standalone trading system.
Why combine multiple MAs?
Each moving average has unique strengths:
EMA (Exponential) → reacts faster to price changes.
SMA (Simple) → smooth, classic trend measure.
HMA (Hull) → reduces lag, sharper turns.
TEMA/DEMA → smoother than EMA, responsive to reversals.
ALMA, McGinley, LSMA → adaptive, less noisy.
VWAP & Rolling VWAP → volume-weighted trend with session or rolling lookback.
By testing crossovers between any two types, traders can see where different smoothing methods align, helping filter weak or lagging signals.
How it works
MA1 & MA2: Choose any type (SMA, EMA, HMA, VWAP, etc.).
Lengths: Each MA defaults to its standard (e.g. EMA=21, SMA=20, HMA=21). Manual override option available.
Visuals:
Lines change color by theme.
Fill between MAs highlights when MA1 > MA2 (bull) or MA1 < MA2 (bear).
Optional background glow reinforces bias.
Themes: Classic, Neon, Dark Glow, Ice & Fire, Minimalist, Cyberpunk, Nature.
What’s original here
Full library of 14 MA types in one script.
Auto-length detection with manual override toggle.
Theme engine for line, fill, and glow styles.
VWAP handling: true session VWAP intraday, fallback VWMA on higher timeframes.
Clean visual crossover highlights without extra clutter.
Inputs & settings
MA Types: SMA, EMA, WMA, VWMA, RMA, DEMA, TEMA, T3, HMA, ALMA, McGinley, LSMA, VWAP, Rolling VWAP.
Lengths: Auto (standard defaults) or manual override.
Theme selector: 7 presets.
Background glow: ON/OFF.
How to read
Two selected MAs are plotted.
Fill between them shows bias (green for MA1 above, red for MA1 below).
Triangle markers show crossover points.
Background glow (optional) highlights overall state.
Suggested use
Test different MA pairs (e.g. EMA21 vs HMA50, VWAP vs SMA20).
Use as trend confirmation or visual exploration, not a standalone system.
Works on all timeframes; useful both intraday and swing.
Limitations
VWAP only works intraday; on higher TF it falls back to VWMA(20).
Not a trading system by itself. Use with structure, risk management, and confluence.
Signals may lag in sideways markets.
Credits
Standard MAs are public domain (SMA, EMA, HMA, VWAP, etc.).
Universal combination, auto/manual logic, and theme design: NICK789.
Disclaimer
Educational use only; not financial advice.
No guarantees of accuracy or profitability.
Markets involve risk; past performance does not guarantee results.
Experiment with 14 moving average types, crossovers, and themes in one flexible indicator
What it is
A universal moving average playground with 14 MA types, customizable auto/manual lengths, and multiple color themes.
It highlights crossovers with glowing lines, background tint, and theme-based styling. Intended as a flexible exploration tool, not a standalone trading system.
Why combine multiple MAs?
Each moving average has unique strengths:
EMA (Exponential) → reacts faster to price changes.
SMA (Simple) → smooth, classic trend measure.
HMA (Hull) → reduces lag, sharper turns.
TEMA/DEMA → smoother than EMA, responsive to reversals.
ALMA, McGinley, LSMA → adaptive, less noisy.
VWAP & Rolling VWAP → volume-weighted trend with session or rolling lookback.
By testing crossovers between any two types, traders can see where different smoothing methods align, helping filter weak or lagging signals.
How it works
MA1 & MA2: Choose any type (SMA, EMA, HMA, VWAP, etc.).
Lengths: Each MA defaults to its standard (e.g. EMA=21, SMA=20, HMA=21). Manual override option available.
Visuals:
Lines change color by theme.
Fill between MAs highlights when MA1 > MA2 (bull) or MA1 < MA2 (bear).
Optional background glow reinforces bias.
Themes: Classic, Neon, Dark Glow, Ice & Fire, Minimalist, Cyberpunk, Nature.
What’s original here
Full library of 14 MA types in one script.
Auto-length detection with manual override toggle.
Theme engine for line, fill, and glow styles.
VWAP handling: true session VWAP intraday, fallback VWMA on higher timeframes.
Clean visual crossover highlights without extra clutter.
Inputs & settings
MA Types: SMA, EMA, WMA, VWMA, RMA, DEMA, TEMA, T3, HMA, ALMA, McGinley, LSMA, VWAP, Rolling VWAP.
Lengths: Auto (standard defaults) or manual override.
Theme selector: 7 presets.
Background glow: ON/OFF.
How to read
Two selected MAs are plotted.
Fill between them shows bias (green for MA1 above, red for MA1 below).
Triangle markers show crossover points.
Background glow (optional) highlights overall state.
Suggested use
Test different MA pairs (e.g. EMA21 vs HMA50, VWAP vs SMA20).
Use as trend confirmation or visual exploration, not a standalone system.
Works on all timeframes; useful both intraday and swing.
Limitations
VWAP only works intraday; on higher TF it falls back to VWMA(20).
Not a trading system by itself. Use with structure, risk management, and confluence.
Signals may lag in sideways markets.
Credits
Standard MAs are public domain (SMA, EMA, HMA, VWAP, etc.).
Universal combination, auto/manual logic, and theme design: NICK789.
Disclaimer
Educational use only; not financial advice.
No guarantees of accuracy or profitability.
Markets involve risk; past performance does not guarantee results.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.