Check the settings to see how the filters work. I added alerts and a feature that shows the divergences that have been filtered, but as faded "ghost" divergences. Spooooky. This is useful for tuning the script to a particular market. All credit to RicardoSantos for the original.