#!/bin/sh
# [2026-10-28] start the 40-pattern scorecard after the close (1-CPU server): two halves, then the summary
cd /var/www/screener/trade/reports/ev3
while [ "$(date +%H%M)" -lt 1610 ]; do sleep 120; done
nice -n 10 python3 pattern_score.py 2024-10-01..2025-09-30 pscore_y1.jsonl > pscore_y1.log 2>&1 &
nice -n 10 python3 pattern_score.py 2025-10-01..2026-10-27 pscore_y2.jsonl > pscore_y2.log 2>&1 &
wait
nice -n 10 python3 pattern_score.py summary pscore_y1.jsonl pscore_y2.jsonl > pattern_score.log 2>&1
