improvements
This commit is contained in:
22
start_app.bat
Normal file
22
start_app.bat
Normal file
@@ -0,0 +1,22 @@
|
||||
@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.
|
||||
Reference in New Issue
Block a user