Cara Install dan Run Expert Advisor di MT5 Deriv
📌 Yang Anda akan pelajari
- Cara install Expert Advisor (EA) di MetaTrader 5 – step by step
- Setup spesifik untuk akun Deriv MT5
- Mengelola permissions: AutoTrading, DLLs, allowed URLs
- Backtest EA di Strategy Tester dengan data historis
- Common errors dan cara fix
Daftar Isi
Apa itu Expert Advisor (EA)?
Expert Advisor (EA) adalah program otomatis yang dapat trade di MetaTrader 4 atau 5. Ditulis dalam MQL4 (MT4) atau MQL5 (MT5).
Yang dapat dilakukan EA:
- Otomatis eksekusi trades berdasarkan signal indicator
- Manage open positions dengan trailing stops
- Risk management berdasarkan account balance
- Send notifications via email/push notification
- Backtest dengan data historis di Strategy Tester
EA file types:
- .mq5: Source code MQL5 (editable)
- .ex5: Compiled binary (executable di MT5)
- .mq4 / .ex4: Same untuk MetaTrader 4
Untuk Deriv, gunakan MetaTrader 5 (.mq5/.ex5 files).
Setup MT5 untuk akun Deriv
Download MetaTrader 5
Pergi ke Deriv.com → Trader’s Hub → MT5. Atau langsung dari metatrader5.com.
Install MT5
Run installer, follow wizard. Available untuk Windows, Mac (via wrapper), Linux (via Wine), iOS, Android.
Create akun Deriv MT5
Di Deriv dashboard:
- MT5 Demo: Practice account dengan $10.000 virtual
- MT5 Synthetic: Real money untuk synthetic indices
- MT5 Financial: Real money untuk forex spot
Anda akan dapat: Login number, Password, Server name.
Login di MT5 desktop app
File → Login to Trade Account → Masukkan credentials Deriv.
Install EA – 3 metode
Method 1: Drag & Drop (Easiest)
Di MT5: File → Open Data Folder
Navigate ke MQL5 → Experts folder
Drag & drop file .ex5 ke folder Experts
Di MT5: Refresh di Navigator panel (kanan)
EA akan muncul di Navigator → Expert Advisors
Method 2: MQL5 Market (Built-in)
- Di MT5: Tools → Options → Community → Login MQL5
- Browse market: View → Market
- Pilih EA, klik Buy/Rent/Free
- EA otomatis di-install
Method 3: Compile sendiri
- Buka MT5 MetaEditor (F4)
- New → Expert Advisor
- Paste source code MQL5
- Compile (F7)
- EA akan muncul di Navigator setelah compile success
Configure EA permissions
EA tidak akan run tanpa permissions yang tepat:
Global settings (MT5):
- Tools → Options → Expert Advisors tab
- Centang: Allow algorithmic trading
- Centang: Allow DLL imports (jika EA butuh)
- Centang: Allow WebRequest for listed URL (jika EA pakai API external)
- Tambah URLs yang dibutuhkan EA
Per-EA settings:
- Drag EA ke chart
- Dialog akan muncul
- Tab Common: Centang Allow Algo Trading
- Tab Inputs: Configure parameters EA
- Tab Dependencies: Allow DLLs jika diminta
- Klik OK
AutoTrading button (toolbar):
Tombol “AutoTrading” di toolbar harus HIJAU. Jika merah, EA tidak akan execute trades.
💡 Verify EA running
Di pojok kanan atas chart, harus muncul:
- Nama EA
- Smiley face 😊 hijau (EA aktif)
- Smiley face 😞 kuning (EA loaded tapi AutoTrading off)
- X merah (error)
Backtest EA sebelum live
Strategy Tester (built-in MT5):
Buka Strategy Tester
View → Strategy Tester (Ctrl+R)
Configure
- Expert: Pilih EA Anda
- Symbol: EUR/USD atau V75 untuk Deriv
- Period: Last 6-12 months minimum
- Modeling: “Every tick based on real ticks”
- Deposit: $10.000 default
Run backtest
Klik Start. Progress bar akan show. Backtest 1 tahun mungkin 5-30 menit tergantung complexity.
Review hasil
Tabs:
- Settings: Konfigurasi yang digunakan
- Results: Setiap trade detail
- Graph: Equity curve
- Report: Statistik comprehensive
- Journal: Log dan errors
Key metrics untuk dilihat:
- Net Profit: Total P/L
- Profit Factor: Target >1.5
- Max Drawdown: Target <25%
- Win Rate: Tergantung strategy (35-65%)
- Average Trade: Harus positive
Run EA di live account
Checklist sebelum live:
- ✓ EA backtest minimum 1 tahun dengan profitable results
- ✓ Demo testing minimum 30 hari
- ✓ Risk per trade settings konservatif (1% maksimum)
- ✓ Stop loss universal di setiap trade
- ✓ Max concurrent positions limit
- ✓ Daily loss limit (e.g., 3%)
Live deployment:
Switch ke real account
File → Login to Trade Account → Use real Deriv MT5 credentials.
Start dengan modal kecil
Walaupun backtest bagus, real execution dapat berbeda. Mulai dengan 10-20% dari modal Anda.
Run EA dengan parameter konservatif
Lot size: 0.01-0.05 untuk start. Scale up setelah 1-2 bulan profitable.
Monitor harian (terutama minggu pertama)
Watch journal untuk errors. Verify trades execute correctly.
VPS untuk 24/7 operation:
Untuk EA yang trade Asian/London/NY sessions, Anda butuh komputer 24/7. VPS recommended:
- MT5 VPS hosting: $10-20/bulan (provided by MQL5)
- DigitalOcean: $6/bulan untuk Windows droplet
- Contabo: $5-10/bulan dengan specs better
Common errors dan solutions
| Error | Penyebab | Solution |
|---|---|---|
| “AutoTrading disabled” | Button AutoTrading merah | Klik AutoTrading button di toolbar (jadi hijau) |
| “Trade is disabled” | Account not allowing trading | Cek Deriv MT5 setting, verify funded account |
| “Invalid stops” | SL/TP terlalu dekat ke market | Increase distance (broker minimum stop level) |
| “Not enough money” | Margin tidak cukup | Reduce lot size atau deposit lebih |
| “Off quotes” | Slippage atau price gap | Increase max slippage in EA settings |
| EA tidak compile | MQL5 syntax error | Cek MetaEditor untuk error details |
| Smiley face 😞 kuning | AutoTrading global off | Tools → Options → Expert Advisors → Allow algo trading |
FAQ
Ya, di chart yang berbeda. Setiap EA dapat trade asset berbeda. Be careful dengan margin total dan correlation risk.
EA berbayar tidak otomatis lebih baik. Banyak EA “$500 lifetime” adalah scam. EA gratis di MQL5 Market sering cukup. Lebih baik: bayar untuk ChatGPT/Claude dan custom-build EA Anda sendiri.
EA MT5 universal – bekerja di any MT5 broker. Tetapi asset names berbeda. EA yang ditulis untuk EUR/USD bekerja di Exness, IC Markets, dan Deriv MT5 dengan same code.
