Adding an alert to an Indicator

Can an alert be added to an existing indicator? For example, when the stochastic lines crossover an alert is triggered.