mirror of
https://github.com/silencesdg/mt5_python_ea_suite.git
synced 2026-07-29 11:47:44 +00:00
0808c50ee8
问题: 0.01手 × 0.5(半仓对冲比例) = 0.005手 < 最小手数0.01
API拒绝下单, order_id=0
修复: execute_hedge 增加手数校验, 强制不低于volume_min
风险管理模块
此模块包含所有风险管理相关的组件:
market_state.py: 市场状态分析器,基于resilient_trend逻辑position_manager.py: 仓位管理器,基于profit_protect逻辑__init__.py: 风险管理控制器,统一接口