#!/bin/bash
# Restore setup J (the rules the trade bot ran on 2026-09-28). Run only while the bot is stopped.
cd /var/www/screener/trade
for f in config.json monitor.py smart_engine.py setup_analyzer.py exit.py exit_giveback_room.py exit_resistance_stall.py reentry.py scanner.py universe.py volatility.py stream.py entry_rules.py position_manager.py market_time.py indicators.py; do
  cp -p backups/setupJ_2026-09-28/$f $f
done
echo "setup J restored"
