VisualHFT: Real-time VPIN and Order Flow Toxicity

This title was summarized by AI from the post below.

When VPIN crosses 0.85, you are looking at a statistically elevated proportion of informed order flow. Easley, Marcos Lopez de Prado, and O'Hara's 2012 paper (Review of Financial Studies, 25:5) established the metric as a measure of order flow toxicity correlated with deteriorating liquidity. Most desks have no way to see it moving in real time. The video above is #VisualHFT running against a live feed. VPIN updates in real time, not on end-of-day batch cycles. What you're watching is order toxicity building, bar by bar, before the price print reflects it. LOB imbalance has a half-life measured in seconds. Cont, Stoikov, and Talreja (2010) quantified it: imbalance is a documented short-horizon price predictor before most execution stacks register the shift. By the time your TWAP is adjusting, the informed flow has already repositioned. That slippage structure is visible in the book, if you're reading 10+ depth levels on both sides, not just top-of-book. I built VisualHFT after 20+ years in production HFT infrastructure because I kept encountering the same gap: desks with sub-millisecond execution stacks monitoring at fill-rate granularity. The signal that would have caught the P&L bleed was in the order book. It just wasn't rendered anywhere a Head of Desk could act on it. On #VPIN: Easley et al. (2011) proposed it as a Flash Crash leading indicator. Andersen and Bondarenko contested the timing. The predictive-vs-coincident debate is unresolved. What is not contested: at sustained elevated levels, VPIN reflects informed order flow concentration. Whether you treat it as predictive or as a real-time risk gauge, the value is having the number live, not reconstructing it post-close. #VisualHFT: is opensource, with 1,100+ GitHub stars, 215 forks, 508 commits, Apache-2.0, C#/.NET 7.0. Plugin architecture with 8 exchange connectors. Analytics: VPIN, LOB imbalance, Market Resilience, OTT Ratio, TTO Ratio — rendered simultaneously in real time. Bloomberg Terminal runs north of $30,000/seat/year. VisualHFT is $0. But the real point: Bloomberg's microstructure analytics are opaque. VisualHFT is 508 commits of readable, forkable, auditable code. When VPIN spikes, you trace exactly what it's computing. CME Group's 2025 liquidity framework argues order book depth alone is insufficient for execution risk. The case for multi-metric dashboards is now coming from the exchanges themselves. When VPIN holds above 0.7 for 8+ consecutive bars, what does your order flow composition look like in the next window — and does your current stack surface that before it becomes a fill quality problem? Open source — link on my profile. #hft #marketmicrostructure #electronictrading #lowlatency

  • graphical user interface

👉 I wrote a full article about this, link is in my profile

Your Andersen-Bondarenko point gets to the implementation risk. VPIN is highly sensitive to how trades are classified in the first place. Change the signing method and you can materially change the VPIN path and which periods look "toxic," so the classifier is part of the signal, not just plumbing.

Nice post! It's rare to see someone talking about the things that actually work, let alone provide tooling around then. OBI certainly is one of the most powerful signals to consider.

Ariel Silahian, it is really interesting to see someone discussing VPIN or its variant, HHI (Hirschman, 1980), publicly, especially in HFT. These kinds of indicators are what helped to discover the Flash Crash in 2010, where the Dow Jones dropped 10%. Thanks for sharing with us!

Super post and displays. TY.

Like
Reply

Looks nice, but I prefer market taking

Like
Reply
See more comments

To view or add a comment, sign in

Explore content categories