| | |
| | | `short_stop_loss_price` VARCHAR(32) DEFAULT NULL COMMENT '空头止损触发价', |
| | | `tp_trigger_opposite_add_enabled` TINYINT(1) DEFAULT 0 COMMENT '止盈成交触发对向加仓开关', |
| | | `tp_trigger_opposite_add_quantity` INT(11) DEFAULT 0 COMMENT '对向加仓挂单数量', |
| | | `base_take_profit_per_grid` INT(11) DEFAULT 0 COMMENT '单格止盈张数(基础仓位止盈)', |
| | | `base_take_profit_per_grid` VARCHAR(32) DEFAULT NULL COMMENT '单格止盈张数(基础仓位止盈,支持小数)', |
| | | `base_take_profit_grid_count` INT(11) DEFAULT 0 COMMENT '止盈网格数量(基础仓位止盈)', |
| | | `current_round` INT(11) DEFAULT 0 COMMENT '当前轮次', |
| | | `total_rounds` INT(11) DEFAULT 0 COMMENT '总轮数上限', |
| | |
| | | -- 升级脚本:基础仓位止盈挂单参数(2026-09 新增) |
| | | -- ============================================================ |
| | | ALTER TABLE `strategy_status` |
| | | ADD COLUMN `base_take_profit_per_grid` INT(11) DEFAULT 0 COMMENT '单格止盈张数(基础仓位止盈)' AFTER `tp_trigger_opposite_add_quantity`, |
| | | ADD COLUMN `base_take_profit_per_grid` VARCHAR(32) DEFAULT NULL COMMENT '单格止盈张数(基础仓位止盈,支持小数)' AFTER `tp_trigger_opposite_add_quantity`, |
| | | ADD COLUMN `base_take_profit_grid_count` INT(11) DEFAULT 0 COMMENT '止盈网格数量(基础仓位止盈)' AFTER `base_take_profit_per_grid`; |