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 de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.