197 lines
7.1 KiB
Markdown
197 lines
7.1 KiB
Markdown
# 🤖 SmartBot - Advanced MT5 Trading System
|
|||
|
|
|
||
|
|
SmartBot adalah sistem trading otomatis yang canggih untuk MetaTrader 5 dengan fitur-fitur AI dan analisis multi-timeframe.
|
||
|
|
|
||
|
|
## 🚀 Fitur Utama
|
||
|
|
|
||
|
|
### 1. 📊 Multi-Timeframe Smart Dashboard
|
||
|
|
- **Scanner 4 Timeframe**: M1, M5, M15, H1
|
||
|
|
- **Trend Analysis**: EMA 8/13 crossover dengan indikator kekuatan
|
||
|
|
- **Color Coding**: Hijau untuk BUY, Merah untuk SELL
|
||
|
|
- **Strength Ranking**: Menampilkan kekuatan sinyal per timeframe
|
||
|
|
- **Volume Analysis**: Deteksi aktivitas market
|
||
|
|
|
||
|
|
### 2. 🧠 AI Trade Signal Validator
|
||
|
|
- **Multi-Indicator Confirmation**: EMA, RSI, Stochastic, ADX, Volume, ATR
|
||
|
|
- **Minimum 3 Confirmations**: Menghindari sinyal palsu
|
||
|
|
- **Signal Strength Scoring**: Sistem poin untuk menilai kekuatan sinyal
|
||
|
|
- **AI Integration**: Koneksi ke endpoint AI eksternal (opsional)
|
||
|
|
- **Volatility Filter**: Filter berdasarkan ATR dan spread
|
||
|
|
|
||
|
|
### 3. 📈 Auto Supply & Demand Detector
|
||
|
|
- **Automatic Zone Detection**: Mencari area supply/demand otomatis
|
||
|
|
- **Touch Counting**: Minimal 3 touches untuk validasi zona
|
||
|
|
- **Visual Markers**: Zona ditandai dengan warna dan label
|
||
|
|
- **Price Action Analysis**: Berdasarkan swing high/low
|
||
|
|
- **Zone Size Control**: Dapat disesuaikan per pair
|
||
|
|
|
||
|
|
### 4. 🎯 Smart Entry/Exit Planner
|
||
|
|
- **ATR-Based TP/SL**: Menggunakan Average True Range
|
||
|
|
- **Multi-TP System**: TP1, TP2, TP3 dengan rasio yang dapat disesuaikan
|
||
|
|
- **Risk-Based Lot**: Perhitungan lot berdasarkan % risiko
|
||
|
|
- **Adaptive Mode**: Scalping, Intraday, Swing dengan setting berbeda
|
||
|
|
- **Trailing Stop**: Trailing otomatis dengan lock profit
|
||
|
|
|
||
|
|
### 5. 📰 News Impact Filter
|
||
|
|
- **Economic Calendar Integration**: Filter berdasarkan news berdampak tinggi
|
||
|
|
- **Time-Based Pause**: Pause trading sebelum dan sesudah news
|
||
|
|
- **Configurable Events**: NFP, CPI, GDP, Interest Rate, Employment
|
||
|
|
- **Manual Override**: Dapat diset manual untuk news tertentu
|
||
|
|
|
||
|
|
### 6. 📐 Auto Trendline Recognition
|
||
|
|
- **Automatic Drawing**: Trendline digambar otomatis
|
||
|
|
- **Pattern Detection**: Triangle, Head & Shoulders, Flag patterns
|
||
|
|
- **Breakout Alerts**: Alert saat breakout valid
|
||
|
|
- **Touch Validation**: Minimal 2 touches untuk validasi
|
||
|
|
|
||
|
|
### 7. 🌍 Session & Volume Heatmap
|
||
|
|
- **Session Detection**: Asia, London, New York sessions
|
||
|
|
- **Volume Analysis**: Heatmap aktivitas market
|
||
|
|
- **Session Filter**: Trading hanya pada sesi yang aktif
|
||
|
|
- **Time-Based Rules**: Jam trading yang dapat disesuaikan
|
||
|
|
|
||
|
|
### 8. 📝 Trade Journal Auto-Logger
|
||
|
|
- **Automatic Logging**: Setiap trade otomatis disimpan
|
||
|
|
- **CSV Export**: Format yang kompatibel dengan Excel
|
||
|
|
- **Detailed Records**: Pair, lot, TP/SL, alasan entry, hasil
|
||
|
|
- **Performance Tracking**: Analisis performa harian/mingguan
|
||
|
|
|
||
|
|
### 9. ⚡ Adaptive Trading Modes
|
||
|
|
- **Scalping Mode**: Entry cepat, target kecil, spread filter ketat
|
||
|
|
- **Intraday Mode**: Balance antara scalping dan swing
|
||
|
|
- **Swing Mode**: TP lebih lebar, fokus tren besar
|
||
|
|
- **Dynamic Adjustment**: Setting otomatis berdasarkan mode
|
||
|
|
|
||
|
|
### 10. 🤖 AI Suggestion Mode
|
||
|
|
- **External AI Integration**: Koneksi ke model AI eksternal
|
||
|
|
- **Signal Validation**: AI memvalidasi sinyal trading
|
||
|
|
- **Market Analysis**: Penjelasan kondisi market
|
||
|
|
- **TP/SL Optimization**: Saran TP/SL yang optimal
|
||
|
|
|
||
|
|
## ⚙️ Konfigurasi
|
||
|
|
|
||
|
|
### Mode Trading
|
||
|
|
```mql5
|
||
|
|
enum ENUM_Mode { MODE_SCALPING=0, MODE_INTRADAY=1, MODE_SWING=2 };
|
||
|
|
```
|
||
|
|
|
||
|
|
### Signal Validation
|
||
|
|
- **EMA Fast/Slow**: 8/13 (default)
|
||
|
|
- **RSI Period**: 14 dengan overbought/oversold 70/30
|
||
|
|
- **ADX Minimum**: 25 untuk trend strength
|
||
|
|
- **Stochastic**: 14,3,3 dengan filter 20/80
|
||
|
|
- **Minimum Confirmations**: 3 indikator harus konfirmasi
|
||
|
|
|
||
|
|
### Supply & Demand
|
||
|
|
- **Lookback Period**: 100 bars
|
||
|
|
- **Minimum Touches**: 3 touches untuk validasi
|
||
|
|
- **Zone Size**: 0.0010 (dapat disesuaikan)
|
||
|
|
- **Colors**: Merah untuk Supply, Hijau untuk Demand
|
||
|
|
|
||
|
|
### Smart TP/SL
|
||
|
|
- **ATR Multiplier**: SL 1.5x, TP 2.0x ATR
|
||
|
|
- **Multi-TP Ratios**: 50%, 30%, 20%
|
||
|
|
- **Risk Management**: 1% per trade (default)
|
||
|
|
|
||
|
|
## 📊 Dashboard Features
|
||
|
|
|
||
|
|
### Header Information
|
||
|
|
- Pair, Timeframe, Spread, ATR
|
||
|
|
- Trading Mode, AI Status, Session
|
||
|
|
- Real-time updates
|
||
|
|
|
||
|
|
### Multi-Timeframe Scanner
|
||
|
|
```
|
||
|
|
TF Trend EMA8/13 RSI ADX Stoch Vol Strength
|
||
|
|
M1 BUY ✅ 65 28 Neutral Med 85
|
||
|
|
M5 SELL ✅ 72 35 Overbought High 90
|
||
|
|
M15 FLAT - 50 20 Neutral Low 45
|
||
|
|
H1 BUY ✅ 58 42 Neutral Med 75
|
||
|
|
```
|
||
|
|
|
||
|
|
### Signal Display
|
||
|
|
- Signal Type (BUY/SELL)
|
||
|
|
- Signal Strength (0-100)
|
||
|
|
- Confirmation Count
|
||
|
|
- Detailed Reason
|
||
|
|
|
||
|
|
### Risk Meter
|
||
|
|
- Equity, Balance, Floating P/L
|
||
|
|
- Risk per trade percentage
|
||
|
|
- Account status
|
||
|
|
|
||
|
|
## 🔧 Setup Instructions
|
||
|
|
|
||
|
|
1. **Compile EA**: Pastikan semua dependencies terinstall
|
||
|
|
2. **Configure Inputs**: Sesuaikan parameter sesuai kebutuhan
|
||
|
|
3. **Test Mode**: Jalankan dengan AutoTrade = false terlebih dahulu
|
||
|
|
4. **AI Setup** (Opsional): Konfigurasi endpoint AI jika diperlukan
|
||
|
|
5. **News Calendar**: Set waktu news penting
|
||
|
|
6. **Session Times**: Sesuaikan jam trading
|
||
|
|
|
||
|
|
## 📈 Performance Monitoring
|
||
|
|
|
||
|
|
### Trade Journal Fields
|
||
|
|
- Open Time, Pair, Type (BUY/SELL)
|
||
|
|
- Lot Size, Open Price, SL, TP
|
||
|
|
- Reason for Entry, Signal Strength
|
||
|
|
- Close Time, Close Price, Profit/Loss
|
||
|
|
- Additional Notes
|
||
|
|
|
||
|
|
### Export Options
|
||
|
|
- CSV format untuk Excel
|
||
|
|
- Google Sheets integration
|
||
|
|
- Performance analytics
|
||
|
|
- Risk analysis
|
||
|
|
|
||
|
|
## 🛡️ Safety Features
|
||
|
|
|
||
|
|
- **Trading OFF by Default**: Harus diaktifkan manual
|
||
|
|
- **Spread Filter**: Maksimal 400 points
|
||
|
|
- **News Pause**: Otomatis pause saat news
|
||
|
|
- **Session Filter**: Trading hanya pada sesi aktif
|
||
|
|
- **Position Limits**: Maksimal 1 posisi per arah
|
||
|
|
- **Risk Management**: 1% risiko per trade
|
||
|
|
|
||
|
|
## 🥇 XAUUSD (Gold) Optimization
|
||
|
|
|
||
|
|
SmartBot telah dioptimalkan khusus untuk trading XAUUSD dengan setting yang disesuaikan untuk karakteristik gold:
|
||
|
|
|
||
|
|
### **XAUUSD Optimized Settings**
|
||
|
|
- **Mode**: Swing trading untuk pergerakan besar
|
||
|
|
- **Risk Management**: 0.8% risk per trade (konservatif)
|
||
|
|
- **Spread Filter**: 800 points (longgar untuk gold)
|
||
|
|
- **EMA**: 8/21 untuk trend yang lebih jelas
|
||
|
|
- **ADX**: Minimum 20 (lebih rendah untuk ranging)
|
||
|
|
- **Supply/Demand**: Zone size 50 cents, 4 touches minimum
|
||
|
|
- **TP/SL**: 2.0x/3.0x ATR untuk volatilitas tinggi
|
||
|
|
- **Sessions**: London & NY only (skip Asia)
|
||
|
|
|
||
|
|
### **XAUUSD Files**
|
||
|
|
- `XAUUSD_Optimized.mq5` - Konfigurasi lengkap untuk gold
|
||
|
|
- `XAUUSD_TRADING_GUIDE.md` - Panduan trading gold lengkap
|
||
|
|
- `XAUUSD_QUICK_REFERENCE.md` - Quick reference card
|
||
|
|
|
||
|
|
### **Key Features untuk Gold**
|
||
|
|
- **News Sensitivity**: Pause 30-45 menit untuk news
|
||
|
|
- **Volatility Adaptation**: ATR multipliers disesuaikan
|
||
|
|
- **Session Filtering**: Fokus pada London & NY sessions
|
||
|
|
- **Risk Management**: Konservatif untuk volatilitas tinggi
|
||
|
|
|
||
|
|
## 🔮 Future Enhancements
|
||
|
|
|
||
|
|
- **Machine Learning Integration**: Model AI yang lebih canggih
|
||
|
|
- **Social Trading**: Koneksi ke platform social trading
|
||
|
|
- **Mobile Alerts**: Notifikasi via mobile app
|
||
|
|
- **Advanced Patterns**: Deteksi pola chart yang lebih kompleks
|
||
|
|
- **Portfolio Management**: Multi-pair optimization
|
||
|
|
- **Commodity Trading**: Optimasi untuk oil, silver, platinum
|
||
|
|
|
||
|
|
## 📞 Support
|
||
|
|
|
||
|
|
Untuk pertanyaan dan dukungan teknis, silakan hubungi developer atau buat issue di repository.
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
**Disclaimer**: Trading forex memiliki risiko tinggi. Pastikan untuk memahami semua risiko sebelum menggunakan EA ini. Hasil masa lalu tidak menjamin hasil masa depan.
|