src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
@@ -2986,14 +2986,13 @@ /** * 计算原始仓位减仓模式下的递减追单数量。 * 每次止损(含首次)→ 追单 = 本次被平数量 - 步长; * 若结果 < 步长 → 重置为原始仓位(最大仓位),形成循环。 * 一旦被平数量 ≤ 步长(追单量会降到非正数)→ 钉在本次被平数量,不再递减、不再重置。 */ private int computeReducedChaseQty(int stoppedQty) { int baseQty = Integer.parseInt(config.getBaseQuantity()); int reduceStep = config.getOriginalPositionReduce(); int chase = stoppedQty - reduceStep; if (chase < reduceStep) { chase = baseQty; if (chase <= 0) { chase = stoppedQty; } return chase; }