The indicator consists of marking the most important swings, either high or low. So you can analyze how the price interacts in the future with these values.
The original code belongs to another author. I added the possibility to filter swings between dates, this way only the swings we are interested in between those dates are marked.