• Diagonal imbalances compare ask at P with bid one row below, and bid at P with ask one row above. A row between the bar's high and low that never traded holds zero volume, so a cell beside it is compared with zero (since 2.6.4; through 2.6.3 such a cell was not compared). The rows beyond the bar's high and low are not compared at all. Supply rowSize for sparse ladders; legacy callers infer the minimum observed gap, which cannot distinguish uniformly missing rows from a coarser grid. Positive volume against a zero opposing volume is an imbalance; zero against zero is not. threshold is the minimum dominant-side quantity (inclusive).

    Parameters

    • cells: readonly FootprintCell[]
    • ratio: number = 3
    • OptionalrowSize: number
    • threshold: number = 0

    Returns Imbalance[]