After seen so many likes and some requests to make it an alert, I decided to refactor the code to the current Pine Ver., so the code is more readable and you can add the indicator in the Alert list.
Thanks for your support!
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.