auto_trade_sys/scripts/apply_steady_lift_tier1.sh
薇薇安 5b0aac4e9d 1
2026-05-05 22:32:53 +08:00

28 lines
963 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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[@]}"