' Script VBS pour lancer le bot sans aucune fenêtre CMD visible
' Double-cliquez sur ce fichier pour démarrer le système

Set WshShell = CreateObject("WScript.Shell")
strPath = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName)

' Lancer le bot de trading (sans fenêtre)
WshShell.Run """" & strPath & "\.venv\Scripts\pythonw.exe"" """ & strPath & "\trading_bot.py""", 0, False

' Attendre 3 secondes
WScript.Sleep 3000

' Lancer le dashboard API (sans fenêtre)
WshShell.Run """" & strPath & "\.venv\Scripts\pythonw.exe"" """ & strPath & "\dashboard_api_server.py""", 0, False

' Message de confirmation (optionnel - peut être supprimé)
MsgBox "Système démarré !" & vbCrLf & vbCrLf & "Dashboard: http://localhost:8889" & vbCrLf & "Logs: trading_bot.log", vbInformation, "Trading Bot IA"
