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:
silencesdg
2026-05-14 18:15:18 +08:00
parent 9b0eeb521e
commit 0fcd676a0a
3 changed files with 29 additions and 12 deletions
+1 -1
View File
@@ -1 +1 @@
162796
185384