Can you build an alert into an indicator?

I was wondering if anyone knew a way to add an alert to an indicator? Hopefully it would make a sound.

Easy example - If the price goes above a simple EMA the alert would be triggered.

Any help/info would be greatly appreciated.

Thanks in advance,

Donovan