Below is the link to the idea
Try the scripts for longer periods (e.g. 1 D).
The script still requires some tweaks as one of the issue is that the shorts and puts are being placed 2 candles after a confirmation is there. So use this strategy at your own risk.
Any inputs will really be helpful.
(Also thanks to @ChrisMoody for such a good indicator).
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.