P1: Risk management (stop-loss/take-profit) not implemented #28
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The database schema and frontend UI support
risk_managementconfiguration (stop_loss_percent, take_profit_percent), but neither engine implements the logic.Evidence
Frontend Types:
But engines ignore it:
backtest/engine.py- No stop-loss/take-profit checkssimulate/engine.py- Same issueSolution
Implement stop-loss and take-profit checks in both engines after a trade is executed.
Logic Flow
Acceptance Criteria