Seems to be made mostly for tick data (< 1 min timeframe) and advanced scalpers
Always interesting to see that Pinescript is much easier than most of other trading programming languages out there :)
PS You might like checking the data window panel from TradingView and mouseover your cursor on the chart. It will update the debug/historical data in real-time
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 publications is governed by House rules. お気に入りに登録してチャート上でご利用頂けます。