Files
Place-Order-Trading-Bot/start_dashboard.bat
T
cbazza c685bdf83f Add Dashboard Autostart Setup for Windows
- start_dashboard.bat: Manual start with console output
- start_dashboard_silent.bat: Silent background start
- install_dashboard_autostart.bat: One-click autostart installation
- uninstall_dashboard_autostart.bat: Remove autostart
- DASHBOARD_AUTOSTART_SETUP.md: Complete documentation

Features:
- Automatic startup on Windows login
- Opens browser at http://localhost:8501
- Silent background execution
- Easy install/uninstall
- Troubleshooting guide included
2025-12-23 11:02:35 +01:00

80 lines
1.9 KiB
Batchfile

@echo off
REM ==========================================
REM Trading Bot Dashboard - Autostart Script
REM ==========================================
echo.
echo ========================================
echo Trading Bot Dashboard Starter
echo ========================================
echo.
REM Wechsel ins Bot-Verzeichnis
cd /d "%~dp0"
echo [INFO] Working Directory: %CD%
echo.
REM Prüfe ob Python verfügbar ist
python --version >nul 2>&1
if errorlevel 1 (
echo [ERROR] Python nicht gefunden!
echo [ERROR] Bitte Python installieren oder PATH prüfen.
pause
exit /b 1
)
echo [OK] Python gefunden
echo.
REM Prüfe ob Streamlit installiert ist
python -c "import streamlit" >nul 2>&1
if errorlevel 1 (
echo [WARNUNG] Streamlit nicht installiert!
echo [INFO] Installiere Streamlit...
pip install streamlit plotly
if errorlevel 1 (
echo [ERROR] Installation fehlgeschlagen!
pause
exit /b 1
)
)
echo [OK] Streamlit verfügbar
echo.
REM Prüfe ob Dashboard-Datei existiert
if not exist "trading_dashboard.py" (
echo [ERROR] trading_dashboard.py nicht gefunden!
echo [ERROR] Bitte im richtigen Verzeichnis ausführen.
pause
exit /b 1
)
echo [OK] Dashboard-Datei gefunden
echo.
REM Prüfe ob Datenbank existiert
if not exist "trading_bot.db" (
echo [WARNUNG] trading_bot.db nicht gefunden!
echo [WARNUNG] Dashboard startet, aber keine Daten verfügbar.
echo.
)
echo ========================================
echo Starte Dashboard...
echo ========================================
echo.
echo URL: http://localhost:8501
echo.
echo [TIPP] Browser öffnet automatisch
echo [TIPP] Zum Beenden: STRG+C drücken
echo.
REM Starte Streamlit Dashboard
streamlit run trading_dashboard.py --server.port 8501 --server.headless false
REM Falls Streamlit beendet wird
echo.
echo [INFO] Dashboard wurde beendet
pause