OPEN-SOURCE SCRIPT
Svopex Key Levels

Svopex Key Levels
A comprehensive multi-timeframe key-levels indicator that plots the most-watched institutional reference points on a single overlay. Originally built on top
of sbtnc's base code and extended with additional levels for daily trading convenience.
What it plots
For every timeframe, the indicator can display the Open, the previous period's High / Low, and the previous period's Mid (50% of the range):
- 4H — open, prev 4H high/low, prev 4H mid
- Daily — open, prev day high/low (PDH/PDL), prev day mid (PDM)
- Monday Range — current week's Monday high/low/mid (essential for FX weekly bias)
- Weekly — open, prev week high/low (PWH/PWL), prev week mid (PWM)
- Monthly — open, prev month high/low (PMH/PML), prev month mid (PMM)
- Quarterly — open, prev quarter high/low (PQH/PQL), prev quarter mid (PQM)
- Yearly — open, current year high/low (CYH/CYL), current year mid (CYM)
- FX Sessions — London / New York / Tokyo (Asia) ranges, with custom session times
Every level has its own toggle, color, and shorthand label option, so you can light up only the levels you trade.
Display options
- Standard mode — levels are drawn as horizontal lines anchored to their period's start.
- Right Anchored mode — labels and tails stay clustered to the right side of the chart for clean read-outs on busy screens.
- Merge Levels — automatically collapses overlapping levels into a single label so you don't end up with stacked text on confluence.
- Distance / Anchor Distance — controls how far the levels and labels extend.
Styling
- Line Style — Solid, Dashed, or Dotted
- Line Width — Small / Medium / Large
- Text Size — Small / Medium / Large
- Per-group colors — independent color picker for each timeframe / session
- Global Coloring — one switch to recolor everything to a single shade
- Global Text Shorthand — flip every label to its short form (PDH, PWM, CYL …) in one click
How to use
These levels are the price points where institutional liquidity, prior-period highs/lows, and session opens tend to concentrate — they're commonly used as
targets, reaction zones, or stop-hunt destinations. Combine the prev-day high/low with Monday range and the daily/weekly opens for a complete bias and target
framework. The 4H levels are useful for intraday entries; quarterly and yearly levels matter for swing positioning.
Credits
- Base code by sbtnc — thank you.
- Extensions, additional levels, and styling rework by Svopex.
Open source under MPL 2.0 — fork, adapt, and share.
A comprehensive multi-timeframe key-levels indicator that plots the most-watched institutional reference points on a single overlay. Originally built on top
of sbtnc's base code and extended with additional levels for daily trading convenience.
What it plots
For every timeframe, the indicator can display the Open, the previous period's High / Low, and the previous period's Mid (50% of the range):
- 4H — open, prev 4H high/low, prev 4H mid
- Daily — open, prev day high/low (PDH/PDL), prev day mid (PDM)
- Monday Range — current week's Monday high/low/mid (essential for FX weekly bias)
- Weekly — open, prev week high/low (PWH/PWL), prev week mid (PWM)
- Monthly — open, prev month high/low (PMH/PML), prev month mid (PMM)
- Quarterly — open, prev quarter high/low (PQH/PQL), prev quarter mid (PQM)
- Yearly — open, current year high/low (CYH/CYL), current year mid (CYM)
- FX Sessions — London / New York / Tokyo (Asia) ranges, with custom session times
Every level has its own toggle, color, and shorthand label option, so you can light up only the levels you trade.
Display options
- Standard mode — levels are drawn as horizontal lines anchored to their period's start.
- Right Anchored mode — labels and tails stay clustered to the right side of the chart for clean read-outs on busy screens.
- Merge Levels — automatically collapses overlapping levels into a single label so you don't end up with stacked text on confluence.
- Distance / Anchor Distance — controls how far the levels and labels extend.
Styling
- Line Style — Solid, Dashed, or Dotted
- Line Width — Small / Medium / Large
- Text Size — Small / Medium / Large
- Per-group colors — independent color picker for each timeframe / session
- Global Coloring — one switch to recolor everything to a single shade
- Global Text Shorthand — flip every label to its short form (PDH, PWM, CYL …) in one click
How to use
These levels are the price points where institutional liquidity, prior-period highs/lows, and session opens tend to concentrate — they're commonly used as
targets, reaction zones, or stop-hunt destinations. Combine the prev-day high/low with Monday range and the daily/weekly opens for a complete bias and target
framework. The 4H levels are useful for intraday entries; quarterly and yearly levels matter for swing positioning.
Credits
- Base code by sbtnc — thank you.
- Extensions, additional levels, and styling rework by Svopex.
Open source under MPL 2.0 — fork, adapt, and share.
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.