Improved performance by adding a new option to process only the most recent bars.
This indicator is quite resource intensive and may take multiple seconds to load with long series of data. Now, by default only the 1000 most bars are processed to offer better and more consistent performance.
You may decrease this number in the settings if you want even better loading time and increase it, or even completely disable this limit, if you need to process older data.
Alternatively you may use the TradingView replay feature to process older data without touching this parameter.
By processing only the most recent 1000 bars, initial loading went from more than 10 seconds to around 2 seconds on the longest series of data.