gogo2/start_app.bat
Dobromir Popov a78906a888 improvements
2025-04-01 18:30:34 +03:00

22 lines
775 B
Batchfile

@echo off
rem Start the real-time chart application with log monitoring
set LOG_FILE=realtime_%date:~10,4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.log
set LOG_FILE=%LOG_FILE: =0%
echo Starting application with log file: %LOG_FILE%
rem Start the application in one window
start "RealTime Trading Chart" cmd /k python train_rl_with_realtime.py --episodes 1 --no-train --visualize-only --log-file %LOG_FILE%
rem Wait for the log file to be created
timeout /t 3 > nul
rem Start log monitoring in another window (tail -f equivalent)
start "Log Monitor" cmd /k python read_logs.py --file %LOG_FILE% --follow
rem Open the dashboard in the browser
timeout /t 5 > nul
start http://localhost:8050/
echo Application started. Check the opened windows for details.