Development of an Automated Trading Strategy Based on VWAP and RVI Indicators for USD/JPY Using MetaTrader 5 on Deriv Broker

Main Article Content

Teguh Fachri Fahros
Haikal Rahman
Dita Eka Pertiwi Sirait

Abstract

This study aims to develop and evaluate an automated trading strategy based on an Expert Advisor (EA) integrating the Volume Weighted Average Price (VWAP) and Relative Vigor Index (RVI) indicators for the USD/JPY currency pair. The EA was developed using the MQL5 programming language on the MetaTrader 5 platform and tested through a Research and Development (R&D) approach with a prototyping model. Testing was conducted under two timeframe scenarios (H1 and H4), including backtesting using historical data from 2021 to 2024, and real-time testing from April 22 to May 22, 2025. The backtesting results indicated positive performance with a favorable profit factor, Sharpe ratio, and win ratio, reflecting system stability and profit potential. However, real-time testing revealed decreased profitability due to higher market volatility and unpredictability. An independent t-test showed a significant difference in the balance variable, while profit and total deal trades were statistically insignificant. The findings suggest that combining VWAP and RVI has potential for automated trading systems, but further parameter optimization and the integration of technical filters are required to enhance robustness under real market conditions.

Article Details

How to Cite
Fahros, T. F., Rahman, H., & Sirait, D. E. P. (2025). 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, 4(3), 543–549. https://doi.org/10.56495/ejeb.v4i3.1179
Section
Articles

References

Ali, J. (2023, November 21). What are the most popular metrics for trading performance? PineConnector. https://www.pineconnector.com/blogs/pico-blog/what-are-the-most-popular-metrics-for-trading-performance

Alqodri, F., Lestari, S., & Wardani, N. E. (2015). Teknologi trading berbasis expert advisor (EA) pada pasar valuta asing dengan teknik kalender ekonomi. Semnasteknomedia Online, 3(1), 5–21.

Anindyo, B. (2023, May 24). Lebih unggul mana, Metatrader 4 atau Metatrader 5? SEPUTARFOREX.com. https://www.seputarforex.net/artikel/lebih-unggul-mana-metatrader-4-atau-metatrader-5-299356-31

Aronson, D. (2006). Evidence-based technical analysis: Applying the scientific method and statistical inference to trading signals. Wiley.

Aulia, A., Priyatna, B., Hananto, A., Hananto, A. L., & Tukino, T. (2023). Perancangan EA (expert advisor) untuk trading forex dengan bahasa MQL4. Jurnal Cahaya Mandalika, 4(2), 403–410.

Bacon, C. R. (2023). Practical portfolio performance measurement and attribution. John Wiley & Sons.

Bailey, D. H., Borwein, J. M., López de Prado, M., & Zhu, Q. J. (2014). Pseudo-mathematics and financial charlatanism: The effects of backtest overfitting on out-of-sample performance. Notices of the American Mathematical Society, 61(5), 458–471.

Bank for International Settlements. (2022). OTC foreign exchange turnover in April 2022. https://www.bis.org/statistics/rpfx22_fx.htm

Beltran, H., Durré, A., Giot, P., & Engle, R. (2005). Volatility regimes and the provision of liquidity in order book markets: Winner of the 2005 FESE Joseph de la Vega Prize. SSRN Electronic Journal. https://doi.org/10.2139/ssrn.686482

Bialkowski, J., Darolles, S., & Le Fol, G. (2008). Improving VWAP strategies: A dynamic volume approach. Journal of Banking & Finance, 32(9), 1709–1722.

Chan, E. (2013). Algorithmic trading: Winning strategies and their rationale. John Wiley & Sons.

Data Historis USD JPY - Investing.com. (n.d.). Investing.com Indonesia. Retrieved March 11, 2025, from https://id.investing.com/currencies/usd-jpy-historical-data

Ehlers, J. F. (2002). Relative Vigor Index (RVI). Technical Analysis of Stocks and Commodities, 20(1), 16–21.

Eiteman, D. K., Stonehill, A. I., & Moffett, M. H. (2019). Multinational business finance (Global ed.). Pearson Education.

Eldeen, A. N. (2023, November 25). Evaluating trading strategy performance metrics: A comprehensive overview. https://www.mql5.com/en/blogs/post/755078

