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:
34
oi_scraper/setup_env.bat
Normal file
34
oi_scraper/setup_env.bat
Normal 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
|
||||
Reference in New Issue
Block a user