feat: apply #28B smart breakeven + #31B H1 EMA20 filter, add backtests #26-#32
Live trading optimizations (cumulative: $2,807 net, 81.8% WR, Sharpe 3.97): - #28B: Smart breakeven locks profit at entry + 0.5x ATR instead of fixed $2 - #31B: H1 Price vs EMA20 filter — BUY only when H1 bullish, SELL only when bearish Backtests #26-#32 (7 scripts testing sell improvement, regime-aware entry, confluence scoring, dynamic RR, multi-TF H1, and ML exit optimizer). Winners: #28B (+$229), #31B (+$343). Failed: #26, #27, #29, #30, #32. Also includes: web dashboard redesign, Docker setup, startup scripts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
53d8cd26a2
commit
214b64945d
@@ -0,0 +1,91 @@
|
||||
@echo off
|
||||
REM XAUBot AI - Docker Start Script (Windows)
|
||||
|
||||
echo.
|
||||
echo Starting XAUBot AI Docker Services...
|
||||
echo.
|
||||
|
||||
REM Check if .env exists
|
||||
if not exist .env (
|
||||
echo WARNING: .env file not found!
|
||||
echo Creating .env from template...
|
||||
copy .env.docker.example .env
|
||||
echo.
|
||||
echo .env created. Please edit it with your MT5 credentials:
|
||||
echo - MT5_LOGIN
|
||||
echo - MT5_PASSWORD
|
||||
echo - MT5_SERVER
|
||||
echo - MT5_PATH
|
||||
echo.
|
||||
pause
|
||||
)
|
||||
|
||||
REM Check if Docker is running
|
||||
docker info >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo ERROR: Docker is not running!
|
||||
echo Please start Docker Desktop and try again.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo Docker is running
|
||||
echo.
|
||||
|
||||
REM Parse arguments
|
||||
set PROFILE_FLAG=
|
||||
if "%1"=="--admin" set PROFILE_FLAG=--profile admin
|
||||
if "%1"=="-a" set PROFILE_FLAG=--profile admin
|
||||
|
||||
if defined PROFILE_FLAG (
|
||||
echo Starting with pgAdmin admin profile...
|
||||
) else (
|
||||
echo Starting core services postgres, api, dashboard...
|
||||
echo Tip: Use 'docker-start.bat --admin' to include pgAdmin
|
||||
)
|
||||
|
||||
echo.
|
||||
echo Pulling latest base images...
|
||||
docker-compose pull
|
||||
|
||||
echo.
|
||||
echo Building services...
|
||||
docker-compose build
|
||||
|
||||
echo.
|
||||
echo Starting services...
|
||||
docker-compose %PROFILE_FLAG% up -d
|
||||
|
||||
echo.
|
||||
echo Waiting for services to be healthy...
|
||||
timeout /t 10 /nobreak >nul
|
||||
|
||||
echo.
|
||||
echo Checking service health...
|
||||
docker-compose ps
|
||||
|
||||
echo.
|
||||
echo ========================================
|
||||
echo Services started successfully!
|
||||
echo ========================================
|
||||
echo.
|
||||
echo Access Points:
|
||||
echo Dashboard: http://localhost:3000
|
||||
echo API: http://localhost:8000
|
||||
echo API Docs: http://localhost:8000/docs
|
||||
echo Database: localhost:5432
|
||||
|
||||
if defined PROFILE_FLAG (
|
||||
echo pgAdmin: http://localhost:5050
|
||||
)
|
||||
|
||||
echo.
|
||||
echo Useful Commands:
|
||||
echo View logs: docker-compose logs -f
|
||||
echo View API logs: docker-compose logs -f trading-api
|
||||
echo Stop services: docker-compose down
|
||||
echo Restart: docker-compose restart
|
||||
echo.
|
||||
echo Full documentation: DOCKER.md
|
||||
echo.
|
||||
pause
|
||||
Reference in New Issue
Block a user