Elder, A. (1993). Trading for a living: Psychology, trading tactics, money management. John Wiley & Sons.

Fernando, J. (2003, November 23). Volume-weighted average price (VWAP): Definition and calculation. Investopedia. https://www.investopedia.com/terms/v/vwap.asp

Fernando, J. (2003, November 24). Moving average (MA): Purpose, uses, formula, and examples. Investopedia. https://www.investopedia.com/terms/m/movingaverage.asp

Fernando, J. (2003, November 25). Relative strength index (RSI) indicator explained with formula. Investopedia. https://www.investopedia.com/terms/r/rsi.asp

Firdaus, L. P., & Ahmad, D. (2024). Prediksi volume weighted average price saham INDF menggunakan algoritma genetika. Jurnal Matematika, 14(1), 22–36. https://doi.org/10.24843/JMAT.2024.v14.i01.p169

Ganti, A. (2008, June 17). What is the USD/JPY currency pair? Investopedia. https://www.investopedia.com/terms/forex/u/usd-jpy-us-dollar-japanese-yen-currency-pair.asp

Ghanem, S., Harasheh, M., Sbaih, Q., & Ajmal, T. K. (2024). The predictability of technical analysis in foreign exchange market using forward return: Evidence from developed and emerging currencies. Cogent Business & Management, 11(1), 2428781.

Giovanny, A. (2023, November 11). Memahami indikator trading crypto. Coinvestasi. https://coinvestasi.com/belajar/apa-itu-indikator

Gorbatenko, E. (2022, February 17). Trading performance metrics. FBS Online Forex Broker. https://fbs.eu/en/analytics/tips/trading-performance-metrics-29196

Groette, O. (2025, February 24). Profit factor in trading: Definition, calculator, video and formula. Quantified Strategies. https://www.quantifiedstrategies.com/profit-factor/

Hardiyanti, W. (2021). Risk value analysis of gold futures trading investment using fundamental analysis, technical analysis, and value at risk. Journal of Research in Mathematics Trends and Technology, 3(1), 8–19.

Hartono, H. (2022). Analisis teknikal pergerakan harga saham pada perusahaan pertambangan yang terdaftar di Indeks LQ45 menggunakan MA50 dan RSI pada tahun 2019–2022. Sebatik, 26(2), 465–471.

Hayes, A. (2007, May 15). Relative vigor index (RVI): Definition, formula, and uses in trading. Investopedia. https://www.investopedia.com/terms/r/relative_vigor_index.asp

Hayes, A. (2007, May 30). Scenario analysis: How it works and examples. Investopedia. https://www.investopedia.com/terms/s/scenario_analysis.asp

Imano, I. T., & Budiyanto, N. E. (2019). Sistem trading forex otomatis menggunakan indikator RSI dan MA dengan metode martingale di MetaTrader 4. Jurnal Informatika dan Rekayasa Perangkat Lunak, 1(1), 1–10.

Ismail, M., Husin, Z. B., Keong, T. W., & Yasruddin, M. L. B. (2022). Prediction of expert advisor trading system using an artificial intelligence system. In 2022 IEEE IAS Global Conference on Emerging Technologies (GlobConET).

Iswandiari, Y. (2021). Indikator forex: Pengertian, fungsi, dan jenis indikator. Global Investa Capital. https://www.gicindonesia.com/jurnal/artikel/apa-itu-indikator-forex

Kaufman, P. J. (2013). Trading systems and methods (Vol. 591). John Wiley & Sons.

Kharisma, D. (2020, November 6). Sharpe ratio. Pluang. https://pluang.com/blog/glossary/sharpe-ratio-adalah

Kondratieva, T. N., Razveeva, I. F., & Muntyan, E. R. (2022). Implementation of a trading advisor for the MetaTrader 5 platform. IZVESTIYA SFedU Engineering Sciences, 2022(4), 157–169.

Kurniasari, D. (2021). Analisis statistik adalah: Pahami pengertian dan jenis data yang digunakan. DQLab. https://dqlab.id/analis

Lestari, R. I., & Arifin, Z. (2022). Godaan praktik binary option berkedok investasi dan trading. Jurnal Ius Constituendum, 7(1), 19–31.

Levi, M. D. (2009). International finance. Routledge.

