feat: regime_perf_daily双市场wrapper+sync脚本覆盖.sh硬链——策略温区表现每日17:15自动更新(hermes cron)
This commit is contained in:
Executable
+11
@@ -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"
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user