Add alert to Trend Indicator Please Help

Good Morning!

I was wondering if anyone (better at coding than me) could add an alert to this indicator, I’ve tried myself but cannot seem to get it to compile. Its a worthwhile indicator to look at, I am still testing a system which is using it and results so far are really promising!

Cheers Merry Christmas!

Trend LINE.zip (701 Bytes)