OPEN-SOURCE SCRIPT
Combined SMA and EMA Indicator

Description
This lightweight, multi-purpose indicator combines traditional Simple Moving Averages (SMA) and Exponential Moving Averages (EMA) into a single script, eliminating the need for multiple indicator slots on your chart.
Beyond simply plotting the standard lines, this script includes a dynamic secondary smoothing layer that can track either your SMA or EMA baseline, complete with optional Bollinger Band volatility channels.
Key Features:
Dual Display Mode: Choose to display only the SMA, only the EMA, or both simultaneously to analyze trend crossovers.
Targeted Smoothing: Apply a secondary filter to either the SMA or EMA baseline. Smoothing options include SMA, EMA, SMMA (RMA), WMA, or VWMA.
Integrated Bollinger Bands: Enable volatility bands directly over your smoothed moving average line to identify overextended price action and potential reversals.
Fully Configurable: Hide, show, or adjust lengths and source inputs for all components directly from the settings menu.
How to Use:
Trend Direction: Use the primary SMA/EMA crossover to determine the macro trend.
Dynamic Support/Resistance: Use the secondary Smoothed MA (Yellow) as a trailing trigger line for entries.
Volatility Breaks: Use the integrated Bollinger Bands to gauge when the baseline moving average is experiencing extreme expansion or contraction.
This lightweight, multi-purpose indicator combines traditional Simple Moving Averages (SMA) and Exponential Moving Averages (EMA) into a single script, eliminating the need for multiple indicator slots on your chart.
Beyond simply plotting the standard lines, this script includes a dynamic secondary smoothing layer that can track either your SMA or EMA baseline, complete with optional Bollinger Band volatility channels.
Key Features:
Dual Display Mode: Choose to display only the SMA, only the EMA, or both simultaneously to analyze trend crossovers.
Targeted Smoothing: Apply a secondary filter to either the SMA or EMA baseline. Smoothing options include SMA, EMA, SMMA (RMA), WMA, or VWMA.
Integrated Bollinger Bands: Enable volatility bands directly over your smoothed moving average line to identify overextended price action and potential reversals.
Fully Configurable: Hide, show, or adjust lengths and source inputs for all components directly from the settings menu.
How to Use:
Trend Direction: Use the primary SMA/EMA crossover to determine the macro trend.
Dynamic Support/Resistance: Use the secondary Smoothed MA (Yellow) as a trailing trigger line for entries.
Volatility Breaks: Use the integrated Bollinger Bands to gauge when the baseline moving average is experiencing extreme expansion or contraction.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.