Closed
Description
I have this MultiBacktest code which hangs over 30 seconds:
btm = MultiBacktest([USD_JPY, GBP_USD], Momentum, cash=10_000, margin=.02, commission=.002)
stats = btm.run()
print(stats)
btm.plot(filename="btm_plot.html")
webbrowser.open("btm_plot.html")
Running a single backtest on one of these instruments works fine:
bt = Backtest(USD_JPY, Momentum, cash=10_000, margin=.02, commission=.002)
stats = bt.run()
print(stats)
bt.plot(filename="bt_plot.html")
webbrowser.open("bt_plot.html")
Since this multibacktest is doing 2 backtests, I'm not sure why it would take more than 30 seconds to complete. Is there something else that is causing it to hang?