you are making the indicator yourself, thank you very much, the Vidya cmo_ma_1_line is perfect, as for the Vidya cmo_ma_1_line_ (sep) this indicator should oscillate on the zero line in practice when it reaches this level I know that the Vidya cmo is touched by the price, to make you better understand I'll put the code that I created on the metastock:
Length: = Input ("Length", 1,1000,15);
Smoothing: = Input ("Smoothing", 1,10000,3);
AbsCMO: = (Abs (CMO (C, Length))) / 100;
SC: = 2 / (Length + 1);
VIDYA: = If (Cum (1) <= (Length + 1), C, (SC * AbsCMO * CLOSE) + (1- (SC * AbsCMO)) * PREV);
pc: = CLOSE-VIDYA;
Mov (PC, Smoothing, S) / 100
the alarm should go off either when the moving average of the indicator crosses from bottom to top or vice versa (as you did) or when the indicator touches the zero line or a small percentage just before such as 0.3% (I do not use points because in this way it can be used for more instruments finances forex, commodities, securities, etc.
(but that of 0.3% is one more thing) it would be interesting to be able to indicate also the divergences but I would not like to take advantage too much of your kindness