We mark every confirmed swing high — a day no day within five sessions either side traded higher. A swing is only confirmed five days after it happens, so the detector can never see a pivot on the day it forms.
A base must interrupt an advance, not a decline: we require a rise of at least 30% into that high over the prior six months. A stock drifting sideways after falling is not building a base, it is falling more slowly.

