发布

  • 10990 8c6aa6a3b3

    Refactors Capacity Estimation and moves estimation to main event loop (#5351)

    frostbyte_neo 发布于 2021-03-02 21:46:31 +00:00

    • Adds CapacityEstimate and SymbolCapacity

      The capacity estimation has been moved from
      the report generator and wired directly into
      Lean via the ResultHandler. In addition,
      the capacity estimation strategy has changed
      to account for errors in the previous iteration
      of the capacity estimation.

      Many many thanks to Jared for being much of the
      mastermind behind this project. It would have
      been harder to complete without him to bounce ideas
      off of.

      • Moves old tests to regression algorithms
      • Adds Estimated Capacity statistic
      • Removes old capacity estimation tests

    Final report capacity estimation. Pushing to save state

    • Fixes bugs, cleans up code and adds comments

      • Adds forced sampling to Capacity Estimation
      • Misc. bug fixes for daily data
    • Updates capacity test cases' Estimated Strategy Capacity statistic

    • Adds Capacity Estimate to all regression algorithms

    • Removes Report's StrategyCapacity class and fixes bug in tests

      • Adds null check in BacktestingResultHandler to fix
        BacktestingTransactionHandler failing tests

      • Deletes old capacity estimation classes

      • Retrieve capacity estimates from backtest statistics results
        instead of calculating at runtime

    • Make $0.00 capacity return as "-" and Result = 0 in report

    • Adds capacity to runtime statistics

    • Converts capacity to number denoted by financial figures in RuntimeStats

    • Addresses review: code cleanup for Capacity and adds comments to regression tests

    下载附件