backtesting.py icon indicating copy to clipboard operation
backtesting.py copied to clipboard

why its so slow?

Open efeint01 opened this issue 2 years ago • 1 comments

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.

efeint01 avatar Jul 01 '23 02:07 efeint01

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.

Jay90194 avatar Jul 11 '23 12:07 Jay90194