@echo off
chcp 65001 >nul
title THOR ALPHA GOLD v1.2.0 - AI Trading System

:loop
"%~dp0python\python.exe" "%~dp0bot_pro.py"
if %errorlevel% == 42 (
    echo.
    echo   [UPDATE] Bot da cap nhat! Dang khoi dong lai...
    echo.
    timeout /t 3 /nobreak >nul
    goto loop
)
if errorlevel 1 (
    echo.
    echo   [LOI] Bot gap loi! Thu chay "KIEM TRA.bat" truoc.
)
pause
