OPEN-SOURCE SCRIPT
CPR MTF Status

Multi-timeframe CPR (Central Pivot Range) dashboard that shows the trend bias across 6 standard timeframe pairs all from a single chart.
── TIMEFRAME PAIRS ──
Each row pairs a chart timeframe with its natural CPR anchor:
── HOW STATUS IS DETERMINED ──
For each pair, the indicator computes the previous-period CPR and the current developing CPR, then compares their position:
▲▲ Strong Bull — developing CPR entirely above previous CPR (no overlap)
▲ Light Bull — bands overlap, but developing pivot is above previous pivot
— Neutral — pivots are equal
▼ Light Bear — bands overlap, but developing pivot is below previous pivot
▼▼ Strong Bear — developing CPR entirely below previous CPR (no overlap)
The previous CPR uses non-repainting data (prior completed period). The developing CPR repaints to reflect the current state — this is intentional for a live dashboard.
── TIMEFRAME VALIDITY ──
CPR calculations require the anchor timeframe to be strictly higher than the chart timeframe. When you're on a higher TF chart (e.g. Daily), lower anchor pairs (1H, 4H) cannot compute correctly because request.security can't aggregate full-period HLC from a lower timeframe.
The indicator automatically detects this and either hides invalid rows (default) or dims them with "n/a". A hint row appears when rows have been hidden, suggesting you switch to a lower chart timeframe to see all pairs.
── DISPLAY MODES ──
Full Mode (default):
Vertical table with Chart TF, CPR TF, and color-coded Status columns. Optionally shows previous and developing pivot values. The row matching your current chart timeframe is highlighted.
Compact Mode:
Single horizontal row of coloured cells — just the CPR label and a status arrow (e.g. "D▲▲"). Hover any cell for full detail. An optional summary cell at the end shows the net score.
── FEATURES ──
• Toggle individual timeframe rows on/off
• Customizable 5-level color scheme (strong/light bull/bear + neutral)
• Optional pivot value columns (prev + developing)
• Summary row with bull/neutral/bear count and tinted background
• Current chart TF row auto-highlighting
• Status line showing bull/bear TF counts
• Alerts: all 6 bullish, all 6 bearish, 5+ bullish, 5+ bearish
• Table position and text size settings
• Works on any symbol
── USAGE TIPS ──
• Best used on lower timeframe charts (5m or 15m) to see the most rows
• Pairs well with the Vector CPR Bands indicator for full CPR + band analysis
• When all or most timeframes align in one direction, it signals strong multi-timeframe confluence
── TIMEFRAME PAIRS ──
Each row pairs a chart timeframe with its natural CPR anchor:
- 5m → 1H CPR
- 15m → 4H CPR
- 1H → Daily CPR
- 4H → Weekly CPR
- D → Monthly CPR
- W → Yearly CPR
── HOW STATUS IS DETERMINED ──
For each pair, the indicator computes the previous-period CPR and the current developing CPR, then compares their position:
▲▲ Strong Bull — developing CPR entirely above previous CPR (no overlap)
▲ Light Bull — bands overlap, but developing pivot is above previous pivot
— Neutral — pivots are equal
▼ Light Bear — bands overlap, but developing pivot is below previous pivot
▼▼ Strong Bear — developing CPR entirely below previous CPR (no overlap)
The previous CPR uses non-repainting data (prior completed period). The developing CPR repaints to reflect the current state — this is intentional for a live dashboard.
── TIMEFRAME VALIDITY ──
CPR calculations require the anchor timeframe to be strictly higher than the chart timeframe. When you're on a higher TF chart (e.g. Daily), lower anchor pairs (1H, 4H) cannot compute correctly because request.security can't aggregate full-period HLC from a lower timeframe.
The indicator automatically detects this and either hides invalid rows (default) or dims them with "n/a". A hint row appears when rows have been hidden, suggesting you switch to a lower chart timeframe to see all pairs.
── DISPLAY MODES ──
Full Mode (default):
Vertical table with Chart TF, CPR TF, and color-coded Status columns. Optionally shows previous and developing pivot values. The row matching your current chart timeframe is highlighted.
Compact Mode:
Single horizontal row of coloured cells — just the CPR label and a status arrow (e.g. "D▲▲"). Hover any cell for full detail. An optional summary cell at the end shows the net score.
── FEATURES ──
• Toggle individual timeframe rows on/off
• Customizable 5-level color scheme (strong/light bull/bear + neutral)
• Optional pivot value columns (prev + developing)
• Summary row with bull/neutral/bear count and tinted background
• Current chart TF row auto-highlighting
• Status line showing bull/bear TF counts
• Alerts: all 6 bullish, all 6 bearish, 5+ bullish, 5+ bearish
• Table position and text size settings
• Works on any symbol
── USAGE TIPS ──
• Best used on lower timeframe charts (5m or 15m) to see the most rows
• Pairs well with the Vector CPR Bands indicator for full CPR + band analysis
• When all or most timeframes align in one direction, it signals strong multi-timeframe confluence
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.