From 3ebd59a88bc0bdcf91dff94ad2ba25e1f4fe682f Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Thu, 19 Nov 2026 17:38:35 +0800
Subject: [PATCH] feat(config): 添加原始仓位减仓递减步长配置
---
src/main/java/com/xcong/excoin/modules/station/entity/StrategyStatus.java | 31 +++++++++++++++++++++++++++++--
1 files changed, 29 insertions(+), 2 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 db1c277..76da82f 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,12 +67,39 @@
/** 加仓启动阈值 */
private Integer addPositionStartThreshold;
- /** 超额止盈开关 */
- private Boolean placeExcessTakeProfit;
+ /** 加仓停止阈值:启动加仓后累计次数超过该值时,加仓张数恢复为基础张数;0=不限制 */
+ private Integer addPositionStopThreshold;
+
+ /** 止盈挂单模式:off=关闭 / concentrated=集中止盈 / dispersed=分散止盈 */
+ private String placeExcessTakeProfit;
/** 价格驱动开关 */
private Boolean priceDriveEnabled;
+ /** 双开止损触发开关:true=按多空止损触发价初始化双向止损单,false=沿用现有逻辑 */
+ private Boolean dualStopLossEnabled;
+
+ /** 多头止损触发价 */
+ private String longStopLossPrice;
+
+ /** 空头止损触发价 */
+ private String shortStopLossPrice;
+
+ /** 止盈成交触发对向加仓开关 */
+ private Boolean tpTriggerOppositeAddEnabled;
+
+ /** 对向加仓挂单数量 */
+ private Integer tpTriggerOppositeAddQuantity;
+
+ /** 仓位止盈补仓开关:true=止盈触发时在对侧止损位挂同方向同张数开仓单,false=保持现有逻辑 */
+ private Boolean tpPositionReplenishEnabled;
+
+ /** 原始仓位止盈总数量(平均分配到对手盘止损位前的所有网格,余数挂最后一格,每格至少1张) */
+ private Integer baseTakeProfitTotalQty;
+
+ /** 原始仓位减仓递减步长:0=关闭,>0=每次止损后追单量递减的步长,默认 0 */
+ private Integer originalPositionReduce;
+
/** 当前轮次 */
private Integer currentRound;
--
Gitblit v1.9.1