Prediksi Harga pada Trading Forex Pair USDCHF Menggunakan Regresi Linear

  • Mohammad Edi Universitas Amikom Yogyakarta
  • Ema Utami Universitas Amikom Yogyakarta
  • Ainul Yaqin Universitas Amikom Yogyakarta
Keywords: Prediksi, Forex, Regresi Linear, MSE, RMSE

Abstract

In the era of globalization, free trade grows rapidly and technology develops, affecting economic competition. Forex, foreign exchange trading, is one of the investments used to face this challenge. Technical and fundamental analysis is used to predict price movements in forex trading. Previous studies have used linear regression algorithms and other techniques for price prediction in forex. In this study, the linear regression algorithm is used to predict closing prices in forex trading because the linear regression algorithm is an algorithm that has been widely used in predictions, its strengths are in estimating simple model parameters and data based on time series. In addition, the linear regression algorithm can perform analysis using several independent variables so that the prediction results can be more accurate. The purpose of this study is to create a forex price prediction model, to make it easier for traders to make price predictions. A dataset of 2066 data was obtained through the metatrader software and processed through the preprocessing stage. The linear regression model was created using 5 scenarios, and the evaluation was carried out using the Mean Squared Error (MSE) and Root Mean Square Error (RMSE) values to select the best model. The results show that linear regression is able to predict the closing price of the USDCHF pair. The best linear regression model is obtained using the independent variable in scenario 1, namely the Open variable, with a linear regression equation of y=0.0145+0.9849x, the best MSE is 0.0000328509 and the best RMSE is 0.0057315705.

References

A. J. Wijaya, W. Swastika, and O. H. Kelana, “Prediksi Harga Foreign Exchange Mata Uang Eur/Usd Dan Gbp/Usd Menggunakan Long Short-Term Memory,” Sainsbertek J. Ilm. Sains Teknol., vol. 2, no. 1, pp. 16–31, 2021, doi: 10.33479/sb.v2i1.121.

A. Sespajayadi, “PREDIKSI NILAI TUKAR VALUTA ASING MENGGUNAKAN METODE GENETIC ALGORITHM-NEURAL NETWORK ( Euro Terhadap US Dollar ),” J. Teknol. Inf. dan Komun., vol. 3, pp. 21–28, 2013.

Rafiqah, “ANALISIS SHARI’AH COMPLIANCE PADA TRADING FOREX ONLINE,” Misykat, vol. 5, pp. 147–164, 2020.

M. Ayitey Junior, P. Appiahene, O. Appiah, and C. N. Bombie, “Forex market forecasting using machine learning: Systematic Literature Review and meta-analysis,” J. Big Data, vol. 10, no. 1, 2023, doi: 10.1186/s40537-022-00676-2.

T. Titin, “Analisis Pengambilan Keputusan Dalam Transaksi Trading Forex Di Fxindo Regional Lamongan,” J. Ekbis, vol. 14, no. 2, p. 5, 2015, doi: 10.30736/ekbis.v14i2.121.

R. R. Elhakim, “Prediksi Nilai Tukar Rupiah Ke Dollar As Menggunakan Metode Arima,” MATHunesa J. Ilm. Mat., vol. 8, no. 2, pp. 145–150, 2020, doi: 10.26740/mathunesa.v8n2.p145-150.

R. Maulana and D. Kumalasari, “Analisis Dan Perbandingan Algoritma Data Mining Dalam Prediksi Harga Saham Ggrm,” J. Inform. Kaputama, vol. 3, no. 1, pp. 22–28, 2019, [Online]. Available: https://finance.yahoo.com/quote/GGRM.J

F. Sembiring, D. Gustian, A. Erfina, and Y. Vikriansyah, “Analisis Tingkat Akurasi Algoritma Moving Average dalam Prediksi Pergerakan Uang Elektronik Bitcoin,” J. Ilm. Tek. Inform. dan Sist. Inf., vol. 10, no. 1, pp. 23–30, 2021, [Online]. Available: http://ojs.stmik-banjarbaru.ac.id/index.php/jutisi/article/view/577

I. Priyadi, J. Santony, and J. Na’am, “Data Mining Predictive Modeling for Prediction of Gold Prices Based on Dollar Exchange Rates, Bi Rates and World Crude Oil Prices,” Indones. J. Artif. Intell. Data Min., vol. 2, no. 2, p. 93, 2019, doi: 10.24014/ijaidm.v2i2.6864.

D. S. Pradito, Benaya. Purnia, “KOMPARASI ALGORITMA LINEAR REGRESSION DAN NEURAL NETWORK UNTUK MEMPREDIKSI NILAI KURS,” Evolusi J. Sains dan Manaj., vol. 10, no. 2, pp. 64–71, 2022.

