backtesting.py
backtesting.py copied to clipboard
why its so slow?
im using this library and already enabled multiproccesing by mp.set_start_method('fork') on Windows 11
My strategy little bit hard. I tested on 7700 Candles and its really took my 15 minutes.
Here is my optimize code:
stats = bt.optimize(
maximize=optim_func,
# method="grid",
max_tries=50
)
What should i do for increasing the speed? This question may be stupid sorry for that. I'm a beginner, Thanks.
Try using Vector BT. It uses Numba, which is much faster than Pandas. Though the Non-pro version is not maintained by the owner. Still, give it a try.