pub fn calculate_vpin(trades: &[TradeTick], bucket_size: usize) -> f64Expand description
Calculate Volume-Synchronized Probability of Informed Trading (VPIN)
VPIN measures the imbalance of trade volume between buy and sell orders over fixed volume buckets, providing early warning of informed trading.