The weighted mid price is : the mid moved towards the side with the smaller queue. The book’s microprice is the mid plus the expected size and sign of the next mid change given the current imbalance bucket (at a one-tick spread), estimated on past data.
firm.tape through firm.lobfeat, seed 8.