OPEN-SOURCE SCRIPT

Minimal S/R Zones with Volume Strength

1 294
How it works
Pivot Detection

A pivot high is a candle whose high is greater than the highs of a certain number of candles before and after it.

A pivot low is a candle whose low is lower than the lows of a certain number of candles before and after it.

Parameters like Pivot Left Bars and Pivot Right Bars control how sensitive the pivots are.

Zone Creation

Pivot High → creates a Resistance zone.

Pivot Low → creates a Support zone.

Each zone is defined as a price range (top and bottom) and drawn horizontally for a given lookback length.

Volume Strength Filter

Volume Strength (%) = (Volume at Pivot / Volume SMA) × 100.

If the strength is below the minimum threshold (Min Strength %), the zone is ignored.

This ensures only pivots with significant trading activity create zones.

Zone Management

The indicator stores zones in arrays.

Max Zones per side prevents too many zones from being displayed at once.

Older zones are removed when new ones are added beyond the limit.

Visuals

Support zones → green label with Volume Strength %.

Resistance zones → red label with Volume Strength %.

Zones have semi-transparent boxes so price action remains visible.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.