mirror of
https://github.com/silencesdg/mt5_python_ea_suite.git
synced 2026-08-16 20:28:12 +00:00
feat: 盈亏计算改为账户余额% + 拖尾止损绝对值扣除
- _calculate_pnl_pct: 从金价涨跌%改为账户余额% - _get_contract_size: 新增缓存合约规格方法 - 硬止损: 从金价%乘法改为账户$→点数→价格转换 - 拖尾止损: peak*(1-retrace) 改为 peak-retrace(绝对值扣除) - 统一 _record_closed_trade/_calculate_unrealized_pnl 使用缓存合约规格 - RISK_CONFIG: 止损-1.5%/止盈+3.0%/拖尾激活+2.0%/回撤1.0%(均为账户%)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
2026-05-14T14:19:14.539006
|
||||
Reference in New Issue
Block a user