A Theory of Intraday Trading Patterns: Volume and Price Variability