@echo off
chcp 65001 >nul
title THOR ALPHA GOLD - Kiem Tra
echo.
echo =============================================
echo   THOR ALPHA GOLD v1.2.0
echo   AI-Powered XAUUSD Trading System
echo   by KAI-ALPHA.COM
echo =============================================
echo.
echo   Dang kiem tra he thong...
echo.
"%~dp0python\python.exe" -c "import requests; import numpy; import MetaTrader5; print('[OK] Tat ca thu vien da san sang!')"
if errorlevel 1 (
    echo [CANH BAO] Mot so thu vien chua co. Dang cai dat...
    "%~dp0python\python.exe" -m pip install "numpy<2.0" requests --no-warn-script-location -q
    "%~dp0python\python.exe" -m pip install MetaTrader5 --no-deps --no-warn-script-location -q
    echo [OK] Da cai dat xong!
)
echo.
echo   Double-click "THOR ALPHA GOLD.bat" de chay bot
echo.
pause
