OPEN-SOURCE SCRIPT
Vector CPR Bands

## Overview
The Vector CPR Bands indicator enhances the classic Central Pivot Range (CPR) by incorporating "vector" detection—identifying periods with above-average or climactic volume. It projects CPR ranges from these high-volume periods forward as visual bands, which act as persistent support/resistance zones until invalidated by price action. Ideal for spotting key levels in trending or ranging markets, especially on higher timeframes like weekly or monthly.
## Key Features
- **CPR Calculation**: Plots previous, developing (non-repainting), and repainting CPR with mid-pivot, TC (top central), and BC (bottom central) lines, plus fills.
- **Vector Detection**: Scans for high-volume bars in the anchor timeframe (default weekly). Flags "above-average" (≥1.5x avg) or "large" (≥2x avg or max climax).
- **Band Projection**: Creates bands from vector-qualified CPR periods. Extends them rightward until touched/revisited (configurable: invalidate on wick/close, delete or freeze/gray out).
- **Customization**:
- Timeframe: Set CPR anchor (e.g., 'W' for weekly, 'M' for monthly).
- Display: Toggle CPR types, pivot guides.
- Volume Thresholds: Adjust lookback and ratios.
- De-clutter: Limit max bands, pin to period start, always extend.
- **Alerts & Signals**: Built-in alerts for developing pivot crossing previous pivot (bullish/bearish).
## How to Use
1. Add to chart and set anchor timeframe (e.g., 'M' for monthly vCPR on BTC, as shown in example charts).
2. Watch bands as S/R: Virgin (untested) bands often provide strong bounces; mitigated ones fade.
3. Combine with volume/price action: Bullish bands suggest upside bias, especially if price holds above.
4. Example: On BTC weekly, vector bands from high-volume weeks highlight multi-month zones—breaks signal shifts.
The Vector CPR Bands indicator enhances the classic Central Pivot Range (CPR) by incorporating "vector" detection—identifying periods with above-average or climactic volume. It projects CPR ranges from these high-volume periods forward as visual bands, which act as persistent support/resistance zones until invalidated by price action. Ideal for spotting key levels in trending or ranging markets, especially on higher timeframes like weekly or monthly.
## Key Features
- **CPR Calculation**: Plots previous, developing (non-repainting), and repainting CPR with mid-pivot, TC (top central), and BC (bottom central) lines, plus fills.
- **Vector Detection**: Scans for high-volume bars in the anchor timeframe (default weekly). Flags "above-average" (≥1.5x avg) or "large" (≥2x avg or max climax).
- **Band Projection**: Creates bands from vector-qualified CPR periods. Extends them rightward until touched/revisited (configurable: invalidate on wick/close, delete or freeze/gray out).
- **Customization**:
- Timeframe: Set CPR anchor (e.g., 'W' for weekly, 'M' for monthly).
- Display: Toggle CPR types, pivot guides.
- Volume Thresholds: Adjust lookback and ratios.
- De-clutter: Limit max bands, pin to period start, always extend.
- **Alerts & Signals**: Built-in alerts for developing pivot crossing previous pivot (bullish/bearish).
## How to Use
1. Add to chart and set anchor timeframe (e.g., 'M' for monthly vCPR on BTC, as shown in example charts).
2. Watch bands as S/R: Virgin (untested) bands often provide strong bounces; mitigated ones fade.
3. Combine with volume/price action: Bullish bands suggest upside bias, especially if price holds above.
4. Example: On BTC weekly, vector bands from high-volume weeks highlight multi-month zones—breaks signal shifts.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
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.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
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.