How to Show only the Last Few LP Swings

Would it possible to only show the last 3 or 4 swings rather than the whole history?

13:04 @Ensign_Howard: stelio, see the additions.... Line A tests to see if the bar position is within the last 20 bars on the chart

13:04 @Ensign_Howard: and Line B conditionally performs Line C if and only if Line A condition is true

13:05 @Ensign_Howard: thus we skip plotting the 3rd swing price on the earlier part of the chart.