backtest: reflect cost/execution effects in fold scoring (#368) #382
Reference in New Issue
Block a user
Delete Branch "feature/issue-368-backtest-cost-exec"
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?
Summary
BacktestCostModel에partial_fill_rate_by_session를 추가하고 세션별 필수 검증을 강제했습니다.run_v2_backtest_pipeline()fold 점수 경로에BacktestExecutionModel을 연결해 slippage/failure/partial-fill/commission 영향을 반영했습니다.cost_adjusted_accuracy를 추가해 비용 반영 성과를 별도로 제공하도록 확장했습니다.Scope Mapping
REQ-V2-007TASK-V2-012,TASK-CODE-006TEST-ACC-014Validation
pytest -q tests/test_backtest_cost_guard.pypytest -q tests/test_backtest_pipeline_integration.pypytest -q tests/test_backtest_execution_model.pyCI 실패 원인: backtest_pipeline.py:239 E501 (줄 길이 103 > 100). _build_execution_model 함수 시그니처를 줄바꿈 처리하면 됩니다. 코드 품질 자체는 양호합니다.