#!/usr/bin/env bash # 稳妥增效一档:写入 global_strategy_config + Redis 缓存(与前端「保存配置」同路径) # # 变更内容(见 config/my_batch_steady_lift_tier1.json): # MIN_CHANGE_PERCENT 2% → 1% (24h 涨跌绝对值门槛) # MIN_SIGNAL_STRENGTH 8 → 7 # ENTRY_SYMBOL_COOLDOWN_SEC 1800 → 1200 # # 用法(在项目根目录): # chmod +x scripts/apply_steady_lift_tier1.sh # ./scripts/apply_steady_lift_tier1.sh # ./scripts/apply_steady_lift_tier1.sh --dry-run # set -euo pipefail ROOT="$(cd "$(dirname "$0")/.." && pwd)" cd "$ROOT" DRY_RUN=() if [[ "${1:-}" == "--dry-run" ]]; then DRY_RUN=(--dry-run) fi # 使用 apply_config_patch_only:只写本 JSON 中的键,不合并 apply_recommended_config 内置批量默认 exec python3 "$ROOT/scripts/apply_config_patch_only.py" \ --from "$ROOT/config/my_batch_steady_lift_tier1.json" \ --updated-by "steady_lift_tier1" \ "${DRY_RUN[@]}"