7af9183af3
- XGBoost ML model with 37 features for market direction prediction - Smart Money Concepts (SMC): Order Blocks, FVG, BOS, CHoCH - HMM market regime detection (trending/ranging/volatile) - ATR-based stop loss with 1.5 ATR minimum distance - Broker-level SL protection with fallback - Time-based exit (max 6 hours per trade) - Session-aware trading optimized for London/NY overlap - Auto-retraining based on market conditions - Telegram notifications and web dashboard - Backtest results: 63.9% win rate, 2.64 profit factor, 4.83 Sharpe Backtest period: Jan 2025 - Feb 2026, 654 trades, $4,189 net P/L Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
27 lines
492 B
Bash
27 lines
492 B
Bash
# MetaTrader 5 Configuration
|
|
MT5_LOGIN=12345678
|
|
MT5_PASSWORD=your_password_here
|
|
MT5_SERVER=YourBroker-Server
|
|
MT5_PATH=C:\Program Files\MetaTrader 5\terminal64.exe
|
|
|
|
# Trading Configuration
|
|
SYMBOL=XAUUSD
|
|
CAPITAL=5000
|
|
CAPITAL_MODE=small
|
|
|
|
# Risk Management
|
|
MAX_DAILY_LOSS_PERCENT=3.0
|
|
MAX_POSITION_SIZE=0.5
|
|
|
|
# AI Model
|
|
ML_MODEL_PATH=models/xgboost_model.json
|
|
AI_CONFIDENCE_THRESHOLD=0.65
|
|
|
|
# Regime Detection
|
|
HMM_LOOKBACK=500
|
|
HMM_N_REGIMES=3
|
|
|
|
# Logging
|
|
LOG_LEVEL=INFO
|
|
LOG_FILE=logs/trading_bot.log
|