Administrator
7 days ago 3ebd59a88bc0bdcf91dff94ad2ba25e1f4fe682f
src/main/resources/db/station-schema.sql
@@ -31,6 +31,7 @@
    `tp_trigger_opposite_add_quantity` INT(11)   DEFAULT 0 COMMENT '对向加仓挂单数量',
    `tp_position_replenish_enabled`    TINYINT(1) DEFAULT 0 COMMENT '仓位止盈补仓开关',
    `base_take_profit_total_qty`      INT(11)   DEFAULT 0 COMMENT '原始仓位止盈总数量(平均分配到对手盘止损位前的所有网格,余数挂最后一格)',
    `original_position_reduce`        INT(11)   DEFAULT 0 COMMENT '原始仓位减仓递减步长(0=关闭;>0=每次止损后追单量递减的步长)',
    `current_round`  INT(11)      DEFAULT 0  COMMENT '当前轮次',
    `total_rounds`   INT(11)      DEFAULT 0  COMMENT '总轮数上限',
    `accumulated_long_loss`       INT(11)      DEFAULT 0  COMMENT '多头累计止损次数',
@@ -132,3 +133,10 @@
-- ============================================================
ALTER TABLE `strategy_status`
    ADD COLUMN `add_position_stop_threshold` INT(11) DEFAULT 0 COMMENT '加仓停止阈值(0=不限制)' AFTER `add_position_start_threshold`;
-- ============================================================
-- 升级脚本:原始仓位减仓递减步长(2026-11 新增)
-- 0=关闭;>0=每次止损后追单量递减的步长
-- ============================================================
ALTER TABLE `strategy_status`
    ADD COLUMN `original_position_reduce` INT(11) DEFAULT 0 COMMENT '原始仓位减仓递减步长(0=关闭;>0=每次止损后追单量递减的步长)' AFTER `base_take_profit_total_qty`;