refactor(oi): improve data extraction and consolidate documentation

- Fix MQL5 API usage in EA to use correct CopyRates and POSITION_TYPE enums
- Refactor scraper data extraction to use drop_duplicates for unique strikes
- Consolidate Windows setup guide into main README
- Add virtual environment batch files for easier setup and execution
- Simplify run_scraper.bat to focus on core execution
- Normalize lot calculation to use SymbolInfo.LotsStep()
This commit is contained in:
Kunthawat Greethong
2026-01-06 20:18:12 +07:00
parent 2e8e07ed17
commit b7c0e68fa8
8 changed files with 386 additions and 895 deletions

34
oi_scraper/setup_env.bat Normal file
View File

@@ -0,0 +1,34 @@
@echo off
REM ==========================================
REM CME OI Scraper - Virtual Environment Setup
REM ==========================================
echo ==========================================
echo Setting up Python Virtual Environment
echo ==========================================
REM Navigate to script directory
cd /d %~dp0
REM Create virtual environment
echo Creating virtual environment...
py -3 -m venv venv
REM Activate virtual environment and install dependencies
echo Installing dependencies...
call venv\Scripts\activate.bat
pip install --upgrade pip
pip install -r requirements.txt
REM Install playwright browser
echo Installing Playwright browser...
python -m playwright install chromium
echo ==========================================
echo Setup Complete!
echo ==========================================
echo.
echo To run the scraper, use: run_with_venv.bat
echo.
pause