Shearwalls does not assign shear line force to or design any wall segment that has a ratio of height to width of greater then 3.5:1 as per CSA O86 11.4.1.2. The height is defined as the height of a wall itself, and does not include floor or ceiling joists attached to the wall.
On the upper storey below a gable end, Shearwalls uses the height to the eave as the wall height, disregarding the triangular portion of the gable end. This is slightly conservative for the case of a tall wall composed of studs that extend to the roof, and where there is no ceiling at eave height.However there is no guidance in O86 on the design of trapezoidal walls.
Note that in determining the hold-down force moment arm, the height to the sloping roof is considered. When calculating deflection, it is not. Refer to these topics for further explanation.