There are many researches on forecasting time series for building trading systems for financial markets. Some of these studies have shown that it is possible to obtain satisfactory results, thereby contradicting the theory of Efficient Markets Hypothesis (EMH) that suggests that prices are randomly generated over time. This paper proposes an intelligent system based on historical closing prices that uses technical analysis, the Artificial Bee Colony Algorithm (ABC), a selection of past values (lags), nearest neighbor classification (k-NN) and its variation, the Adaptative Classification and Nearest Neighbor (A-k-NN). A very important step for time series prediction is the correct selection of the past observations (lags). Our method uses this strategy since it uses the k-NN and A-k-NN to decide on the buy and seIl points, combined with the ABC algorithm which is used to search for the best parameter settings of system and a good set of lags. This paper compares the results obtained by the proposed method with the buy and hold strategy and with other work that performed similar experiments with the same trading model and the same stocks. The key measure for performance comparison is the profitability in the analyzed period. The proposed method generates much larger profits compared to the other method and to the buy and hold strategy. Our method outperforms the other methods in thirteen out of the fifteen stocks tested, minimizing the risk of market ex pos ure.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.