Jurnal Teknologi Informasi Mura
Vol. 18 No. 2 (2026): Jurnal Teknologi Informasi Mura JUNI

COMPARING GAUSSIAN AND DISCRETIZED NAIVE BAYES FOR FOREX TRADING WITH ONNX-INTEGRATED MT5 EXECUTION

Abdillah Baradja (Universitas Surakarta)
Bayu Mukti (Universitas Surakarta)
Muhamad Fadel Amrullah (Universitas Surakarta)



Article Info

Publish Date
26 Jun 2026

Abstract

Predicting non-stationary, non-normal hourly foreign exchange rates using probability-based classifiers is challenging, and the standard Gaussian assumption for Naive Bayes can be fragile. This study evaluated and compared three Naive Bayes representations for hourly foreign exchange rate prediction to examine the impact of feature discretization. The representations included Gaussian Naive Bayes on continuous indicators, equal-width binned Bernoulli Naive Bayes, and equal-frequency binned Bernoulli Naive Bayes. Relative Strength Index, Average True Range, and Moving Average Convergence Divergence indicators were computed from hourly historical bars for three major currency pairs. The models were trained in Python, exported via the Open Neural Network Exchange, and integrated into MetaTrader 5 for backtesting under a standardized execution gate. Backtests revealed that the quantile-binned equal-frequency model achieved consistent profitability across all three currency pairs, whereas the Gaussian and uniform-binned models demonstrated unstable performance and significant drawdowns. The findings suggested that quantile-based discretization mitigated the impact of outliers and improved classifier robustness in non-stationary market environments.

Copyrights © 2026






Journal Info

Abbrev

jti

Publisher

Subject

Computer Science & IT Control & Systems Engineering Decision Sciences, Operations Research & Management

Description

Focus and Scope Manajemen TI dan Tata Kelola TI e-Government e-Kesehatan, e-Learning, e-Manufaktur, e-Commerce ERP dan Manajemen Rantai Pasokan Manajemen Proses Bisnis Sistem Cerdas Kota Pintar Teknologi Awan Cerdas Peralatan Cerdas & Perangkat Komputasi yang Dapat Dipakai Sistem Robot Jaringan ...