jameschch / LeanOptimization

Genetic optimization using LEAN
Apache License 2.0
50 stars 14 forks source link

refactor fitness #6

Closed jameschch closed 7 years ago

jameschch commented 7 years ago

Inherit Ifitness with abstract leanfitnessbase call runner in base class and pass entire stats set to derived. Derived class interprets Sharpe etc. Allows to add a simple fitness metrics eg maximizesharpe, maximizetotaltrades, maximizecar, minimizesharpevolatility. Ideally use composer to inject metric.