QuantConnect / Lean

Lean Algorithmic Trading Engine by QuantConnect (Python, C#)
https://lean.io
Apache License 2.0
9.35k stars 3.19k forks source link

Walk Forward Optimization #7031

Open jaredbroad opened 1 year ago

jaredbroad commented 1 year ago

Desired Behavior

QCAlgorithm.Optimize(DateRule, TimeRule, {Optimization Target | Optimization Target Func<BacktestResults[]>} )

Checklist

algo-dude commented 1 year ago

A simple idea of how I would expect to use this:

image
jaredbroad commented 1 year ago

Parent and Child algorithms to avoid nested optimizations

KlausGlueckert commented 3 months ago

this would be interesting! Please allow to pass an objective function to "score" where one can use the runtime statistics of the backtest and not only point estimates of the score of the backtest.

RooFernando commented 1 month ago

Is there a way to run the backtest on the research.ipynb?

I would like to optimize parameters but would need to extract values from the run backtest (objective function). Is it possible to call on the backtest strategy within research Jupyter notebook?