OPEN-SOURCE SCRIPT
Multi-EMA Slope Dashboard

This script provides a comprehensive dashboard displayed directly on the chart, allowing you to analyze the underlying trend using 8 Exponential Moving Averages (EMA) ranging from period 20 to 55.
Unlike classic indicators that simply check if the price is above or below the EMA, this tool analyzes the slope of each moving average to determine the true market dynamics.
The indicator calculates the status of 8 distinct EMAs (20, 25, 30, 35, 40, 45, 50, 55). For each EMA, the script determines the direction using the following logic:
Slope Calculation: It compares the current EMA value with its value 3 bars ago (variable nb_bougies).
Neutrality Threshold: To avoid false signals in ranging (flat) markets, a neutrality filter is applied (0.01% of the EMA value).
Dashboard Interpretation
The table is located at the top right of your screen and displays three columns:
EMA: The moving average period (e.g., 20, 55).
State:
H (Hausse / Up): The slope is positive and above the threshold.
B (Baisse / Down): The slope is negative and below the negative threshold.
N (Neutre / Neutral): The slope is weak, indicating no clear trend.
COL (Color): Quick visual indicator.
🔵 Blue: Bullish trend.
🟠 Orange: Bearish trend.
⚪ Gray: Neutral Trend / Ranging.
Trading Usage
Trend Confirmation: Use the "Totaux" (Totals) counter at the bottom of the table. If you see 8/8 H (Blue), the bullish trend is strong and aligned across all timeframes (short and medium term).
Reversal Detection: If fast EMAs (20, 25) turn Orange (B) while slow ones (50, 55) are still Blue (H), this may signal the beginning of a correction or a trend reversal.
Unlike classic indicators that simply check if the price is above or below the EMA, this tool analyzes the slope of each moving average to determine the true market dynamics.
The indicator calculates the status of 8 distinct EMAs (20, 25, 30, 35, 40, 45, 50, 55). For each EMA, the script determines the direction using the following logic:
Slope Calculation: It compares the current EMA value with its value 3 bars ago (variable nb_bougies).
Neutrality Threshold: To avoid false signals in ranging (flat) markets, a neutrality filter is applied (0.01% of the EMA value).
Dashboard Interpretation
The table is located at the top right of your screen and displays three columns:
EMA: The moving average period (e.g., 20, 55).
State:
H (Hausse / Up): The slope is positive and above the threshold.
B (Baisse / Down): The slope is negative and below the negative threshold.
N (Neutre / Neutral): The slope is weak, indicating no clear trend.
COL (Color): Quick visual indicator.
🔵 Blue: Bullish trend.
🟠 Orange: Bearish trend.
⚪ Gray: Neutral Trend / Ranging.
Trading Usage
Trend Confirmation: Use the "Totaux" (Totals) counter at the bottom of the table. If you see 8/8 H (Blue), the bullish trend is strong and aligned across all timeframes (short and medium term).
Reversal Detection: If fast EMAs (20, 25) turn Orange (B) while slow ones (50, 55) are still Blue (H), this may signal the beginning of a correction or a trend reversal.
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.