Skip to content

Walk Forward Optimization #7031

Description

@jaredbroad

Desired Behavior

  • Create Walk Forward Optimization API in LEAN.
  • Harness existing parameters and optimization controller technology to implement scheduled optimizations.
  • Use a pluggable source for the optimization provider.
  • In backtesting, run local LEAN instances inside LEAN Foundation, as backtests can take a long time.
  • In live trading, run an APIOptimizationHandler to run the optimization lift in the cloud; to keep live loads light.
  • Use the Scheduled Event System to handle initializing the optimization.

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

  • Date/Time Rules - When to run WFO / Month Start, Week Start etc.
  • Optimization Target - Select the winning set pf parameters.
  • The result would then set the algorithm parameters set.

Checklist

  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions