From 5779a78b50afb9a2bfeb7d6e256da3a1a48115a6 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Fri, 13 Nov 2026 17:16:28 +0800
Subject: [PATCH] refactor(station): 重构基础仓位止盈参数为总数量配置
---
src/main/java/com/xcong/excoin/modules/station/entity/StrategyStatus.java | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/modules/station/entity/StrategyStatus.java b/src/main/java/com/xcong/excoin/modules/station/entity/StrategyStatus.java
index fc2ebfc..9245e57 100644
--- a/src/main/java/com/xcong/excoin/modules/station/entity/StrategyStatus.java
+++ b/src/main/java/com/xcong/excoin/modules/station/entity/StrategyStatus.java
@@ -67,6 +67,9 @@
/** 加仓启动阈值 */
private Integer addPositionStartThreshold;
+ /** 加仓停止阈值:启动加仓后累计次数超过该值时,加仓张数恢复为基础张数;0=不限制 */
+ private Integer addPositionStopThreshold;
+
/** 止盈挂单模式:off=关闭 / concentrated=集中止盈 / dispersed=分散止盈 */
private String placeExcessTakeProfit;
@@ -88,11 +91,11 @@
/** 对向加仓挂单数量 */
private Integer tpTriggerOppositeAddQuantity;
- /** 单格止盈张数(基础仓位止盈:每个网格挂的止盈张数,支持小数) */
- private String baseTakeProfitPerGrid;
+ /** 仓位止盈补仓开关:true=止盈触发时在对侧止损位挂同方向同张数开仓单,false=保持现有逻辑 */
+ private Boolean tpPositionReplenishEnabled;
- /** 止盈网格数量(基础仓位止盈:挂止盈的网格数量) */
- private Integer baseTakeProfitGridCount;
+ /** 原始仓位止盈总数量(平均分配到对手盘止损位前的所有网格,余数挂最后一格,每格至少1张) */
+ private Integer baseTakeProfitTotalQty;
/** 当前轮次 */
private Integer currentRound;
--
Gitblit v1.9.1