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
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.