diff --git a/deploy/profile-scripts/regime_perf_daily.sh b/deploy/profile-scripts/regime_perf_daily.sh new file mode 100755 index 00000000..e13585d8 --- /dev/null +++ b/deploy/profile-scripts/regime_perf_daily.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# regime_perf_daily.sh — 策略温区表现每日更新(A股+港股双市场) +# 2026-08-15 问题2:策略数据每日自动更新。hermes cron 只接受单脚本,双市场用本 wrapper。 +# 顺序:period_rollup(17:05 派生周期行)→ 本脚本(17:15 温区表现) +set -u +cd /home/hmo/MoFin/deploy/profile-scripts +echo "[regime_perf_daily] $(date '+%F %T') market=a" +python3 regime_perf.py --market=a +echo "[regime_perf_daily] $(date '+%F %T') market=hk" +python3 regime_perf.py --market=hk +echo "[regime_perf_daily] $(date '+%F %T') done" diff --git a/deploy/profile-scripts/sync_profile_scripts.sh b/deploy/profile-scripts/sync_profile_scripts.sh index 7e2079a4..5c89d23b 100644 --- a/deploy/profile-scripts/sync_profile_scripts.sh +++ b/deploy/profile-scripts/sync_profile_scripts.sh @@ -5,7 +5,8 @@ set -e SRC="/home/hmo/MoFin/deploy/profile-scripts" DST="/home/hmo/.hermes/profiles/position-analyst/scripts" count=0 -for f in "$SRC"/*.py; do +for f in "$SRC"/*.py "$SRC"/*.sh; do + [ -e "$f" ] || continue name=$(basename "$f") ln -f "$f" "$DST/$name" count=$((count+1))