Add price caching to prevent repeated file reads and improve performance. Implement multi-path search for CSV files with fallback options. Add comprehensive logging for CSV load success/failure states. Update dashboard to display CSV loading status. Simplify scraper CSV output format and automate file transfer to terminal MQL5 Files directory.
25 lines
639 B
Batchfile
25 lines
639 B
Batchfile
@echo off
|
|
REM ==========================================
|
|
REM CME OI Scraper - Manual Run with Virtual Environment
|
|
REM ==========================================
|
|
|
|
REM Navigate to script directory
|
|
cd /d %~dp0
|
|
|
|
echo ==========================================
|
|
echo CME OI Scraper - Manual Run
|
|
echo ==========================================
|
|
|
|
REM Activate virtual environment
|
|
call venv\Scripts\activate.bat
|
|
|
|
REM Run Python scraper
|
|
python main.py
|
|
|
|
MOVE "oi_data.csv" "C:\Users\limitrack\AppData\Roaming\MetaQuotes\Terminal\53785E099C927DB68A545C249CDBCE06\MQL5\Files\"
|
|
|
|
|
|
echo.
|
|
echo Scraper completed. Check oi_data.csv for results.
|
|
timeout /t 5
|