Pengembangan Expert Advisor Berbasis ALMA Crossover dan Manajemen Risiko Adaptif untuk Perdagangan XAU/USD pada MetaTrader 5
DOI:
https://doi.org/10.35746/jtim.v9i1.1170Kata Kunci:
Expert Advisor, ALMA Crossover, Adaptive Risk Management, Algorithmic Trading, XAU/USDAbstrak
This study developed and evaluated an Expert Advisor (EA) for XAU/USD trading on MetaTrader 5 using Arnaud Legoux Moving Average (ALMA) Crossover and adaptive risk management. Developed in MQL5 with the Waterfall model, the EA generates signals from ALMA Open/Close crossovers (period 2, offset 0.85, sigma 5) on M15 and executes trades on M3. Risk controls include 1% risk-based position sizing, a 600-pip stop loss, fixed R-based protection stages, 50% partial closing at 1R, an ATR volatility filter, drawdown protection, and a cooldown after consecutive losses. Adaptation concerns account risk, volatility, drawdown, and loss sequences rather than changes to R thresholds. Evaluation comprised functional and integration tests, backtesting (1 May 2025–30 April 2026), and demo-account real-time testing (18–26 May 2026). Backtesting yielded USD 291.86 net profit (58.37%), a 1.08 profit factor, 40.95% win rate, and 23.96% maximum equity drawdown. Real-time testing returned USD 19.06 net profit after commission (3.81%), a 1.29 profit factor, 47.22% win rate, and 8.42% maximum equity drawdown. The EA generated net profits in both periods, but the brief demo test, historical market dependence, and lack of a matched baseline preclude claims of consistent profitability or superior risk management.
Unduhan
Referensi
S. Shrestha, C. Sanin, M. Hasan, S. R. V, and E. Szczerbicki, “A Hybrid ML Algorithm Trading Model combining Sentiment, Technical Indicator and Risk Management,” Procedia Computer Science, vol. 270, pp. 2858–2867, 2025. https://doi.org/10.1016/j.procs.2025.09.408.
B.-K. Kang, “Conditional Effectiveness of Volatility-Adaptive Exit Rules in Algorithmic Trading Systems: Evidence from the USD/JPY Market,” Journal of Risk and Financial Management, vol. 19, p. 554, 2026. https://doi.org/10.3390/jrfm19080554.
D. M. Hutabarat, H. Rahman, and D. E. P. Sirait, “Implementation of Expert Advisor Using MultiIndicator Bollinger Bands and RSI Optimization with Adaptive Money Management on XAU/USD Pair: Exness Broker Account Case Study in MetaTrader 5,” Jurnal Pengabdian Masyarakat dan Riset Pendidikan, vol. 4, pp. 1934–1939, July 2025. https://doi.org/10.31004/jerkin.v4i1.1806.
F. F. P. Lingga and H. Rahman, “Implementasi Expert Advisor Berbasis Bollinger Bands dan Relative Strength Index dengan Optimasi Dynamic Risk Management: Studi Kasus pada Pair XAU/USD,” IKRAITH-EKONOMIKA, vol. 8, no. 2, pp. 825–835, 2025. https://journals.upi-yai.ac.id/index.php/IKRAITH-EKONOMIKA/article/view/5014.
M. A. Nasution, “Perancangan dan Pengujian Kinerja Expert Advisor Berbasis Indikator RSI, MA, dan Optimasi Lot pada 10 Pair Forex Populer dengan Akun Swap-Free,” SAINTEK: Jurnal Sains, Teknologi & Komputer, vol. 1, no. 2, pp. 62–68, 2024. https://doi.org/10.56495/saintek.v1i2.760.
T. F. Fahros, H. Rahman, and D. E. P. Sirait, “Development of an Automated Trading Strategy Based on VWAP and RVI Indicators for USD/JPY Using MetaTrader 5 on Deriv Broker,” Economic: Journal Economic and Business, vol. 4, no. 3, pp. 543–549, 2025. https://doi.org/10.56495/ejeb.v4i3.1179.
W. Widiyaningsih, Erlina, and M. Lailasari, “Pembuatan Robot EA MART sebagai Expert Advisor dalam Pasar Forex Menggunakan MQL4,” Jurnal Nasional Teknologi Komputer, vol. 5, no. 3, pp. 223–235, 2025. https://doi.org/10.61306/jnastek.v5i3.196.
D. I. Mulyana and A. Riswan, “Implementasi Expert Advisor untuk Trading Otomatis Forex Menggunakan Indikator RSI dan MA dengan Metode Martingale di Platform MetaTrader 4,” Jurnal Indonesia: Manajemen Informatika dan Komunikasi, vol. 4, no. 3, pp. 1463–1471, 2023. https://doi.org/10.35870/jimik.v4i3.324.
A. N. Romadhoni, J. Kusanti, and A. Baradja, “Pengembangan Expert Advisor Berbasis Indikator Moving Average dan Relative Strength Index dalam Trading Kripto, journal = Jurnal Pustaka Robot Sister,” vol. 3, no. 2, pp. 36–43, 2025. https://doi.org/10.55382/jurnalpustakarobotsister.v3i2.1036.
F. Siaurence and H. Pangaribuan, “Perancangan Expert Advisor untuk Trading Otomatis Forex Menggunakan Indikator Stochastic dan MACD pada Platform MetaTrader 4,” Computer and Science Industrial Engineering (COMASIE), vol. 6, no. 1, pp. 42–48, 2022. https://ejournal.upbatam.ac.id/index.php/comasiejournal/article/view/4782.
A. M. R. Sirait, H. Rahman, and D. H. Syah, “Implementation of an Automated Trading System for XAG/USD Using Donchian Channel and Safe-F Risk Management on MetaTrader 5,” Economic: Journal Economic and Business, vol. 4, no. 3, pp. 574–580, 2025. https://doi.org/10.56495/ejeb.v4i3.1186.
L. D. P. Ginting, H. Rahman, and Z. Siregar, “Development of RSI-MA Based Expert Advisor with Money Management Optimization for GBP/USD Trading on Weltrade Swap-Free Account in MetaTrader 5,” Economic: Journal Economic and Business, vol. 4, no. 3, pp. 355–364, 2025. https://doi.org/10.56495/ejeb.v4i3.1156.
H. Arian, D. N. Mobarekeh, and L. Seco, “Backtest overfitting in the machine learning era: A comparison of out-of-sample testing methods in a synthetic controlled environment,” Knowledge-Based Systems, vol. 305, p. 112477, 2024. https://doi.org/10.1016/j.knosys.2024.112477.
R. Pardo, “Walk-Forward Analysis,” in The Evaluation and Optimization of Trading Strategies, pp. 237– 261, Wiley, 2 ed., 2012. https://doi.org/10.1002/9781119196969.ch11.
J. Solang, V. C. Poekoel, and S. R. U. A. Sompie, “Rancang Bangun Expert Advisor pada Perdagangan Mata Uang Asing di Platform MetaTrader 4,” 2022. https://repo.unsrat.ac.id/3979/.
M. M. Navarro, M. N. Young, Y. T. Prasetyo, and J. V. Taylar, “Stock market optimization amidst the COVID-19 pandemic: Technical analysis, K-means algorithm, and mean-variance model (TAKMV) approach,” Heliyon, vol. 9, no. 7, p. e17577, 2023. https://doi.org/10.1016/j.heliyon.2023.e17577.
J. Denbrock, “Arnaud Legoux Moving Average (ALMA) Guide.” LuxAlgo. https://www.luxalgo.com/blog/arnaud-legoux-moving-average-alma-guide/.
Marianne9, “Arnaud Legoux Moving Average Cross (ALMA).” TradingView. https://id.tradingview.com/script/PgVGNY0m-Arnaud-Legoux-Moving-Average-Cross-ALMA/.
Unduhan
Diterbitkan
Terbitan
Bagian
Lisensi
Hak Cipta (c) 2026 Muhammad Syafi’i Hidayatullah, Maulana Ashari, Mohammad Taufan Asri Zaen

Artikel ini berlisensiCreative Commons Attribution-ShareAlike 4.0 International License.






