OPEN-SOURCE SCRIPT

Stochastic %B

It's a Stochastic indicator combined with Bollinger %B. This way you just need to check if it is above 1.0 or below 0.0 (Outside Bollinger Bands).

Disclaimer