EGX30 Advance/Decline Line

This comprehensive indicator provides a deep dive into the market breadth of the EGX30 index, allowing traders and analysts to monitor underlying buying and selling pressure across its constituents. It offers five distinct metrics for a holistic view of market health, ranging from traditional Advance/Decline analysis to advanced McClellan Oscillators and TRIN (Arms Index) readings.
Key Features and Metrics
The indicator is selectable via the 'Select Metric' input and can display the following on your chart:
1. Advance/Decline Line: A cumulative measure of the difference between the number of advancing stocks and declining stocks (Advancing Stocks−Declining Stocks). It helps confirm the market's trend strength.
2. McClellan Oscillator: Calculated using the Advance/Decline Ratio (AD Ratio) smoothed by two Exponential Moving Averages (EMAs). It acts as a momentum measure of the A/D Line, highlighting potential overbought/oversold conditions and trend turns.
Climax Levels: Horizontal lines are plotted at +0.1 (Buy Climax) and −0.1 (Sell Climax).
3. Arms Index (TRIN): A volume-based indicator that measures the ratio of the Advance/Decline Ratio to the Advancing Volume/Declining Volume Ratio. A value above 1.0 is generally bearish (more volume in declining stocks), while a value below 1.0 is bullish.
Bands: Upper and Lower deviation bands are calculated and plotted for advanced analysis of extremes.
4. Total Volume: The raw, aggregated volume of all EGX30 constituent stocks.
5. Total Liquidity (Total Traded Value): The sum of (Price × Volume) for all EGX30 constituent stocks, giving a more accurate representation of capital flow.
⚙️ Customizable & Smart Configuration
The indicator is designed for maximum flexibility and accuracy across different chart timeframes:
Automatic Timeframe Configuration: When enabled (default), the script automatically selects optimized lookback periods for the Moving Average (MA), McClellan EMAs, and TRIN Lookback based on whether the chart is Intraday, Daily, Weekly, or other.
Manual Overrides: Disable the auto-configuration to manually set the MA Length, McClellan Fast/Slow EMAs, and TRIN Lookback/StdDev Multiplier for custom analysis.
📊 Advanced Data Table (Market Breakdown)
When the 'Show Table' input is toggled ON, a detailed statistics table appears on the chart's top-right corner, providing real-time market insights.
Top Performance (Contributors): Ranks and displays the Top N (customizable) stocks that are contributing the most to the index's movement, calculated as Weight × Percentage Change.
Top Liquidity: Ranks and displays the Top N stocks by their current-bar traded value (Price×Volume), expressed as a percentage of the Total Traded Value.
Horizontal Stats (Row 3): Provides a comprehensive summary of the current market state:
Adv, Decl, Unch: Count of advancing, declining, and unchanged stocks.
Net Adv: The difference between advancing and declining stocks.
Net Vol / Net Liq: Net Volume/Liquidity as a percentage of Total Volume/Liquidity.
Primary Metric/Volume Stats: Depending on the selected metric, it displays the current value of TRIN or the raw Total Volume and Total Liquidity.
This tool is indispensable for traders needing a clear, quantified understanding of the EGX30's underlying market dynamics.
EGX30 Advance/Decline v1.1
In this improved version, the relative weights of the index components have been adjusted, some stocks have been removed from the index, and new stocks have been added based on the latest update of the Egyptian Exchange's EGX30 index. Some visual improvements have also been made.
Script sur invitation seulement
Seuls les utilisateurs approuvés par l'auteur peuvent accéder à ce script. Vous devrez demander et obtenir l'autorisation pour l'utiliser. Celle-ci est généralement accordée après paiement. Pour plus de détails, suivez les instructions de l'auteur ci-dessous ou contactez directement MarkitTick.
TradingView ne recommande PAS d'acheter ou d'utiliser un script à moins que vous ne fassiez entièrement confiance à son auteur et que vous compreniez son fonctionnement. Vous pouvez également trouver des alternatives gratuites et open source dans nos scripts communautaires.
Instructions de l'auteur
Clause de non-responsabilité
Script sur invitation seulement
Seuls les utilisateurs approuvés par l'auteur peuvent accéder à ce script. Vous devrez demander et obtenir l'autorisation pour l'utiliser. Celle-ci est généralement accordée après paiement. Pour plus de détails, suivez les instructions de l'auteur ci-dessous ou contactez directement MarkitTick.
TradingView ne recommande PAS d'acheter ou d'utiliser un script à moins que vous ne fassiez entièrement confiance à son auteur et que vous compreniez son fonctionnement. Vous pouvez également trouver des alternatives gratuites et open source dans nos scripts communautaires.