Yes, I have thought about that. For the prior static swing I would probably
(1) define a lookback period (for example 200 bars)
(2) define the order (number of surrounding bars with a lower high for swing highs, and a higher low for swing lows)
Then identify all swing highs and lows of that order that were identified during the lookback period (if any ..) and use the highest of those swing highs and the lowest of those swing lows to identify the retracement levels