OPEN-SOURCE SCRIPT
Kevindicator

MTF Supply & Demand Zones
A multi-timeframe supply and demand zone indicator that scans the chart's own timeframe and every higher timeframe you enable (15m through 1D) and automatically draws zones based on a strict base-candle → impulse → follow-through pattern.
How zones are detected:
Demand: a small-bodied red base candle with a lower rejection wick, followed by a visibly large green impulse candle (measured against ATR-14) that closes above the base, with no candle closing back inside the zone during the continuation window.
Supply: the mirror image — a small-bodied green base candle with an upper rejection wick, followed by a visibly large red impulse candle that closes below the base.
Zones are boxed from the base candle's open to its wick extreme, and only wicks (not closes) may re-enter the zone while it's forming.
Zone management:
Zones extend live until broken by a 15-minute close through the zone.
Overlap suppression: when a new zone would sit on top of an existing, still-active zone in the same direction, the lower-timeframe zone is dropped — either the new one is skipped, or the older lower-TF zone is replaced by the new higher-TF one. This keeps the chart from filling up with redundant stacked boxes across timeframes.
Auto-hide broken zones: once a zone breaks, it's automatically removed from the chart after a user-set number of hours (1–72), so invalidated zones don't clutter historical price action.
Inputs:
Toggle which timeframes to scan (15m, 30m, 90m, 1H, 2H, 4H, Daily)
Detection sensitivity (base body size, wick size, impulse strength vs. ATR, continuation candle count)
Zone cleanup controls (overlap % threshold, broken-zone hide duration)
Display options (colors, transparency, timeframe labels, 50% equilibrium line, distance-based hiding, alerts on new zone formation)
A multi-timeframe supply and demand zone indicator that scans the chart's own timeframe and every higher timeframe you enable (15m through 1D) and automatically draws zones based on a strict base-candle → impulse → follow-through pattern.
How zones are detected:
Demand: a small-bodied red base candle with a lower rejection wick, followed by a visibly large green impulse candle (measured against ATR-14) that closes above the base, with no candle closing back inside the zone during the continuation window.
Supply: the mirror image — a small-bodied green base candle with an upper rejection wick, followed by a visibly large red impulse candle that closes below the base.
Zones are boxed from the base candle's open to its wick extreme, and only wicks (not closes) may re-enter the zone while it's forming.
Zone management:
Zones extend live until broken by a 15-minute close through the zone.
Overlap suppression: when a new zone would sit on top of an existing, still-active zone in the same direction, the lower-timeframe zone is dropped — either the new one is skipped, or the older lower-TF zone is replaced by the new higher-TF one. This keeps the chart from filling up with redundant stacked boxes across timeframes.
Auto-hide broken zones: once a zone breaks, it's automatically removed from the chart after a user-set number of hours (1–72), so invalidated zones don't clutter historical price action.
Inputs:
Toggle which timeframes to scan (15m, 30m, 90m, 1H, 2H, 4H, Daily)
Detection sensitivity (base body size, wick size, impulse strength vs. ATR, continuation candle count)
Zone cleanup controls (overlap % threshold, broken-zone hide duration)
Display options (colors, transparency, timeframe labels, 50% equilibrium line, distance-based hiding, alerts on new zone formation)
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.