Adding Strategies¶
To add a new trading strategy (signal direction) to the backtest pipeline.
Steps¶
-
Add the method to
SignalDirectioninsrc/strat.py: -
Seed REFDATA — create a Liquibase changeset to insert into
REFDATA.SIGNAL_TYPE: -
Write tests in
tests/unit/test_strat.py— verify long/short/flat positions for known inputs. -
Run all tests:
python -m pytest tests/ -v
Note
See the add-strategy skill at .github/skills/add-strategy/SKILL.md for the full checklist.