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

Enhancement: Pluggable Strategy Optimizers #51

Open
eicnix opened this issue Feb 7, 2021 · 3 comments
Open

Enhancement: Pluggable Strategy Optimizers #51

eicnix opened this issue Feb 7, 2021 · 3 comments

Comments

@eicnix
Copy link

eicnix commented Feb 7, 2021

Currently Backtrader performs a grid search to optimize strategy parameters by running through all possible parameters configurations. More complex strategies would benefit from applying more advanced parameter optimizer. While it is possible to perform such optimizations outside of Backtrader one would loose the already established performance improve from running the same strategy with different parameters.

The Optimizer class would take care of:

  • Configuring parameter sets to be tested
  • Ranking different parameter settings (ranking function should also be configurable for users)
  • Determining when to stop the optimization run

Possible interesting stock optimizers are:

  • Grid search (keep current behavior as default)
  • Bayesian optimization
  • Evolutionary optimization

I'm happy to contribute for this enhancement if there is some interest in it.

@alexmi
Copy link

alexmi commented Aug 30, 2021

I am interested. Can you share

@farcasic
Copy link

I'm interested too.

@TheLegendAli
Copy link

I am as well, I tried to use different libraries but everything looked like a hack. Ideally we have an optimizer that can:

  • Take numerical and categorical values

  • Run In Parallel(multi-thread will be a plus)

  • have different optimization strategies

-Early stop function

  • garbage collection

  • intuitive display of errors(for example to identify wether the bug was due to your code or parallelization)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants