OPEN-SOURCE SCRIPT
Mis à jour Multiday Retracement & extension levels

This indicator is designed to help traders identify key retracement and extension levels based on a combined price range from multiple previous trading days. Instead of relying on a single day's high and low, the script allows users to combine the ranges of up to 10 previous days, creating a broader market structure that can be useful for identifying support, resistance, breakout targets, and extension zones.
Features
• Combines the high-low range of multiple previous trading days (1–10 days selectable)
• Optional Gap-Adjusted Range calculation that incorporates significant price gaps into the reference range
• Displays retracement and extension levels from -200% to +300%
• Customizable colors for:
0% and 100% boundary levels
Internal range levels (0% to 100%)
External extension zones (below 0% and above 100%)
• Customizable line styles, line widths, label sizes, and label offsets
• Automatic percentage relabeling when price moves beyond the 100% range boundary
• Optional Gap Filling Candle Display for improved visual continuity of price action
How It Works
The script calculates the highest high and lowest low across the selected number of previous trading days. This combined range becomes the basis for all retracement and extension levels.
When Gap Adjustment is enabled, the indicator attempts to include significant overnight or inter-session gaps within the reference range, helping traders account for price movement that may not be fully represented by traditional high-low calculations.
The resulting levels can be used for:
• Identifying potential support and resistance zones
• Measuring retracements within a multi-day trading range
• Projecting extension targets after breakouts
• Evaluating market structure across several trading sessions
Gap Filling Candles
An optional gap-filling candle mode is included. When enabled, candle opens can be adjusted to the previous close, visually removing gaps and allowing traders to analyze continuous price movement more easily.
Acknowledgements
Special thanks to author **Echepata** for providing inspiration and reference ideas related to the gap-filling candle implementation used in this script. Their work helped contribute to the development of the gap visualization component included here.
Notes
This indicator is intended as a market structure and reference tool. Retracement and extension levels should be used alongside price action, volume analysis, and a trader's existing methodology rather than as standalone trading signals.
Notes de version
Additional HTF candles added..Notes de version
Tomorrow levels feature added 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.