OPEN-SOURCE SCRIPT

RHODL Z-Score [TheSnake3Run]

406
The original RHODL Ratio, created by Philip Swift, is an on-chain metric that compares the cost basis of coins last moved in the past week against the cost basis of coins last moved 1–2 years ago, weighted by total market age. It identifies macro cycle tops and bottoms in Bitcoin. The true metric requires UTXO-level realized-cap data not available inside Pine Script, so this indicator approximates the dynamic using price alone and standardises the output as a z-score.

How the calculation works

1. Short cohort — 7-bar SMA of price (≈ 1 week on daily). Proxy for recently-transacted cost basis.
2. Long cohort — SMA of price from 365 to 730 bars ago (≈ 1–2 years back). Proxy for long-term holder cost basis.
3. Ratio — short ÷ long. Above 1 means recent price is elevated versus long-term basis.
4. Age weighting — ratio × bar index, mirroring RHODL's market-age adjustment, then log-transformed.
5. Z-score — the log value is normalised against its own 365-bar rolling mean and standard deviation. The plot shows how many standard deviations the current reading sits from its one-year average.

How to read it

Above +2 — stretched high; overheated. Shaded red.
−1 to +1 — normal range.
Below −2 — stretched low; accumulation. Shaded green.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.