backtrader2 / backtrader

Python Backtesting library for trading strategies
https://www.backtrader.com
GNU General Public License v3.0
221 stars 52 forks source link

Enhancement: Pluggable Strategy Optimizers #51

Open eicnix opened 3 years ago

eicnix commented 3 years ago

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:

Possible interesting stock optimizers are:

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

alexmi commented 2 years ago

I am interested. Can you share

farcasic commented 2 years ago

I'm interested too.

TheLegendAli commented 2 years ago

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

-Early stop function