scripts User defined functions.

 
Would it be better to use scripts to send alerts from an indicator rather than imbed the alerts inside an indicator..? Or would having a user defined function imbedded inside the indicator be better...

thanks in advance

david
Reason: