How do I add an alert to this Heiken Ashi indicator?

 

Hi guys, it's been a while since I've been here....


I've attached an indicator and I was wondering if anyone could show me the code that I need (and where in the indicator program it goes) for when the Heiken Ashi indicator turns color. If you load this indicator up into MetaTrader, you'll see at the bottom (in a separate indicator window) that the sell indication is red and the buy indication is blue. I want an alert that tells me that this Heiken Ashi "candle" has just changed color right now.


Can anyone help? You can just show me the code, or you can post the whole indicator here if you'd like.


Thank you all so very much!

PS

Files: