PROTECTED SOURCE SCRIPT
Zones + Trendlines (raphii7)

Here you go — in English, simple and clear:
Designed for a clear read of worked zones and trend paths on any timeframe.
-Zones: rectangles where price has touched multiple times = support/resistance zones.
-Trendlines: lines that connect two highs (H–H) or two lows (B–B), with a dotted extension.
Settings
Zones
-Minimum candles between highs/lows (minSepBars): minimum spacing between pivots. Larger = cleaner pivots.
-Show highs/lows (showHBZones): shows small H/B labels on the chart.
-Max highs/lows used (maxPivotsUsed): cap on stored pivots.
-Minimum contacts in the zone (minContacts): minimum touches required to draw a zone.
-Zone size unit (sizeMode):
-Pips = fixed thickness.
-ATR = thickness adapts to volatility.
-Zone size (zoneSize): zone thickness (in Pips or ATR).
-Max candles back (lookbackBars): how far back to scan.
-Max zones to draw (maxZonesDraw): prevents too many rectangles.
-Border / fill color (borderCol / fillCol): zone styling.
Trendlines
-Pivot Length (pivotLen): “size” of the pivot. Higher = more reliable lines, fewer of them.
-Pivot Type (pivotType):
Normal = cleaner, slower.
Fast = very reactive, can move more.
Designed for a clear read of worked zones and trend paths on any timeframe.
-Zones: rectangles where price has touched multiple times = support/resistance zones.
-Trendlines: lines that connect two highs (H–H) or two lows (B–B), with a dotted extension.
Settings
Zones
-Minimum candles between highs/lows (minSepBars): minimum spacing between pivots. Larger = cleaner pivots.
-Show highs/lows (showHBZones): shows small H/B labels on the chart.
-Max highs/lows used (maxPivotsUsed): cap on stored pivots.
-Minimum contacts in the zone (minContacts): minimum touches required to draw a zone.
-Zone size unit (sizeMode):
-Pips = fixed thickness.
-ATR = thickness adapts to volatility.
-Zone size (zoneSize): zone thickness (in Pips or ATR).
-Max candles back (lookbackBars): how far back to scan.
-Max zones to draw (maxZonesDraw): prevents too many rectangles.
-Border / fill color (borderCol / fillCol): zone styling.
Trendlines
-Pivot Length (pivotLen): “size” of the pivot. Higher = more reliable lines, fewer of them.
-Pivot Type (pivotType):
Normal = cleaner, slower.
Fast = very reactive, can move more.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.