In a concentrated-liquidity pool, you choose a price range. While the price stays inside it, the position earns fees; when the price leaves, it stops earning until you move the range, and moving it costs money. How long a range lasts is therefore one of the main numbers that decide whether a narrow range pays, next to the fee rate while it is in range. I tested the textbook formula for it against two years of public prices. It was wrong in a way that depended on the range’s width, and a large part of the error I first saw came from how I was measuring.
The formula
If the log of the price moves like a random walk with volatility σ and no drift, a position opened at the centre of a range of log half-width h is expected to stay in range for E[T] = h² / σ². Halve the width and the expected time in range drops to a quarter. The cost of re-centring per day is roughly the cost of one exit divided by E[T], so, to a first approximation, an error in E[T] is an error of the same size in the cost of running a range.
The same model also gives the whole distribution of T, not only its mean. Measured in units of E[T], it is the same for every width and every σ: the median is 0.757, about 9% of positions should be out by a quarter of E[T], and about 89% by twice E[T]. That is what makes the model testable. Ranges of different widths, opened in different volatility regimes, should all line up on one curve.
The test
I tested it where anyone can rerun it: public prices and synthetic positions.
- Prices: Coinbase public candles for BTC-USD and SOL-USD, divided to give SOL per BTC, from November 2024 to November 2026. Hourly closes for the full two years; minute closes for the last 120 days.
- Positions: once a day, a new position centred on the price, at ±1%, ±2%, ±4% and ±8%, followed until the first close at or beyond a bound.
- Volatility: known at the time of opening, from the daily closes of the previous 30 days, or from the samples of the previous 7 days.
- Censoring: at each horizon, only positions watched at least that long are counted, whether or not they exited.
First result: much of the error was the clock, not the market
On hourly closes, narrow ranges lasted far longer than predicted: at ±1% the median was 1.89 times E[T], against 0.757. That looked like a finding about the market. A large part of it was a finding about the data. A price checked once an hour can leave the range and come back between two checks, and the exit is only seen when a close lands outside. The size of the error depends on how far the price typically moves between checks compared with the width of the range, so it is largest for narrow ranges.
This is a known problem in pricing barrier options, with a known correction: a price checked every Δt behaves like one checked continuously against a barrier about 0.58 · σ · √Δt further away (Broadie, Glasserman and Kou, 1997). Applying it moves the ±1% median from 1.89 to 1.14. The correction assumes the price moves little between checks compared with the width of the range, which is barely true for ±1% on hourly data, so the better evidence there is minute data. Over the last 120 days, with volatility from the previous 30 days, the ±1% median on minute closes was 1.29, against 1.77 on hourly closes of the same days. With volatility from the previous 7 days the order reverses (1.60 on minute closes, 1.29 on hourly), probably because that estimator is built from minute returns in one case and hourly returns in the other; I have not tested that. It is one more reason not to lean on any single number here.
| Range | Hourly, raw | Hourly, corrected | Model |
|---|---|---|---|
| ±1% | 1.89 | 1.14 | 0.757 |
| ±2% | 1.34 | 1.04 | 0.757 |
| ±4% | 1.03 | 0.89 | 0.757 |
| ±8% | 0.77 | 0.71 | 0.757 |
Median time in range as a multiple of E[T], two years of hourly closes, volatility from the 30 days before opening, 700 positions per width.
What is left after the correction
The error depends on width. Even with the measurement fixed, a ±1% range lasts 1.5 to 1.6 times longer than the model says at the median, with volatility from the previous 30 days. At ±8% the median came out on time or early, but as the next section shows, that difference is within the noise of the method itself.
Second result: the model’s own world does not reproduce it
To find out why narrow ranges last too long, I rebuilt the two years of prices in three altered ways and reran the study on each, forty times with different random seeds:
- Signs randomised: every hourly move keeps its size and its place in time, but goes up or down at random. Large moves still come in bursts; any tendency to reverse or to trend is gone.
- Moves shuffled: the same hourly moves in random order. Their sizes are kept, the bursts are not.
- A Gaussian random walk with the same average volatility: the model’s own world.
| Path | ±1% | ±8% |
|---|---|---|
| Real prices | 1.14 | 0.71 |
| Signs randomised | 1.15 (1.09–1.23) | 0.83 (0.74–0.93) |
| Moves shuffled | 1.02 (0.94–1.10) | 0.80 (0.72–0.85) |
| Gaussian walk | 0.77 (0.69–0.83) | 0.74 (0.67–0.83) |
Median time in range as a multiple of E[T], corrected for hourly checks, with volatility re-estimated on each path the same way. For the altered paths: the median of forty runs, with the 10th to 90th percentile in brackets.
At ±1%, the Gaussian walk lands near the model and the real prices do not. Paths that keep the real sizes of moves come close: shuffled, they give 1.02; with random signs, 1.15 (or 1.10 when the altered paths use the volatility the real prices had on each date). Shuffling keeps how large the moves are; randomising signs also keeps when the large ones come. Which of the two does more, and whether the direction of moves adds anything, these runs do not separate: the ranges overlap, and at ±2% or on minute data the answer depends on how volatility is estimated on the altered paths. My reading, which I have not tested directly: most hours are calmer than the average volatility implies, so a narrow range opened in a calm hour lasts much longer than the formula says.
At ±8%, the Gaussian walk’s own median ranges from 0.67 to 0.83 between seeds, which holds both the model’s 0.757 and the 0.71 on real prices. So the median at that width is not evidence against the model. The tails are: on real prices, 16% of ±8% ranges were out within a quarter of E[T] and 18% were still in at twice E[T], against about 11% for each on the Gaussian walk. The slow ones are consistent with bursts of volatility, though shuffled paths, which have none, come close too; what produces the extra early exits I have not identified.
These ranges measure the noise of the method on the same two years of prices, not uncertainty about how the market will behave next.
Third result: both volatility windows are wrong, in opposite situations
I had expected a 30-day window to lag behind the market and a 7-day window to do better. On the same opening dates, over the two years of hourly data, the two gave the same medians to within 0.02. As forecasts of the volatility of the following week, both miss by a factor of about 1.4 either way (root mean square, here with both windows measured from hourly moves), which is roughly a factor of two in E[T]. After volatility rises, the 7-day window overshoots the next week by about 45%, while the 30-day window is nearly right; part of that is probably a noisy estimate falling back after a jump, which I have not tested. After volatility falls, the 30-day window overshoots by about 30%. Averaging the two on a log scale had a slightly smaller error overall, but these forward weeks overlap and I attach no uncertainty to differences that small.
Fourth result: measured quantiles forecast better than the model’s
If the formula’s distribution cannot be trusted, what can be used instead? I split the two years in time, measured on one side how long ranges lasted as a multiple of E[T], and used those quantiles to forecast the other side, in both directions. The model’s own quantiles were miscalibrated out of sample: at ±1%, only 35 to 36% of positions had exited by the model’s median, and 75 to 77% by its 90th percentile. Quantiles measured on the other side of the split came within five percentage points of the 10%, 50% and 90% targets at ±1% to ±4%. At ±8% the 90th percentile missed in both directions.
The practical version: keep E[T] as the unit, and read the multiple off past data instead of off the model’s distribution. That is one pair over two years, split in two, for positions opened at the centre of their range, and it says nothing about fees.
What I would not conclude from this
- Positions opened on consecutive days overlap in time, so they are not independent. I report no confidence intervals, and differences of a few hundredths mean nothing.
- This is one pair, on one exchange. A pool’s own price can differ from an exchange’s, most of all over minutes. The project now compares the two on its own hourly snapshots of the public pools. At the first reading, the deepest pool was 13.7 basis points above the exchange price, part of that from the lag of up to a minute between the two, while thin pools of the same pair sat up to 198 basis points away. One reading says nothing about how that difference moves between observations, which is what would change exit times; that takes weeks of snapshots.
- Results depend on the period: at ±8% the corrected median was 0.71 over two years and 0.59 over the last 120 days. On the 120 days of minute data, the Gaussian walk’s own ±1% median varied from 0.62 to 1.00 between seeds (10th to 90th percentile), so I draw no conclusions from the shorter window alone.
- Fees are not part of this. Whether fees in range scale with σ / h, which is what would make the width cancel out of the economics, is still unvalidated. I first assumed that checking it needed liquidity by price level over time. It does not: the fees of a position centred in its range follow from the pool’s cumulative fee growth alone. The project has taken hourly snapshots of the public pools since 27 November 2026, and that study waits for enough data.
How it is built
The study is part of a TypeScript project for analysing concentrated-liquidity positions. The exit-time distribution and the correction are tested against values computed independently in Python and against seeded Monte Carlo simulations; a separate Python script, outside the repository, reproduced the medians to two decimals. Raw prices are cached locally and never committed, and everything in the repository is synthetic or public, so the whole result can be rerun from the repository.
The practical lesson is older than this project: when a model and the data disagree, check the measurement before blaming the model. Here the measurement accounted for a large part of the gap, and what remained was more interesting than what I started with.
Code, tests and the full tables are on GitHub, with the method and every table in the research report.