The script uses higher and lower swings to generate the resistance(red) and support (green) also the orange color represents the crossunder midline.
It will generate a new sell or buy entry suggestion when the price reject the resistance or the support and the median line it will confirm the trend direction between low high swings in this way you are able to make a better decisions and to place stop or take profits on a real targets.