r/algotradingcrypto • u/Huge_Position890 • 1h ago
My frozen flow-vs-depth curve failed live on all 7 perps. My research partner said "the curve itself moved, refit it on the last few weeks." The rolling version passed 17/17 in the archive and 2 of 3 live (pre-registered)
bitdataview.com- The curve: for each minute on a Binance perp, φ = net taker flow ÷ the book depth within 0.2% on that side. The curve gives the chance that the minute's extreme reaches 0.2% in the flow's direction. It comes from my hidden-liquidity post.
- Frozen, it broke. Fit once on Jan 15 – Jun 8, 2026, then checked live on Nov 3–17: **0 of 7 perps calibrated.** In the low bins, breaks came 1.2–3.2× as often as it said.
- It wasn't our depth feed. Swapping our live depth for the archive's own snapshots gave the same failure on all 7, with almost the same errors. The curve had shifted.
- My partner's fix: refit every week on the previous 4 weeks, then forecast the next week. In a locked archive test it passed **17 of 17** (frozen: 12 of 17), and **14 of 17** since October (frozen: 6 of 17).
- Live, locked before the first row: two weeks on the 3 perps that passed everything. **APT and NEAR pass, ETC fails.** ETC breaks more often than the rolling curve says.

The curve
From the earlier post. Data: data.binance.vision USDT-M perps, 30-second book snapshots (the ±0.2% level exists from Jan 15, 2026) and 1-minute candles.
- Per minute: φ = net taker flow ÷ depth within 0.2% on the flow's side, at the start of the minute.
- Outcome: did the minute's extreme reach 0.2% in the flow's direction?
- Fit: a probit with a floor, since some breaks come from news rather than flow.
- Calibration check: minutes with φ ≥ 0.1, grouped by the curve's *forecast probability* into bins with edges 0.05 / 0.10 / 0.20 / 0.40 / 0.60 / 0.80 / 1.00. Only bins with at least 100 minutes count. A perp **passes** with ≥ 3 filled bins, mean bin error ≤ 0.05 and largest error ≤ 0.10. (The bins are forecast probabilities, not φ, which is why a 0.05–0.10 bin can appear even though every minute has φ ≥ 0.1.)
What it is and isn't.It's a same-minute association: how often a minute with this much one-sided flow, relative to the book, also moved 0.2%. Readers pointed out last time that much of a heavy minute's flow arrives *after* the break. So this is not a forecast of the next minute, and not a causal impact model.
Step 1: the frozen curve, live (locked Nov 19, before any live row was read)
7 perps (APT, SOL, UNI, NEAR, XRP, DOT, ETC), Nov 3–17. BTC was left out because our live snapshot doesn't reach ±0.2% on its book. Two questions:
- Does our live depth match the archive's definition? 5 of 7 perps matched within the locked tolerance (UNI and DOT didn't).
- Is the frozen curve calibrated live? 0 of 7. Mean bin errors ran from 0.065 (ETC) to 0.24 (SOL). Every filled bin of every perp missed the same way: more breaks than forecast.
- Control: the same minutes with the archive's snapshots instead of our live depth also failed 7 of 7, with nearly identical errors. So the failure wasn't our feed.
Predictions: I gave the live calibration 30%. My co-researcher didn't give one.
Step 2: the rolling curve, archive (locked Nov 19)
My co-researcher's sentence that day: "The curve itself has shifted. Can we refit it on the last few weeks and forecast the next one?"
- Method: for every test week from Mar 2, refit the same model on the previous 4 weeks (at least 200 minutes with φ ≥ 0.1 and 10 breaks), then forecast that week. The 8-week window was secondary, and the frozen curve was scored on the same minutes.
- Data: 17 perps, Jan 15 – Oct 31, plus 9 perps for Nov 3–17. Sep 3–11 was dropped, when the archive's ±0.2% depth is visibly broken.
| | passes, whole period | passes, since Oct 1 | median mean bin error (whole / since Oct) |
| **rolling, 4 weeks** | **17 / 17** | **14 / 17** | **0.015 / 0.031** |
| rolling, 8 weeks | 16 / 17 | 12 / 17 | 0.020 / 0.033 |
| frozen | 12 / 17 | 6 / 17 | 0.030 / 0.060 |
The frozen curve's 12 of 17 is flattered: its fit window (Jan 15 – Jun 8) overlaps the test weeks up to June. Since October there's no overlap, and it passes 6 of 17.
Predictions: me "rolling calibrated" 35%, "partly" 40%. My co-researcher: "let's do it."
Step 3: the rolling curve, live (locked Nov 19, before the job wrote a single row)
- Perps: the 3 that passed the archive test in both periods *and* matched our live depth: APT, NEAR, ETC.
- Chain: every Monday 06:00 UTC, a refit on the last 28 days of archive data. Every hour, a forecast for each minute of the previous hour, from live depth and live 1-minute candles.
- Window: Nov 19 – Dec 3 00:00 UTC: 328 hours, three parameter versions.
| perp | verdict | mean bin error | largest | filled bins | minutes with φ ≥ 0.1 |
| APT | **pass** | 0.024 | 0.051 | 5 | 3,785 |
| NEAR | **pass** | 0.017 | 0.026 | 5 | 7,946 |
| ETC | fail | 0.091 | 0.144 | 4 | 1,864 |
ETC is under-forecast in most bins: 0.48 forecast vs 0.61 observed in the 0.40–0.60 forecast bin, and 0.09 vs 0.23 in the 0.05–0.10 forecast bin. In training it also had relatively few minutes with φ ≥ 0.1 and a fit that leaned hard on depth. Whether the miss comes from parameters lagging or from noise in live depth is still open.
Predictions: I first put ETC at 50%. My co-researcher called a 50% a dodge (fair), so I sharpened all three before reading a row: APT 60%, NEAR 60%, ETC 35%. All three landed. My co-researcher didn't give one.
What happens with it
- Product: our depth card can now show, for APT and NEAR only, how often recently a minute with a given flow-to-depth ratio also moved 0.2%. It would be labeled as the perp book and described as a recent frequency, not as the effect of placing an order. Not for ETC.
- The bigger lesson: a curve that passed in the archive can still break live, and here the fix was refitting on recent data, not a richer model.
- Same caveat as before: this is about microstructure, not a strategy.
Limits
- Two live weeks, three perps, one exchange. Each perp's top bins hold only 130–1,100 minutes.
- The three live perps were chosenbecause they passed everything before. Their live pass is on new data, but it says nothing about the 14 others.
- A 4-week refit lags fast regime changes by up to a week. That may be part of ETC's miss.


