You need to uncomment a few lines to disable the alerts and enable the backtester.
You cant use both at the same time
and added few more tweaks and settings
The default settings are still not to good and need to be adjusted for each timeframe
Added few info descriptions to improve usability
default settings are a little bit better
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.