Harden scheduler and stale breakout reentry

This commit is contained in:
whdwo
2026-06-15 18:52:42 +09:00
parent eac4ece01e
commit 901243348e
16 changed files with 181 additions and 61 deletions
+4 -1
View File
@@ -150,14 +150,17 @@ Highest-leverage fixes:
After /morning exits, run_morning.ps1 calls python scripts/start_bot.py.
08:30 Bot loads daily_context.json and builds the watch universe.
08:50 Bot calculates volatility breakout targets.
08:50 Bot calculates volatility breakout targets. If restarted after 08:50,
the bot recalculates targets immediately; open=0 is ignored.
09:00 Morning trading session starts.
09:00-15:05 StockBot_Watchdog checks bot liveness every 5 minutes.
11:00 New entries pause if midday_context.json has not loaded.
11:20 StockBot_Midday -> scripts/run_midday.ps1 -> /midday
Build data/midday_context.json; bot detects it and starts lunch controls.
14:00 New entries stop; exits continue.
14:50 Force exit all positions. This time is immutable.
15:10 Daily settlement and Discord summary.
Watchdog must not restart the bot at or after 15:10.
15:30 StockBot_Evening -> scripts/run_evening.ps1 -> /evening
Write daily report and proposal report when needed.
16:00 StockBot_Training -> scripts/run_training_pipeline.ps1