Implementation of Breakout Strategy and Adaptive Risk Management in an Expert Advisor with Optimized Bollinger Bands and RSI Parameters on MetaTrader 5
Main Article Content
Abstract
The development of automated trading systems in forex markets has increased the demand for adaptive strategies based on technical indicators. This study aims to develop and evaluate an Expert Advisor (EA) utilizing a breakout strategy integrated with Bollinger Bands and Relative Strength Index (RSI) indicators, as well as adaptive risk management, on the MetaTrader 5 platform. A Research and Development (R&D) approach using the Prototyping model was employed to iteratively design and refine the EA. The system was evaluated through three stages: backtesting, parameter optimization, and real-time testing on three major currency pairs—EUR/USD, GBP/USD, and USD/JPY. Parameter optimization using the Fast Genetic Based Algorithm led to improved performance across all pairs, with significant enhancements in drawdown reduction and profit factor. One-month real-time testing demonstrated that the EA maintained a profit factor above 1 and a drawdown below 1% for EUR/USD and GBP/USD. The findings indicate that integrating a breakout strategy with technical indicator optimization and adaptive risk management significantly enhances the effectiveness of automated trading systems. This research contributes to both academic literature and practical applications in the development of algorithmic trading systems based on technical indicators.
Article Details

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
References
Bappebti. (2024). Laporan tahunan perdagangan berjangka komoditi. https://bappebti.go.id
Busman, B., Nurhayati, N., Amali, F., & Muttaqin, Z. (2017). Penerapan big data pada forex trading menggunakan analisa statistik dengan breakout strategy. Pseudocode, 4(2), 137–143. https://doi.org/10.33369/pseudocode.4.2.137-143
Calvin. (2024). Analisis pengembangan Expert Advisor dengan indikator Stochastic dan Moving Average Convergence Divergence (MACD) dalam trading forex: studi kasus akun swap-free pada platform Metatrader 5 [Skripsi, Universitas Negeri Medan].
Josh. (2024, January 13). Closing positions with trailing-take-profit. Capitalise Help Center. https://support.capitalise.ai/en/articles/5757398-closing-positions-with-trailing-take-profit
Lo, A. W., Repin, D. V., & Steenbarger, B. N. (2005). Fear and greed in financial markets: A clinical study of day-traders. American Economic Review, 95(2), 352–359. https://doi.org/10.1257/000282805774670095
Lutey, M. (2022). Robust testing for Bollinger Band, Moving Average and Relative Strength Index. Journal of Finance Issues, 20(1), 27–46. https://doi.org/10.58886/jfi.v20i1.3218
Naibaho, M. L. T. S. (2024). Pengembangan expert advisor berbasis indikator moving average, relative strength index, dan Bollinger Bands dalam trading forex EUR/USD di MetaTrader 5 [Skripsi, Universitas Negeri Medan].
Nasution, M. A. (2024). Perancangan dan pengujian kinerja expert advisor berbasis indikator RSI, MA, dan optimasi lot pada 10 pair forex populer dengan akun swap-free. Jurnal Sains, Teknologi & Komputer, 1(2), 62–68. https://doi.org/10.56495/saintek.v1i2.760
Nasution, M. A. (2025). Pengujian Backtesting Expert Advisor Berbasis Donchian Channel pada 10 Pasangan Forex dengan Volume Perdagangan Tertinggi. Journal of Computers and Digital Business, 4(1), 10–15. https://doi.org/10.56427/jcbd.v4i1.609
Panjaitan, G. G. G., & Wikartika, I. (2023). Penerapan money management dan risk management pada trading forex. Jurnal Pendidikan Tambusai, 7(2), 12137–12141. https://doi.org/10.31004/jptam.v7i2.8319
Putri, R. N., Harsono, M., Primasari, N. S., & Khusnah, H. (2022). Return analisis teknikal moving average, Bollinger Band, dan relative strength index pada cryptocurrency. Jurnal Ilmiah Akuntansi dan Keuangan, 11(1), 21–30. https://doi.org/10.32639/jiak.v11i1.25
Saputra, O. (2024, November 19). Mengenal breakout, teknik penting dalam trading forex. Investing.Com. https://id.investing.com/analysis/mengenal-breakout-teknik-penting-dalam-trading-forex-200246915
Silitonga, B. E. P. (2024). Optimasi trading FOREX dengan expert advisor: Strategi RSI dan Bollinger Bands pada pasangan GBP/JPY menggunakan platform MetaTrader 5 [Skripsi, Universitas Negeri Medan].
Suryawan, I. K. D., & Bagiarta, I. G. N. N. (2017). Expert advisor dengan strategi Moving Average, RSI, dan Bollinger Band. Jurnal Sistem dan Informatika (JSI), 11(2), 1–9. https://jsi.stikom-bali.ac.id/index.php/jsi/article/view/106
Vezeris, D., Kyrgos, T., & Schinas, C. (2018). Take profit and stop loss trading strategies comparison in combination with an MACD trading system. Journal of Risk and Financial Management, 11(3), 56. https://doi.org/10.3390/jrfm11030056
Zuhriyah, D. A. (2024, February 28). 3 cara kerja stop-loss, position sizing, dan take-profit. Pluang. https://pluang.com/akademi/pelajari/manajemen-risiko/cara-kerja-stop-loss-position-sizing-take-profit