The queue imbalance at the touch is , where and are the quantities resting at the best bid and the best ask; it lies in and is positive when the bid queue is the larger.
firm.tape, against 0.017 to 0.979 for the race of two independent birth–death queues with the rates measured on the same data. Data: firm.tape, seed 8; firm.queues.