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.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.