The rather specific values for the bounds and length I saved have been developed for the EURUSD short term (5min.) interval, giving the highest amount of winning vs. loosing trades as of the publishing date of this script, which is the only important factor for binary options in my understanding. Use at your own risk.
Feel free to comment, give me pointers and/or recommendations.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.