On-chain methods with formulas
On-chain analysis methods
Use a consistent set of daily calculations to examine activity, valuation and the age of spendable Bitcoin outputs. This guide pairs each analytical method with a chart or a precise explanation of the input that is still unavailable.
CryptoKeyhole uses its own validated ledger and admitted price observations. The examples describe supported addresses and outputs; source coverage, population choices and missing values are part of the result.
Momentum cross-over
Compare a short moving average with a longer baseline to see whether recent activity is above or below its slower trend. The example keeps daily first-seen address counts beside their 30-day and 365-day means.
Where this is useful
Address activity can reveal changes in use of the chain. Address reuse, change outputs and custody affect the counts, so an increase does not measure new users.
Calculation steps
An arithmetic mean needs every daily observation in its window. The two averages are computed separately from the same native series.
- Short baseline:
sma(addresses,30) - Long baseline:
sma(addresses,365)
A crossover describes these two averages. It is not a forecast or a trading instruction.
New standard address momentum
The number of addresses that received bitcoin for the first time in each period.
Ratios to a moving baseline
Dividing a metric by its trailing average expresses the current observation relative to its own recent scale. A ratio of one equals the baseline; values above and below one show the direction of departure.
For miner revenue, reward reductions and BTC/USD price changes can both move the ratio. A baseline must use the same units and revenue population as the current value.
Where this is useful
This method can help compare observations across changing scales, provided the metric remains comparable through time. A ratio cannot remove a change in definition or source coverage.
Calculation steps
General form: value / sma(value,365).
An accepted own-data Puell Multiple recipe is unavailable for the adjacent panel. A different issuance or revenue ratio is not substituted.
Momentum oscillator
Subtracting one from a ratio to a moving average centers equality at zero. Positive values mean the current metric exceeds the trailing mean; negative values mean it is lower.
Where this is useful
The example uses known-basis MVRV: current value divided by creation-price cost within the same priced output population. Its 365-day baseline requires adjacent valid daily ratios.
Calculation steps
Centered ratio: MVRV / sma(MVRV,365) - 1.
A missing input breaks the window; a nonpositive baseline leaves the result undefined. The price curve remains an independent observation with its own history.
Z-scores
A Z-score measures distance from a mean in units of the sample window's dispersion. It makes unusually high or low observations easier to compare without changing their source population.
Where this is useful
The chart uses fees as a percentage of actual miner revenue. Its registered recipe first takes a seven-day arithmetic mean, then standardizes that smoothed series over 730 adjacent days.
Percentages avoid the changing dollar scale of nominal revenue, but changes in transaction demand or reward size still affect the underlying fee share.
Calculation steps
Fee share: 100 * fees / actual claimed coinbase value.
Smoothed input: sma(fee_share,7).
Standardized result: (smoothed - sma(smoothed,730)) / std(smoothed,730).
The deviation uses the population convention. Zero dispersion and incomplete daily windows remain undefined.
Miner fee share Z-Score: 730 days
How far the 7-day average of miners' fee share sits from its average of the last 2 years, in standard deviations.
The chart here runs to today with Plus.
Standard deviation levels
Instead of dividing the distance from a mean by its dispersion, plot the mean and dispersion levels beside the original metric. The chart then shows when the observation passes those levels.
Our MVRV example uses the expanding mean and one population standard deviation on either side. Its seed is the first admitted daily ratio; selecting a shorter viewport does not restart that history.
Where this is useful
Known-basis valuation ratios can be compared with their own historical distribution, provided the priced population and coverage remain clear. These levels describe a distribution rather than forecast a price.
A gap in the required history prevents a complete expanding statistic. Unknown creation prices are excluded from MVRV; they are not assigned a zero cost.
Calculation steps
- Input: known-basis
MVRV - Center:
cummean(MVRV) - Upper:
cummean(MVRV) + cumstd(MVRV) - Lower:
cummean(MVRV) - cumstd(MVRV)
The current observation is included. No future rows are used, and the existing calculation retains its full admitted prefix.
The age-filtered spent-output example first smooths its admitted daily ratio with EMA7, then computes expanding mean ± one population standard deviation from those EMA values. This is our explicit original sequence, not a band on raw SOPR. Its five-year viewport does not restart the full-history calculation.
Known-basis MVRV deviation bands
Bitcoin's market value divided by its realized value: what the coins are worth today against what their holders paid for them.
Age-filtered SOPR: EMA7 expanding deviation bands
The 7-day exponential average of Adjusted SOPR: the price at which coins older than an hour were spent, divided by the price they last moved at.
Both charts here run to today with a free account or Plus.
- Known-basis MVRV deviation bandsFree accountBitcoin's market value divided by its realized value: what the coins are worth today against what their holders paid for them.
- Age-filtered SOPR: EMA7 expanding deviation bandsPlusThe 7-day exponential average of Adjusted SOPR: the price at which coins older than an hour were spent, divided by the price they last moved at.
Binary indicators
A threshold comparison can turn a daily measurement into a sequence of zeros and ones. Smoothing that sequence summarises the persistence of threshold breaches without retaining the size of each breach.
Where this is useful
Coin days destroyed measures the BTC amount of spent outputs multiplied by their age. A large value can reflect old outputs moving, but does not establish a sale or an owner's intent.
Calculation steps
This chart uses the following calculation sequence:
- Threshold:
sma(CDD,730) + 0.5 * std(CDD,730) - Flag:
CDD > threshold ? 1 : 0 - Smoothed flag:
ema(flag,7)
Our population deviation includes the current day. EMA7 seeds from seven consecutive known flags, then uses alpha 0.25. It requires 736 adjacent daily raw inputs for the first output; missing inputs break the threshold window and reset the EMA seed.
An EMA is a recursive weighted average, not a literal count of threshold breaches in the last seven days.
Raw CDD binary indicator: 730-day threshold / EMA7
A signal built from Coin Days Destroyed, its 2-year average and a 7-day exponential average: it is high when more old coins than usual have been moving.
Net position change
Subtract an earlier stock from its current value to measure a net change over a fixed interval. This example compares spendable BTC aged at least 365 days with the same stock 30 days earlier.
Where this is useful
Age-bucket changes reflect both spending and outputs crossing an age boundary. They do not identify buying, selling, lost keys or a change of owner.
Calculation steps
Stock: sum the admitted native age bands from 365 days upward.
Net change: stock - shift(stock,30).
Both endpoints and the intervening daily window must be admitted. Positive and negative bars have separate display controls. Both use the original signed net-change series; its exports retain zeros and missing observations.
Supply aged 1 year or more
The bitcoin that has not moved for at least a year.
Supply last active over 1 year ago (30-day change)
The change over 30 days in the bitcoin that last moved more than a year ago.
Calculated from our own Bitcoin and Ethereum nodes and from market, fund and company data we collect. Free charts and their data are CC BY 4.0. Method and sources