'VectorBT backtesting python intraday problem

I'm using VectorBT in python to backtest a strategy, however as soon as I get any intraday data with gaps, this is what happens: enter image description here

Obviously, the gaps are nights/holidays etc, and because of that the indicators are calculated incorrectly - this is not just a plotting issue. What can I do to fix it? I haven't found anything in the documentation



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source