Script looks for divergencies on TDI. Divergencies are created by fast MA. First divergence leg has to be outside of volatility bands. After that, fast MA has to cross middle of volatility bands and then create second leg. When second leg is created, there have to be two candles with the same color in the direction of divergence.
Alerts are supported.