OPEN-SOURCE SCRIPT
Ultimate Moving Averages Crossover

1. Massive Moving Average Library (19 Types)
Instead of loading a different indicator for each type of average, this script has a built-in mathematical library that calculates 19 unique MA formulas. You can select any of these for each line:
Basic MAs: SMA (Simple), EMA (Exponential), WMA (Weighted)
Smoothed MAs: RMA (Running), HMA (Hull), DEMA (Double EMA), TEMA (Triple EMA), ZLEMA (Zero-Lag EMA)
Adaptive MAs: KAMA (Kaufman Adaptive), FRAMA (Fractal Adaptive), VAMA (Volatility Adjusted), McGinley Dynamic
Advanced MAs: ALMA (Arnaud Legoux), LSMA (Least Squares / Regression), TMA (Triangular), T3 (Tillson)
Volume Weighted MAs: VWMA (Standard Volume Weighted), EVWMA (Elastic Volume Weighted)
Symmetrical MAs: SWMA (Symmetrically Weighted)
2. Multi-Line Architecture (Up to 10 Lines)
You can plot up to 10 independent moving average lines on a single chart. For each line, the settings UI allows you to fully configure:
Toggle On/Off: Only plot the lines you need.
Type Selection: Choose any of the 19 types from the dropdown.
Source Data: Calculate based on close, open, high, low, hl2, hlc3, etc.
Length (Period): Define the lookback period (e.g., 20, 50, 200).
Visuals: Customize the color and line thickness.
3. Integrated Crossover Engine
The script functions as a built-in crossover scanner. You can explicitly assign any of the 10 MAs to act as your "Fast MA" and "Slow MA":
Visual Signals: When the Fast MA crosses above the Slow MA, it plots a green "Bullish Cross" triangle below the candle. When it crosses below, it plots a red "Bearish Cross" triangle above the candle.
Automated Alerts: It includes alertcondition functions. You can set up TradingView alerts to ping your phone or webhook when a "Bullish MA Crossover" or "Bearish MA Crossover" occurs.
Summary
In essence, it is an All-in-One Trend & Confluence Hub. By combining 19 algorithms, 10 customizable lines, and an automated crossover detection system, it gives you complete freedom to build any moving average strategy—like a 3-EMA ribbon, a Golden Cross scanner, or a Hull MA scalping setup—without ever leaving the script's settings.
Instead of loading a different indicator for each type of average, this script has a built-in mathematical library that calculates 19 unique MA formulas. You can select any of these for each line:
Basic MAs: SMA (Simple), EMA (Exponential), WMA (Weighted)
Smoothed MAs: RMA (Running), HMA (Hull), DEMA (Double EMA), TEMA (Triple EMA), ZLEMA (Zero-Lag EMA)
Adaptive MAs: KAMA (Kaufman Adaptive), FRAMA (Fractal Adaptive), VAMA (Volatility Adjusted), McGinley Dynamic
Advanced MAs: ALMA (Arnaud Legoux), LSMA (Least Squares / Regression), TMA (Triangular), T3 (Tillson)
Volume Weighted MAs: VWMA (Standard Volume Weighted), EVWMA (Elastic Volume Weighted)
Symmetrical MAs: SWMA (Symmetrically Weighted)
2. Multi-Line Architecture (Up to 10 Lines)
You can plot up to 10 independent moving average lines on a single chart. For each line, the settings UI allows you to fully configure:
Toggle On/Off: Only plot the lines you need.
Type Selection: Choose any of the 19 types from the dropdown.
Source Data: Calculate based on close, open, high, low, hl2, hlc3, etc.
Length (Period): Define the lookback period (e.g., 20, 50, 200).
Visuals: Customize the color and line thickness.
3. Integrated Crossover Engine
The script functions as a built-in crossover scanner. You can explicitly assign any of the 10 MAs to act as your "Fast MA" and "Slow MA":
Visual Signals: When the Fast MA crosses above the Slow MA, it plots a green "Bullish Cross" triangle below the candle. When it crosses below, it plots a red "Bearish Cross" triangle above the candle.
Automated Alerts: It includes alertcondition functions. You can set up TradingView alerts to ping your phone or webhook when a "Bullish MA Crossover" or "Bearish MA Crossover" occurs.
Summary
In essence, it is an All-in-One Trend & Confluence Hub. By combining 19 algorithms, 10 customizable lines, and an automated crossover detection system, it gives you complete freedom to build any moving average strategy—like a 3-EMA ribbon, a Golden Cross scanner, or a Hull MA scalping setup—without ever leaving the script's settings.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.