Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add multiprocessing support to backtest #370

Open
ahmadsl opened this issue Apr 28, 2021 · 3 comments · May be fixed by #402
Open

[FEATURE] Add multiprocessing support to backtest #370

ahmadsl opened this issue Apr 28, 2021 · 3 comments · May be fixed by #402
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ahmadsl
Copy link

ahmadsl commented Apr 28, 2021

Optimization of complex strategies takes too much time. Adding multiprocessing can solve the problem.

backtrader.cerebro can be used. definition.

@ahmadsl ahmadsl added the enhancement New feature or request label Apr 28, 2021
@mikeejazmines mikeejazmines added the help wanted Extra attention is needed label Dec 17, 2021
@mikeejazmines
Copy link
Collaborator

Hi @ahmadsl the default actually becomes all available cores as stated in the link you provided.

This is further discussed in the backtrader docs here: https://www.backtrader.com/blog/posts/2015-07-23-multicore-optimization/multicore-optimization/

maxcpus = None -> Use all available CPUs
maxcpus = 1 -> Do not run multicore
maxcpues = 2 … -> Use the indicated number of cores

If you have other suggestions for optimization please do let us know! Thanks :)

@ahmadsl
Copy link
Author

ahmadsl commented Dec 17, 2021

@mikeejazmines, thanks for your reply. But I want to config this in Fastquant wrapper.

@mikeejazmines mikeejazmines reopened this Dec 18, 2021
@mikeejazmines mikeejazmines linked a pull request Dec 18, 2021 that will close this issue
2 tasks
@mikeejazmines
Copy link
Collaborator

@ahmadsl my bad! Understood. I have created the PR here #402 I will just test it and merge it when done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants