Modify a generic TOS indicator ( Stochastic Momentum Index ) to do the following :
1. Generate a alarm at every crossing. Alarm should be both visual ( blinking screen or similar ) to be turned off manually and audio ( ongoing beep ) turned off after xx seconds.
2. If there is a associated trade then exit the trade at crossing.