OPEN-SOURCE SCRIPT
Güncellendi

CPR PRO

2 130
CPR Pro - Central Pivot Range Indicator

A complete CPR trading toolkit with multi-timeframe support.

█ FEATURES
- CPR Zone (TC, BC, PP) - Daily, Weekly, or Monthly
- Support & Resistance Levels (S1-S3, R1-R3)
- Virgin CPR Detection - Highlights untested CPR zones (yellow)
- CPR Width Analysis - Narrow (breakout) vs Wide (range) days
- VWAP with 10 anchor options
- Trend EMA
- Dashboard with real-time bias & levels
- Customizable colors per timeframe

█ HOW TO USE
- BULLISH: Price above CPR - look for longs
- BEARISH: Price below CPR - look for shorts
- VIRGIN CPR: Untested zones = strong magnets
- NARROW CPR: Expect breakout day
- WIDE CPR: Expect range day

█ COLORS
- Daily CPR: Blue
- Weekly CPR: Green
- Monthly CPR: Orange
- Virgin CPR: Yellow
Sürüm Notları
CPR Pro v3 — Central Pivot Range Indicator
Complete rebuild merging the best of v1 and v2 into one definitive CPR toolkit. Multi-timeframe support, bulletproof virgin detection, and full trade awareness.
Multi-Timeframe CPR:
Daily, Weekly, and Monthly CPR zones displayed simultaneously with independent toggle controls. Each timeframe has its own color coding for instant visual distinction. Support and resistance levels (S1–S3, R1–R3) available per timeframe with clean right-extending lines.
Virgin CPR System (rebuilt from scratch):
Historical untouched CPR zones now render as proper two-line zones (TC + BC boundaries) with optional pivot point — no more single jumping ray. Critical detection bug fixed: previous period's virgin verdict is now cached before the new period's touch data can contaminate it. New strict virgin mode option — choose between classic wick-touch invalidation or close-only validation for stricter zone preservation. Virgin rays auto-remove when price tests the zone. Configurable max historical virgins per timeframe.
Confluence Detection (new):
Dashboard highlights when two or more timeframe CPR zones overlap — showing all active pairs. These multi-timeframe convergences signal high-probability trade setups.
Developing CPR Tracker (new):
Real-time dashboard row shows which timeframes still have untested CPR for the current period. Displays star for untested, dot for tested, dash for disabled timeframes.
VWAP with Smart Fallback:
Multiple anchor options including Session, Week, Month, Earnings, Dividends, and Splits. New automatic fallback — if an event-based anchor produces no data, VWAP falls back to session anchor instead of flatline. Dashboard indicates when fallback is active. Auto-detects no-volume symbols and shows N/A instead of breaking.
Dashboard:
Bias, trend, VWAP position, CPR width analysis (narrow/wide/normal), virgin counts per timeframe, confluence alerts, developing CPR status, and distance to nearest support/resistance. Warns when chart timeframe is too high for virgin detection.
Alerts:
CPR breakout alerts for all three timeframes. Virgin CPR tested alert. Narrow CPR day alert. Bias transition alerts (bullish/bearish/neutral). EMA and VWAP crossover alerts. All via alertcondition for clean TradingView integration.
Code Quality:
Refactored from 748 lines of duplicated daily/weekly/monthly blocks into shared helper functions. All inputs tooltipped. Magic numbers replaced with named constants. Full na safety on all dashboard elements and calculations.
Sürüm Notları
Update v4 — Next-Period CPR

You can now project the upcoming CPR for all three timeframes:
- Next Daily CPR (tomorrow)
- Next Weekly CPR (next week)
- Next Monthly CPR (next month)

Each is built from the current period's developing OHLC and updates live.
Toggle it on under "🔮 Next-Period CPR" in settings.

Note: early in a period the projection is rough — it firms up as the
period progresses (late session = accurate next-day, late week = accurate
next-week, etc).

Also includes per-timeframe color pickers + a few stability fixes under
the hood (long-history virgin rays, VWAP on volumeless symbols).

Good luck trading!
Sürüm Notları
Update v4

NEW: Next-Period CPR projection (Daily, Weekly, Monthly) — see tomorrow's,
next week's, and next month's CPR levels before they form. Updates live as
the current period develops.

NEW: Quarterly and Yearly CPR levels — for swing and position traders.

Both new features are off by default. Toggle them on in settings.

Plus minor stability fixes. Good luck trading!

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.