Thanks a good step forward, the cmo 2 I can not get it to work, I would be curious to see it but the cmo_ma is very close to what I had in mind, in practice from the cmo_ma I would remove the Red Vidya (even if it can be hidden), and I would use it as a separate indicator, making the difference with the close, essentially closing the price - Vidya cmo and leave the cmo_ma on the chart, something like this:
it would also be interesting to put an alarm when the price reaches the cmo_ma .....
I can't get the experts to work .....