#!/bin/bash
cd /var/www/screener/trade/reports/open_window
for v in J A H; do nice -n 10 python3 bar_backtest.py $v --scanner current --shadow 2>&1 | tail -1; done
cd /var/www/screener/trade
J="--max-positions 5 --giveback-room-exit --giveback-room-min-cents 15 --giveback-room-ratio 0.25 --entry-slope-bars 0 --setup-plan --plan-context --plan-real-targets --min-stop-style k --min-stop-k 0.25 --resistance-stall-exit --max-ext-open --plan-min-rr 2.0 --shadow-log /tmp/claude-0/-var-www-screener-trade/5844eef7-c648-46de-a03c-fe0b1434b640/scratchpad/shadow_tick"
for d in 2026-09-18 2026-09-21 2026-09-23; do nice -n 10 python3 simulate.py --date $d $J > /tmp/claude-0/-var-www-screener-trade/5844eef7-c648-46de-a03c-fe0b1434b640/scratchpad/shadowJ_$d.out 2>&1; echo "tick J $d $(grep 'total:' /tmp/claude-0/-var-www-screener-trade/5844eef7-c648-46de-a03c-fe0b1434b640/scratchpad/shadowJ_$d.out)"; done
nice -n 10 python3 simulate.py --date 2026-09-24 $J --watch-windows /tmp/claude-0/-var-www-screener-trade/5844eef7-c648-46de-a03c-fe0b1434b640/scratchpad/watch_0924.json > /tmp/claude-0/-var-www-screener-trade/5844eef7-c648-46de-a03c-fe0b1434b640/scratchpad/shadowJ_2026-09-24.out 2>&1; echo "tick J 2026-09-24 $(grep 'total:' /tmp/claude-0/-var-www-screener-trade/5844eef7-c648-46de-a03c-fe0b1434b640/scratchpad/shadowJ_2026-09-24.out)"
nice -n 10 python3 simulate.py --date 2026-09-25 $J --watch-windows /tmp/claude-0/-var-www-screener-trade/5844eef7-c648-46de-a03c-fe0b1434b640/scratchpad/watch_0925.json > /tmp/claude-0/-var-www-screener-trade/5844eef7-c648-46de-a03c-fe0b1434b640/scratchpad/shadowJ_2026-09-25.out 2>&1; echo "tick J 2026-09-25 $(grep 'total:' /tmp/claude-0/-var-www-screener-trade/5844eef7-c648-46de-a03c-fe0b1434b640/scratchpad/shadowJ_2026-09-25.out)"
echo SHADOW_DONE
