IAES International Journal of Artificial Intelligence (IJ-AI)
Vol 15, No 2: April 2026

Technical analysis model for stock prediction using a grammatical evolution algorithm

Setyanegara, Aditya Kusuma (Unknown)
Sitanggang, Imas Sukaesih (Unknown)
Mushthofa, Mushthofa (Unknown)



Article Info

Publish Date
01 Apr 2026

Abstract

Stocks are a popular investment instrument but carry high risks, where investors may incur losses when stocks are bought at high prices and sold at lower prices. Technical analysis is used to study past stock price behavior to predict future prices. In this study, grammatical evolution (GE) is applied as an evolutionary computing technique to discover optimal functions or programs that represent historical stock price data. This study develops GE based prediction models by utilizing objective functions and search spaces defined through grammar. The model integrates technical indicators based on complex statistical models such as autoregressive integrated moving average (ARIMA), prophet, exponential smoothing, and Fibonacci retracements. Furthermore, this study employs GE to generate ensemble weights randomly, ensuring each model contributes equitably to the final prediction formula. Experiments were conducted using multiple stock datasets, including SMAR, S&P 500, the Johannesburg Stock Exchange (JSE), the New York Stock Exchange (NYSE), and Adani Enterprises (ADANIENT), to evaluate the model’s adaptability and generalization capability. The results demonstrate that the proposed GE model effectively captures complex market patterns and produces more reliable stock price predictions compared to deep learning-based approaches. Although GE requires greater computational time, the findings suggest that GE provides a flexible and effective framework for constructing hybrid stock price forecasting models in dynamic market environments.

Copyrights © 2026






Journal Info

Abbrev

IJAI

Publisher

Subject

Computer Science & IT Engineering

Description

IAES International Journal of Artificial Intelligence (IJ-AI) publishes articles in the field of artificial intelligence (AI). The scope covers all artificial intelligence area and its application in the following topics: neural networks; fuzzy logic; simulated biological evolution algorithms (like ...