J. S. Putra, R. D. Ramadhani, and A. Burhanuddin, “Prediksi Harga Saham Bank Bri Menggunakan Algoritma Linear Regresion Sebagai Strategi Jual Beli Saham,” J. Dinda Data Sci. Inf. Technol. Data Anal., vol. 2, no. 1, pp. 1–10, 2022, doi: 10.20895/dinda.v2i1.273.

J. P. Halawa and A. Hermawan, “Implementation of Linear Regression Algorithm to Predict Stock Prices Based on Historical Data,” Bit-Tech, vol. 5, no. 2, pp. 103–112, 2022, doi: 10.32877/bt.v5i2.616.

M. S. Aziz Sarkar and U. A. M. Ehsan Ali, “EUR/USD Exchange Rate Prediction Using Machine Learning,” Int. J. Math. Sci. Comput., vol. 8, no. 1, pp. 44–48, 2022, doi: 10.5815/ijmsc.2022.01.05.

H. Winnos, R. Septima, and Hu. Gemasih, “Perbandingan Metode Regresi Linier Berganda dan Autoregressive Integrated Moving Average ( ARIMA ) Untuk Prediksi Saham PT. BSI, Tbk.,” Ocean Eng. J. Ilmu Tek. dan Teknol. Marit., vol. 1, no. 4, pp. 15–23, 2022.

T. Indarwati, T. Irawati, and E. Rimawati, “Penggunaan Metode Linear Regression Untuk Prediksi Penjualan Smartphone,” J. Teknol. Inf. dan Komun., vol. 6, no. 2, pp. 2–7, 2019, doi: 10.30646/tikomsin.v6i2.369.

G. S. Firli, “Sharia Business Ethics Online Forex Trading at Company Signal Providers Volatility 75 Index JR ( VIXJR ),” vol. 1, no. 19, pp. 809–818, 2023.

Harsiti, Z. Muttaqin, and E. Srihartini, “Penerapan Metode Regresi Linier Sederhana Untuk Prediksi Persediaan Obat Jenis Tablet,” JSiI (Jurnal Sist. Informasi), vol. 9, no. 1, pp. 12–16, 2022, doi: 10.30656/jsii.v9i1.4426.

T. N. Putri, A. Yordan, and D. H. Lamkaruna, “Peramalan Penerimaan Mahasiswa Baru Universitas Samudra Menggunakan Metode Regresi Linear Sederhana,” J-TIFA (Jurnal Teknol. Inform., vol. 2, no. 1, pp. 21–27, 2019.

A. M. Yusuf, Metode Penelitian Kuantitatif, kualitatif & Penelitian Gabungan, Edisi Pert. Jakarta: PRENADAMEDIA GROUP, 2014.

A. F. L. Putra, J. Junaidi, Z. Situmorang, and A. H. Nasyuha, “Regresi Linier Berganda Untuk Memprediksi Jumlah Nasabah,” J. Sci. Soc. Res., vol. 5, no. 2, p. 236, 2022, doi: 10.54314/jssr.v5i2.915.

A. Z. Siregar, “Implementasi Metode Regresi Linier Berganda Dalam Estimasi Tingkat Pendaftaran Mahasiswa Baru,” … J. Penerapan Sist. Inf. (Komputer dan …, vol. 2, no. 3, pp. 133–137, 2021, [Online]. Available: http://tunasbangsa.ac.id/pkm/index.php/kesatria/article/view/73

A. S. Bayangkari Karno, “Analisis Data Time Series Menggunakan LSTM (Long Short Term Memory) Dan ARIMA (Autocorrelation Integrated Moving Average) Dalam Bahasa Python.,” Ultim. InfoSys J. Ilmu Sist. Inf., vol. 11, no. 1, pp. 1–7, 2020, doi: 10.31937/si.v9i1.1223.

N. Afrianto, D. H. Fudholi, and S. Rani, “Prediksi Harga Saham Menggunakan BiLSTM dengan Faktor Sentimen Publik,” J. RESTI (Rekayasa Sist. dan Teknol. Informasi), vol. 6, no. 1, pp. 41–46, 2022, doi: 10.29207/resti.v6i1.3676.

A. Aulia, B. Aprianti, Y. Supriyanto, and C. Rozikin, “Prediksi Harga Emas dengan Menggunakan Algoritma Support Vector Regression (Svr) dan Linear Regression (LR),” J. Ilm. Wahana Pendidik., vol. 8, no. 5, pp. 84–88, 2022, doi: 10.5281/zenodo.6408864.

Published
2023-09-07
How to Cite
[1]
M. Edi, E. Utami, and A. Yaqin, “Prediksi Harga pada Trading Forex Pair USDCHF Menggunakan Regresi Linear”, JAMIKA, vol. 13, no. 2, pp. 109-119, Sep. 2023.