Can you code a signal into this indicator?

I hope this is the right place to ask.

Here are two different indicators.
Heiken Ashi Smoothed
Heiken Ash Exit

I would be vary grateful if someone could code both of these to send a sound alert when the bar changes color indicating a new trend.

Heiken_Ashi_Exit.zip (2.7 KB)Heiken_Ashi_Smoothed.zip (3.58 KB)

:57: