Intelmatics
Vol. 3 No. 2 (2023): Juli-Desember

The Implementation of Data Mining for Predicting XAU/USD Price Trends in the Forex Market on MetaTrader 5 using Naïve Bayes Method

Sendi Novianto (Informatic Engineering Program, Faculty of Computer Science, Universitas Dian Nuswantoro)
Habib Akbar Wibowo (Informatic Engineering Program, Faculty of Computer Science, Universitas Dian Nuswantoro)



Article Info

Publish Date
11 Sep 2023

Abstract

The one of the trading instruments is forex or foreign exchange. The forex market provides various commodities, one of which is XAU/USD. XAU/USD dataset with daily, h4, h1 time frames obtained from the MetaTrader 5 application via the FBS broker. Predicting forex prices is difficult because there are various factors that influence it, so data mining methods are needed to predict increases or decreases. Naïve Bayes is a method and logic that can be applied in making predictions. So the research objective of this final project is to apply naïve Bayes methods and logic in predicting the price of XAU/USD on the daily, h4, h1 time frames. The application of the Naïve Bayes method uses several libraries to support research, namely pandas, jcopml, and sklearn. In naïve Bayesian logic research, this is called from the sklearn library using gaussianNB. In this study, the performance reference uses an f1 score matrix because the number of false positives and false negatives is not tight (symmetrical). This study produces values for each time frame obtained from the confusion matrix formula with f-scores of 49.99% (daily), 53.52% (h4), 55.44% (h1).

Copyrights © 2023






Journal Info

Abbrev

intelmatics

Publisher

Subject

Computer Science & IT

Description

The IntelMatics Journal is a scientific journal published by the department of informatics engineering at Trisakti University. The purpose and objective of the publication of the IntelMatics journal are as a means of dissemination of international standard science in the field of software ...