fp.stack
One stacked imbalance of a bar: fp.stacks returns them. Fields: side (1 = buy stack, -1 = sell stack), lo and hi (the prices of its bottom and top edges), rows (the imbalanced rows in it), buy and sell (the volume of its rows, base coin), min_ratio and max_ratio (the smallest and largest diagonal ratio of its rows; na where the neighbour row was empty).