This script works based on everget's version of Ehler Stochastic Cyber Cycle. Unlike everget's work, my adaptation prints only crossovers into the chart that occur above or below the overbought/oversold zone.
You can find everget's script with all related documentation here
I didn't change the calculation, I only reinvented how it is presented on the chart and added alerts.