This is the alerting version, which is a copy of the back testing strategy one. They are both the same code, just Trading View doesn't allow you to have both alerts and back testing strategies going on at the same time.
Enjoy :)
Picture on how to add the alert, use buy or sell alerts, and select the script