mirror of
https://github.com/silencesdg/mt5_python_ea_suite.git
synced 2026-08-01 05:07:43 +00:00
feat: 盈亏计算改为保证金%(开仓成本%)
- risk_leverage=100: 0.01手按7保证金算,不改变实际杠杆 - _calculate_pnl_pct: dollar_pnl / position_margin - 硬止损: 保证金% × 开仓保证金 × 倍率 - RISK_CONFIG: SL-50%/TP+100%/拖尾+70%/回撤35%(均为保证金%)
This commit is contained in: