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.
Great work here - again, using a very good base and improving upon it. On @Kirk65 point, I think the volume idea is great - even using something like elders force or the forward-reverse ema to keep you in the trade/avoid the false sell signals. Can you setup alerts based on something like that? Eg, if in uptrend and volume up (force index or something like that), stay in trade, else, sell and go short? maybe stay in a 1h based on a 4h or 15M base on 1h? Contact me if you can - I'll pay for it.
This is not profitable, nor a holy grail.