#!/bin/bash
# [2026-10-07] user: the 10-year score test -- premarket history 2016-10-03..2024-09-30 (resumable, stops in market hours),
# then the year-by-year evaluation. Started by cron after the close until done.
cd /var/www/screener/trade/reports/open_window
nice -n 5 python3 premarket_history.py 2016-11-25 2024-09-30 >> pm_history_old.log 2>&1
if grep -q PM_HISTORY_DONE pm_history_old.log && [ ! -f score_weights_10y.out ]; then
  nice -n 5 python3 score_weights_10y.py > score_weights_10y.out 2>&1
fi
