In parameters you can select from/to date for backtesting range.
Pine Programming v5: qntly.com/pineprog
Adv.Pine Use-Cases: qntly.com/advpine
Access to Pro Indic.: qntly.com/proind
Hire Me: qntly.com/hirepine
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.