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)
สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน