OPEN-SOURCE SCRIPT
Interest Zones

This indicator automatically identifies and plots "Interest Zones" around significant pivot highs and lows, representing potential areas of institutional interest, support/resistance, or accumulation/distribution. Zones are dynamically merged when pivots cluster near the same price level and extended for visibility.
How It Works (Technical Methodology)
Pivot Point Detection
The indicator uses Pine Script's ta.pivothigh() and ta.pivotlow() with asymmetric left/right lengths (default left=20, right=13) to detect swing highs and lows. This allows for customizable sensitivity – longer left for stronger confirmation, shorter right for faster detection.
Zone Start Condition (Filtering)
Multiple modes control from which point in history zones begin to be drawn:
"None": All historical pivots (limited by max zones).
"Auto (Start of Day)": Zones only from the beginning of the current trading day (resets daily).
"Manual Date": User-defined fixed date.
"Interactive (Chart)": User-confirmed date via input (useful for backtesting specific periods).
"Last X Bars": Only pivots within the last user-defined number of bars (default 400).
A vertical line marks the start point in date-based modes for visual reference.
Zone Construction
For each valid pivot:
Zone thickness is based on ATR(14) × user-defined multiplier (default 0.3) for dynamic, volatility-adjusted height.
Pivot High zones: Centered below the high (potential supply/resistance).
Pivot Low zones: Centered above the low (potential demand/support).
Zones are drawn as boxes extending to the right, with gray fill and border.
Merge & Overlap Logic
When a new pivot falls inside an existing zone or is very close (within user-defined "Proximity Sensitivity %" of the zone's midpoint, default 1.1%):
The new pivot is merged into the existing zone.
A counter ("x2", "x3", etc.) is displayed on the zone, indicating how many pivots have clustered there.
The zone is strengthened visually (counter text) and extended further right.
This highlights high-interest levels where price repeatedly reversed.
Zone Management
In "None" mode: Only the most recent user-defined max zones are kept (default 5) – oldest deleted automatically.
In other modes: Up to ~490 zones (performance limit), oldest pruned if exceeded.
All zones auto-extend to the right on the last bar for continuous visibility.
Visual Elements
Uniform gray color for all zones (configurable).
Transparent background fill (adjustable).
Counter text in white (configurable) when zones have multiple touches.
Clean, non-directional design – focuses purely on clustered reversal points.
How to Use
Interest Zones highlight price levels where the market has shown repeated respect through multiple swing pivots – often coinciding with institutional order clusters, psychological levels, or hidden support/resistance.
Higher counter values ("x3+", "x5+"): Stronger zones – higher probability of reaction on retest.
Use for:
Potential reversal or bounce areas when price approaches a zone.
Confluence with other tools (order blocks, FVG, volume profile, etc.).
Stop-loss placement beyond zones or take-profit at opposite zones.
Daily reset ("Auto Start of Day"): Ideal for intraday trading – fresh zones each session.
Backtesting: Use "Manual" or "Interactive" date modes to analyze specific historical periods.
"Last X Bars": Good for medium-term swing analysis without full history clutter.
Adjust ATR multiplier for tighter (lower) or wider (higher) zones based on asset volatility. Increase proximity sensitivity for more aggressive merging in ranging markets.
Combine with trend direction, volume, or higher-timeframe structure for best results.
Disclaimer
This indicator is a technical analysis tool and should be used in conjunction with other forms of analysis. Past performance does not guarantee future results. Always use proper risk management.
How It Works (Technical Methodology)
Pivot Point Detection
The indicator uses Pine Script's ta.pivothigh() and ta.pivotlow() with asymmetric left/right lengths (default left=20, right=13) to detect swing highs and lows. This allows for customizable sensitivity – longer left for stronger confirmation, shorter right for faster detection.
Zone Start Condition (Filtering)
Multiple modes control from which point in history zones begin to be drawn:
"None": All historical pivots (limited by max zones).
"Auto (Start of Day)": Zones only from the beginning of the current trading day (resets daily).
"Manual Date": User-defined fixed date.
"Interactive (Chart)": User-confirmed date via input (useful for backtesting specific periods).
"Last X Bars": Only pivots within the last user-defined number of bars (default 400).
A vertical line marks the start point in date-based modes for visual reference.
Zone Construction
For each valid pivot:
Zone thickness is based on ATR(14) × user-defined multiplier (default 0.3) for dynamic, volatility-adjusted height.
Pivot High zones: Centered below the high (potential supply/resistance).
Pivot Low zones: Centered above the low (potential demand/support).
Zones are drawn as boxes extending to the right, with gray fill and border.
Merge & Overlap Logic
When a new pivot falls inside an existing zone or is very close (within user-defined "Proximity Sensitivity %" of the zone's midpoint, default 1.1%):
The new pivot is merged into the existing zone.
A counter ("x2", "x3", etc.) is displayed on the zone, indicating how many pivots have clustered there.
The zone is strengthened visually (counter text) and extended further right.
This highlights high-interest levels where price repeatedly reversed.
Zone Management
In "None" mode: Only the most recent user-defined max zones are kept (default 5) – oldest deleted automatically.
In other modes: Up to ~490 zones (performance limit), oldest pruned if exceeded.
All zones auto-extend to the right on the last bar for continuous visibility.
Visual Elements
Uniform gray color for all zones (configurable).
Transparent background fill (adjustable).
Counter text in white (configurable) when zones have multiple touches.
Clean, non-directional design – focuses purely on clustered reversal points.
How to Use
Interest Zones highlight price levels where the market has shown repeated respect through multiple swing pivots – often coinciding with institutional order clusters, psychological levels, or hidden support/resistance.
Higher counter values ("x3+", "x5+"): Stronger zones – higher probability of reaction on retest.
Use for:
Potential reversal or bounce areas when price approaches a zone.
Confluence with other tools (order blocks, FVG, volume profile, etc.).
Stop-loss placement beyond zones or take-profit at opposite zones.
Daily reset ("Auto Start of Day"): Ideal for intraday trading – fresh zones each session.
Backtesting: Use "Manual" or "Interactive" date modes to analyze specific historical periods.
"Last X Bars": Good for medium-term swing analysis without full history clutter.
Adjust ATR multiplier for tighter (lower) or wider (higher) zones based on asset volatility. Increase proximity sensitivity for more aggressive merging in ranging markets.
Combine with trend direction, volume, or higher-timeframe structure for best results.
Disclaimer
This indicator is a technical analysis tool and should be used in conjunction with other forms of analysis. Past performance does not guarantee future results. Always use proper risk management.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน