This is a preprocessed and standardized version of indicator. You can replace with any other indicator of your choice. Use this code as a framework for your ideas.
Time Threshold parameter is useful in handling a repainting issue. By setting it to higher values you can effectively eliminate repainting!
Cumulative Return, Win/Loss and Win Rate are quick & dirty performance measures helpful in tuning parameters.
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.