News (you were right it's relevant): recent_news_map() pulls fresh catalysts per ticker from the ingested RSS feeds; step_arm tags each armed candidate and BOOSTS catalyst-backed gappers up the rank (NEWS_RANK_BOOST) — a fresh PR/FDA/offering is why a small-cap runs, so it surfaces the hotter name earlier and higher. The board shows a 📰 marker + the headline. Feeds verified live (PR Newswire / Business Wire / GlobeNewswire) — pulling real catalysts (FDA approvals, offerings). Forward-tested only (news isn't OOS-backtestable). eod_replay.sh + crontab: replay at 16:05 (grow dataset), tune at 17:30. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
12 lines
605 B
Bash
12 lines
605 B
Bash
#!/usr/bin/env bash
|
|
# End-of-day whole-market replay: what today's logic would have done + grow the
|
|
# stored dataset for the tuner/verification. Schedule right after the close,
|
|
# before nightly_tune (which then tunes on the freshly-grown data).
|
|
# crontab -e -> 5 16 * * 1-5 /mnt/c/code/momentum/eod_replay.sh
|
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
VENV_PY="/home/philip/.venvs/momentum/bin/python"
|
|
cd "$ROOT" || exit 1
|
|
mkdir -p "$ROOT/data"
|
|
echo "=== eod_replay $(date) ===" >> "$ROOT/data/eod_replay.log"
|
|
PYTHONPATH="$ROOT" "$VENV_PY" eod_replay.py >> "$ROOT/data/eod_replay.log" 2>&1
|