Li, G., & Zhu, J. (2014, June). Research on the effectiveness of technical indicators with the volume. In 2014 International Conference on Education, Management and Computing Technology (ICEMCT-14) (pp. 436–439). Atlantis Press.

Lioudis, N. (2024, October 7). Forex leverage: A double-edged sword. Investopedia. https://www.investopedia.com/articles/forex/07/forex_leverage.asp

Madura, J. (2018). Financial markets and institutions (12th ed.). Cengage Learning.

Mafula, L. C., & Aisjah, S. (2016). Analisis teknikal sebagai dasar pengambilan keputusan dalam trading saham pada Bursa Efek Indonesia (studi pada Indeks IDX30 periode Agustus 2014 – Januari 2015). Jurnal Ilmiah Mahasiswa FEB, 3(2).

MetaQuotes Software Corp. (n.d.). MetaTrader 5 help documentation. https://www.metatrader5.com/en/terminal/help

MetaQuotes. (2020). MQL5 programming language. https://www.metaquotes.net/en/metatrader5/algorithmic-trading/mql5

Mishkin, F. S., & Eakins, S. (2018). Financial markets and institutions: Global edition (9th ed.). Pearson.

Murphy, J. J. (1999). Technical analysis of the financial markets: A comprehensive guide to trading methods and applications. Penguin Publishing Group.

Murphy, J. J., & Murphy, J. J. (1999). Technical analysis of the financial markets: A comprehensive guide to trading methods and applications. New York Institute of Finance.

Nasli, A. (2024, March 7). Is Deriv safe or a scam broker? BrokerChooser. https://brokerchooser.com/safety/deriv-broker-safe-or-scam

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

Noertjahyana, A., Christopher, A., Abas, Z. A., Yusoh, Z. I. M., & Setiawan, A. (2020). Stop hunt detection using indicators and expert advisors in the forex market. Journal of Physics: Conference Series, 1502(1), 012001.

Nugroho, F. E. (2016). Trading otomatis perdagangan forex menggunakan metode martingale dan candlestick sebagai acuan transaksi di Exness. Simetris: Jurnal Teknik Mesin, Elektro dan Ilmu Komputer, 7(1), 153–162.

Nwogugu, M. C. I. (2012). A critique of the VIX index, CDs indices, options-based indices, and synthetic ETFs/funds. SSRN Electronic Journal. https://doi.org/10.2139/ssrn.2037361

Pagliaro, A. (2023). Forecasting significant stock market price changes using machine learning: Extra trees classifier leads. Electronics, 12(21), 4551. https://doi.org/10.3390/electronics12214551

Paik, C., Choi, J., & Vaquero, I. U. (2024). Algorithm-based low-frequency trading using a stochastic oscillator, Williams%R, and trading volume for the S&P 500. Journal of Risk and Financial Management, 17(11), 478. https://doi.org/10.3390/jrfm17110478

Pande, K. S. Y., Divayana, D. G. H., & Indrawan, G. (2021). Comparative analysis of naïve bayes and KNN on prediction of forex price movements for GBP/USD currency at time frame daily. Journal of Physics: Conference Series, 1810(1), 012012.

Plevris, V., Solorzano, G., Bakas, N., & Ben Seghier, M. (2022). Investigation of performance metrics in regression analysis and machine learning-based prediction models. In 8th European Congress on Computational Methods in Applied Sciences and Engineering.

Prabandari, A. I. (2023). Observasi adalah tahap pengamatan penelitian, ketahui jenis dan etikanya. Merdeka.com. https://www.merdeka.com/jateng/observasi-adalah-tahap-pengamatan-penelitian-ketahui-jenis-dan-etikanya-15378-mvk.html

Prabowo, M. (2020). Metodologi pengembangan sistem informasi. LP2M Press IAIN Salatiga.

Pring, M. J. (1991). Technical analysis explained: The successful investor’s guide to spotting investment trends and turning points. McGraw-Hill.

Putri, A. D., Ahman, A., Hilmia, R. S., Almaliyah, S., & Permana, S. (2023). Pengaplikasian uji t dalam penelitian eksperimen. Jurnal Lebesgue: Jurnal Ilmiah Pendidikan Matematika dan Statistika, 4(3), 1978–1987.

