-- 与盈利期对齐:RSI 关闭反向 + 止盈/止损封顶(2026-02-15) -- 【重要】只更新【全局配置】表 global_strategy_config(无 account_id,策略只读此表)。 -- 不修改 trading_config(个人/账号配置);个人用不到,请用本脚本或前端「全局配置」页,不要改个人配置。 INSERT INTO `global_strategy_config` (`config_key`, `config_value`, `config_type`, `category`, `description`) VALUES ('RSI_EXTREME_REVERSE_ENABLED', 'false', 'boolean', 'strategy', '关闭RSI极限反转,与盈利期一致'), ('RSI_EXTREME_REVERSE_ONLY_NEUTRAL_4H', 'true', 'boolean', 'strategy', '若开启反向仅允许4H中性'), ('USE_MARGIN_CAP_FOR_TP', 'true', 'boolean', 'risk', '止盈按保证金封顶,避免过远'), ('USE_MARGIN_CAP_FOR_SL', 'true', 'boolean', 'risk', '止损按保证金封顶,避免扛单') ON DUPLICATE KEY UPDATE `config_value` = VALUES(`config_value`), `config_type` = VALUES(`config_type`), `category` = VALUES(`category`), `description` = VALUES(`description`), `updated_at` = CURRENT_TIMESTAMP;