FlowRegime

Real-time Bitcoin regime classification for quants

FlowRegime reads BTC-USDT order flow every 15 minutes and tells you whether the market is trending, ranging, or chaotic.

Each output includes a confidence score for all three states — not just a label, but a probability.


What Makes It Unique

  • Running forward and out-of-sample since January 2022
  • Built on order flow, not price patterns
  • One bar at a time — same code in backtest and live

Use Cases

  • Route your strategy based on live regime — run trend-following in Trend, stay out in Chaotic
  • Use p_chaotic as a dynamic risk-off signal during volatility spikes
  • Enrich your historical data with regime labels to see where your strategy actually breaks

Methodology

3-state Hidden Markov Model fit on order flow imbalance, dollar flow aggression, and trade intensity. Refitted daily on a rolling 30-day window. (Kolm et al., 2023; Machimbo et al., 2025; Anastasopoulos et al., 2026)


Access

API for 15-minute labels and full confidence vector. Get access →


References

2026

  1. Elsevier
    Order flow and cryptocurrency returns
    Alexia Anastasopoulos, Nikola Gradojevic, Fred Liu, and 2 more authors
    Journal of Financial Markets, 2026

2025

  1. AJPAS
    Applications of Hidden Markov Models in Detecting Regime Changes in Bitcoin Markets
    Elijah Wanjala Machimbo, Wycliffe Cheruiyot, George Mocheche, and 1 more author
    Asian Journal of Probability and Statistics, 2025

2023

  1. Wiley
    Deep order flow imbalance: Extracting alpha at multiple horizons from the limit order book
    Petter N Kolm, Jeremy Turiel, and Nicholas Westray
    Mathematical Finance, 2023