Files
mt5_python_ea_suite/core/risk
silencesdg 4cb4f4a15e 重构项目架构,新增 MT5 代理服务
- 重构核心模块:DataProvider 依赖注入、RiskController 门面、信号注册表
- 新增 FastAPI 代理服务 (run/server.py),支持局域网远程调用 MT5
- 新增 RemoteDataProvider + AttrDict,远端无缝替代 LiveDataProvider
- 新增序列化模块,MT5 对象转 JSON 兼容格式
- 重构入口点至 run/ 包,支持 python -m run.realtime/server/backtest/optimize
- 更新 CLAUDE.md 文档

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-05-11 12:00:45 +08:00
..
2025-08-14 10:13:04 +08:00

风险管理模块

此模块包含所有风险管理相关的组件:

  • market_state.py: 市场状态分析器,基于resilient_trend逻辑
  • position_manager.py: 仓位管理器,基于profit_protect逻辑
  • __init__.py: 风险管理控制器,统一接口