-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_analysis.bat
More file actions
36 lines (29 loc) · 825 Bytes
/
Copy pathrun_analysis.bat
File metadata and controls
36 lines (29 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@echo off
setlocal
cd /d "%~dp0"
title MT5 Smart Money Concepts Analysis
if not exist ".venv\Scripts\python.exe" (
echo.
echo ERROR: The project virtual environment was not found.
echo Expected: %~dp0.venv\Scripts\python.exe
pause
exit /b 1
)
set "PYTHONIOENCODING=utf-8"
set "SMC_CREDIT=0"
echo ========================================================
echo MARKET ANALYSIS - SMC INDICATORS
echo ========================================================
echo.
echo MetaTrader 5 must be open and logged in.
echo Choose the instrument and timeframe in this window.
echo.
".venv\Scripts\python.exe" -m gold_smc.launcher analysis %*
set "EXIT_CODE=%ERRORLEVEL%"
if not "%EXIT_CODE%"=="0" (
echo.
echo ERROR: Analysis stopped with exit code %EXIT_CODE%.
pause
)
endlocal
exit /b %EXIT_CODE%