Swing High/Low Detector

Estimate swing thresholds using recent bar context.

Swing width approximates how far the current price is from nearby extremes.