feat: Smart AI Trading Bot for XAUUSD with ML and SMC
- 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>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
"""Test new risk settings."""
|
||||
from src.smart_risk_manager import create_smart_risk_manager
|
||||
|
||||
# Test dengan modal $50
|
||||
print('=' * 50)
|
||||
print('PENGATURAN RISK MANAGEMENT BARU')
|
||||
print('=' * 50)
|
||||
manager = create_smart_risk_manager(50)
|
||||
|
||||
print()
|
||||
print('Dengan modal $50:')
|
||||
print(f' Daily Loss Limit (5%): ${manager.max_daily_loss_usd:.2f}')
|
||||
print(f' Total Loss Limit (10%): ${manager.max_total_loss_usd:.2f}')
|
||||
print(f' S/L Per Trade (1%): ${manager.max_loss_per_trade:.2f}')
|
||||
print()
|
||||
print(manager.get_risk_summary())
|
||||
Reference in New Issue
Block a user