Commit 7cb7dd2
committed
fix: skip margin call deferral when OHLC extremum equals close price
When mc_size==1 and the check price (H for shorts, L for longs) equals
the close price, deferring the margin call to post-script is pointless
as no recovery is possible at the same price. Firing immediately during
OHLC ensures close_all orders see the updated position size, preventing
phantom opposite-direction trades from stale close_all quantities.1 parent 26220cd commit 7cb7dd2
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1129 | 1129 | | |
1130 | 1130 | | |
1131 | 1131 | | |
1132 | | - | |
| 1132 | + | |
| 1133 | + | |
1133 | 1134 | | |
1134 | 1135 | | |
1135 | 1136 | | |
| |||
0 commit comments