OrgTBoot / trading-boot

3 stars 2 forks source link

Strategy impl #10

Closed maimas closed 1 year ago

maimas commented 1 year ago

Deep refactoring.

Tested and ensured that it still maintains the same trading behaviour

BEFORE ┌────────┬─────────┬────────┬─────────┬───────────────────┐ │STRATEGY│DATA SETS│ GAIN % │POSITIONS│ WINS RATIO │ ├────────┼─────────┼────────┼─────────┼───────────────────┤ │EMA │21 │68.2966%│83.0 │0.46987951807228917│ ├────────┼─────────┼────────┼─────────┼───────────────────┤ │DEMA │21 │81.5393%│57.0 │0.5087719298245614 │ ├────────┼─────────┼────────┼─────────┼───────────────────┤ │DEMAv2 │21 │91.0305%│63.0 │0.5396825396825397 │ └────────┴─────────┴────────┴─────────┴───────────────────┘

AFTER ┌────────┬─────────┬────────┬─────────┬───────────────────┐ │STRATEGY│DATA SETS│ GAIN % │POSITIONS│ WINS RATIO │ ├────────┼─────────┼────────┼─────────┼───────────────────┤ │EMA │21 │68.2966%│83.0 │0.46987951807228917│ ├────────┼─────────┼────────┼─────────┼───────────────────┤ │DEMA │21 │81.5393%│57.0 │0.5087719298245614 │ ├────────┼─────────┼────────┼─────────┼───────────────────┤ │DEMAv2 │21 │91.0305%│63.0 │0.5396825396825397 │ └────────┴─────────┴────────┴─────────┴───────────────────┘