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:
GifariKemal
2026-02-08 10:33:24 +07:00
co-authored by Claude Opus 4.6
parent 53d8cd26a2
commit 214b64945d
64 changed files with 11073 additions and 929 deletions
+52
View File
@@ -0,0 +1,52 @@
@echo off
REM Start API and Dashboard in separate windows
echo.
echo ========================================
echo XAUBot AI - Starting All Services
echo ========================================
echo.
cd "%~dp0"
REM Check database
echo [1/3] Checking database...
docker ps --filter "name=trading_bot_db" --format "{{.Names}}: {{.Status}}" 2>nul
if errorlevel 1 (
echo.
echo WARNING: Database not running!
echo Please start with: docker-compose up -d postgres
echo.
pause
exit /b 1
)
echo.
echo [2/3] Starting API...
start "Trading API" cmd /k start-api.bat
echo Waiting for API to start...
timeout /t 5 /nobreak >nul
echo.
echo [3/3] Starting Dashboard...
start "Web Dashboard" cmd /k start-dashboard.bat
echo.
echo ========================================
echo All Services Started!
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
echo.
echo Two windows will open:
echo 1. Trading API (FastAPI)
echo 2. Web Dashboard (Next.js)
echo.
echo Close this window when done.
echo.
pause