Putri, N., Prabowo, N. A., & Widyanto, R. A. (2019). Implementasi metode prototyping pada perancangan aplikasi electronic ticket (e-ticket) berbasis Android. Jurnal Komtika (Komputasi dan Informatika), 3(2), 62–68.

Rachman, A., Yochanan, E., Samanlangi, A., & Purnomo, H. (2024). Metode penelitian kuantitatif, kualitatif dan R&D. Saba Jaya Publisher.

Riswan, A., & Mulyana, D. I. (2023). 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, 4(3), 1463–1471.

Rizka. (2024, November 13). Memahami konsep drawdown dalam money management forex. DIDIMAX. https://didimax.co.id/pusat-edukasi-gratis-id/memahami-konsep-drawdown-dalam-money-management-forex-18866

Roy, G., & Mohammed, S. (2022). Multi-timeframe algorithmic trading bots using thick data heuristics with deep reinforcement learning. Artificial Intelligence Evolution, 3(2), 1–15. https://doi.org/10.54364/aie.2022.03201

Salmaa. (2023). Studi literatur: Pengertian, ciri, teknik pengumpulan datanya. Penerbit Deepublish. https://penerbitdeepublish.com/studi-literatur/

Samudera, B. (2023). Memahami pair forex USD/JPY dan karakteristiknya. HSB Investasi. https://blog.hsb.co.id/forex/mengenal-forex-pairs-usd-jpy-karakteristiknya/

Santuci, A., Sbruzzi, E., Araújo-Filho, L., & Leles, M. (2022). Evaluation of forex trading strategies based in random forest and support vector machines. IEEE Latin America Transactions, 20(9), 2146–2152.

Schoeman, L. (2024, January 4). Deriv review. FX Leaders. https://www.fxleaders.com/forex-brokers/forex-brokers-review/deriv-review/

Siaurence, F., & Pangaribuan, H. (2022). Perancangan expert advisor untuk trading otomatis forex menggunakan indikator stochastic dan MACD pada platform MetaTrader 4. Jurnal Comasie, 6(1), 42–48.

Solang, J., Poekkoel, V., & Sompie, S. (2020). Rancang bangun expert advisor pada perdagangan mata uang asing di platform MetaTrader 4. Teknik Informatika, 15(2), 1–8.

Suratman, S. (2018). Expert advisor foreign exchange menggunakan simple moving average. Jurnal Bangkit Indonesia, 7(1), 30–30.

Syamala, S. R., & Wadhwa, K. (2020). Trading performance and market efficiency: Evidence from algorithmic trading. Research in International Business and Finance, 54, 101283.

TradingView. (n.d.). Harga rata-rata terbebani volume / volume weighted average price (VWAP). TradingView. https://id.tradingview.com/support/solutions/43000502018/

TradingView. (n.d.). Relative vigor index. TradingView. https://www.tradingview.com/support/solutions/43000591593-relative-vigor-index/

Vezeris, D., Kyrgos, T., Karkanis, I., & Bizergianidou, V. (2020). Automated trading systems’ evaluation using d-Backtest PS method and WM ranking in financial markets. Investment Management and Financial Innovations, 17(2), 234–245.

Wijaya, A. J., Swastika, W., & Kelana, O. H. (2021). Prediksi harga foreign exchange mata uang EUR/USD dan GBP/USD menggunakan long short-term memory. Sainsbertek: Jurnal Ilmiah Sains & Teknologi, 2(1), 16–31.

Wijaya, S. A. C. (2020). Mempelajari analisis teknikal dasar. Poems.co.id. https://www.poems.co.id/htm/Freeducation/LPNewsletter/v87/vol87_analisisteknikal.html

Yahya, S., & Fianto, B. A. (2020). Analisis statistik deskriptif terkait penggunaan fintech syariah di Indonesia. Jurnal Ekonomi Syariah Teori dan Terapan, 7(20), 1336–1349.

Zarattini, C., & Aziz, A. (2023, November 13). Volume weighted average price (VWAP): The holy grail for day trading systems. SSRN Electronic Journal. https://doi.org/10.2139/ssrn.4672861

Zulkifli, Z. S., Zamri, N., Mohammad, H., & Al-Saadi, R. A. A. R. (2024). Design algorithmic trading strategies with expert advisor using linear weighted moving average (LWMA) and stochastic oscillator technical indicators. Journal of Computers and Digital Business, 3(2), 43–49.