MediumHow Crypto Pin Bars Form and How to Detect Them: Lessons from a $19B Liquidation | by DolphinDB | Jul, 2026 | MediumSitemapOpen in appSign up<br>Sign in
Medium Logo
Get app<br>Write
Search
Sign up<br>Sign in
What Is a Pin Bar?<br>Why Do Pin Bars Occur?<br>Reconstructing October 10: What the Data SawIdentifying Pin Bars<br>Liquidation Data: Reconstructing the Cascade of Forced Liquidations<br>Trading Volume Reveals the Sentiment Turning Point
The Signals That Were Already ThereVPIN: Tracking the Evolution of Order Flow Toxicity<br>Order Book Imbalance: Detecting the Early Signs of Liquidity Exhaustion
Building a Real-Time Risk Monitoring System with VPIN<br>Conclusion<br>Reference
How Crypto Pin Bars Form and How to Detect Them: Lessons from a $19B Liquidation
DolphinDB
12 min read·<br>1 hour ago
Listen
Share
One Candlestick, $19 Billion Wiped Out Overnight<br>On October 10, 2025, the U.S. abruptly announced a 100% tariff on all Chinese imports and introduced new export restrictions on critical software. The news shattered an otherwise quiet Friday evening. Bitcoin plunged more than 14% from near its all-time high, while several Altcoins fell by as much as 70% before rebounding [1]. Within just a few hours between October 10 and 11, more than $19 billion in leveraged positions were liquidated, making it one of the largest single-day liquidation events in crypto market history.<br>Left behind on the charts: a series of long lower wicks that traders know all too well as pin bars.<br>Press enter or click to view image in full size
What Is a Pin Bar?<br>A pin bar is an extreme candlestick pattern characterized by a very long wick and a relatively small body. The price briefly breaks through a key support or resistance level before rapidly reversing, leaving behind a distinctive “needle” on the chart. It serves as the market’s fingerprint of a brief loss of equilibrium.<br>The concept originates from classical candlestick analysis and can be traced back to Steve Nison’s pioneering work on candlestick techniques [2]. Traditional definitions, however, are largely qualitative. To provide a more objective definition, we quantify a pin bar using the following criteria:<br>The wick is significantly longer than the candlestick body.<br>The wick accounts for a large proportion of the candlestick’s total price range.<br>The overall price range exceeds a minimum absolute or relative threshold to filter out normal bid-ask fluctuations.<br>Why Do Pin Bars Occur?<br>Market microstructure offers several classic explanations.<br>1. Informed Trading<br>Large institutions or traders with superior information execute sizable orders during periods of limited liquidity, causing significant price impact.<br>2. Insufficient Liquidity<br>Smaller cryptocurrencies often have shallow order books, allowing a single large order to move the market by several percentage points.<br>3. Market Manipulation<br>Some traders intentionally trigger clusters of stop-loss or liquidation orders by forcing prices through key levels before buying back at lower prices.<br>4. Leverage and Cascading Liquidations<br>This is the most common and most destructive mechanism. Highly leveraged long positions tend to concentrate their liquidation levels just below important support prices. Once the market reaches those levels, systems automatically execute market sell orders. The additional selling pressure pushes prices even lower, triggering more liquidations and creating a vicious cycle:<br>Pin Bar → Liquidations → Deeper Pin Bar<br>The October 10 crash provides a textbook example of this mechanism. Bitcoin was trading near its historical highs, with the market heavily positioned on the long side using excessive leverage. Meanwhile, liquidity had thinned during Friday evening as institutional market makers reduced activity. Under such conditions, a single geopolitical shock was enough to ignite the cascade.<br>Reconstructing October 10: What the Data Saw<br>This analysis is based on real market data collected from Binance and OKX throughout October 2025. Three types of datasets are used:<br>Minute-level candlestick (K-line) data for identifying pin bar patterns.<br>Aggregated trade data for calculating VPIN (Volume-Synchronized Probability of Informed Trading).<br>Order book depth snapshots for measuring order book imbalance.<br>All timestamps are converted to UTC and stored in the DolphinDB distributed database for analysis.<br>We begin by reconstructing the event using the three most direct indicators — pin bar patterns, liquidation records, and trading volume — to understand exactly what unfolded on that day.<br>Identifying Pin Bars<br>We scanned the 5-minute BTCUSDT candlestick data from Binance to identify pin bars using the following criteria:<br>Wick length > 5 × body length<br>Wick length > 50% of the total candlestick range<br>Candlestick range > 0.5% of the average price<br>The core implementation is shown below:<br>update dataKline set body = abs(close - open)<br>update dataKline set amplitude = (high - low)<br>update dataKline set upper = (high - max(open,close))<br>update...