OPEN-SOURCE SCRIPT
Dual Moving Average Exponential

Overview
This script is a clean, optimized extension of TradingView's official, built-in Moving Average Exponential (EMA) indicator. Instead of cluttering your chart by loading multiple single indicators, this script allows you to plot two independent EMAs simultaneously within a single indicator slot, saving you valuable layout space.
It retains the full functionality of the original script, including the advanced Moving Average Smoothing and Bollinger Band features, applying them directly to the primary EMA.
Key Features
Dual EMA Plotting: Set independent lengths, sources, and offsets for two separate exponential moving averages (e.g., a fast EMA and a slow EMA for trend crossovers).
UI Customization: Color pickers have been added directly to the inputs menu, allowing you to change the line colors on the fly without entering the script settings style tab or editing the code.
Organized Input Groups: Settings are cleanly separated into "EMA 1", "EMA 2", and "Smoothing" sections for easy navigation.
Original Smoothing Matrix: Includes the native script's ability to smooth EMA 1 using SMA, EMA, SMMA, WMA, VWMA, or to generate EMA-based Bollinger Bands.
How to Use
Trend Identification: Use a fast EMA (e.g., 9 or 21) alongside a slow EMA (e.g., 50 or 200) to quickly identify trend direction and potential crossover signals.
Support & Resistance: Utilize the dual lines to identify dynamic support and resistance zones (the "space" between the two EMAs) rather than relying on a single price point.
Advanced Filtering: Turn on the "Smoothing" options in the settings menu to apply secondary filters or Bollinger Bands to your primary EMA for volatility and momentum analysis.
This script is a clean, optimized extension of TradingView's official, built-in Moving Average Exponential (EMA) indicator. Instead of cluttering your chart by loading multiple single indicators, this script allows you to plot two independent EMAs simultaneously within a single indicator slot, saving you valuable layout space.
It retains the full functionality of the original script, including the advanced Moving Average Smoothing and Bollinger Band features, applying them directly to the primary EMA.
Key Features
Dual EMA Plotting: Set independent lengths, sources, and offsets for two separate exponential moving averages (e.g., a fast EMA and a slow EMA for trend crossovers).
UI Customization: Color pickers have been added directly to the inputs menu, allowing you to change the line colors on the fly without entering the script settings style tab or editing the code.
Organized Input Groups: Settings are cleanly separated into "EMA 1", "EMA 2", and "Smoothing" sections for easy navigation.
Original Smoothing Matrix: Includes the native script's ability to smooth EMA 1 using SMA, EMA, SMMA, WMA, VWMA, or to generate EMA-based Bollinger Bands.
How to Use
Trend Identification: Use a fast EMA (e.g., 9 or 21) alongside a slow EMA (e.g., 50 or 200) to quickly identify trend direction and potential crossover signals.
Support & Resistance: Utilize the dual lines to identify dynamic support and resistance zones (the "space" between the two EMAs) rather than relying on a single price point.
Advanced Filtering: Turn on the "Smoothing" options in the settings menu to apply secondary filters or Bollinger Bands to your primary EMA for volatility and momentum analysis.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.