Machine learning methods for financial forecasting and trading profitability: Evidence during the Russia–Ukraine war

Yaohao Peng (Secretariat for Economic Policy, Brazilian Ministry of Economy, Brasília, Brazil)
João Gabriel de Moraes Souza (Department of Economics and Business, IBMEC Brasilia, Brasília, Brazil)

Revista de Gestão

ISSN: 2177-8736

Article publication date: 21 May 2024

85

Abstract

Purpose

This study aims to evaluate the effectiveness of machine learning models to yield profitability over the market benchmark, notably in periods of systemic instability, such as the ongoing war between Russia and Ukraine.

Design/methodology/approach

This study made computational experiments using support vector machine (SVM) classifiers to predict stock price movements for three financial markets and construct profitable trading strategies to subsidize investors’ decision-making.

Findings

On average, machine learning models outperformed the market benchmarks during the more volatile period of the Russia–Ukraine war, but not during the period before the conflict. Moreover, the hyperparameter combinations for which the profitability is superior were found to be highly sensitive to small variations during the model training process.

Practical implications

Investors should proceed with caution when applying machine learning models for stock price forecasting and trading recommendations, as their superior performance for volatile periods – in terms of generating abnormal gains over the market – was not observed for a period of relative stability in the economy.

Originality/value

This paper’s approach to search for financial strategies that succeed in outperforming the market provides empirical evidence about the effectiveness of state-of-the-art machine learning techniques before and after the conflict deflagration, which is of potential value for researchers in quantitative finance and market professionals who operate in the financial segment.

Keywords

Citation

Peng, Y. and Souza, J.G.d.M. (2024), "Machine learning methods for financial forecasting and trading profitability: Evidence during the Russia–Ukraine war", Revista de Gestão, Vol. ahead-of-print No. ahead-of-print. https://doi.org/10.1108/REGE-05-2022-0079

Publisher

:

Emerald Publishing Limited

Copyright © 2024, Yaohao Peng and João Gabriel de Moraes Souza

License

Published in Revista de Gestão. Published by Emerald Publishing Limited. This article is published under the Creative Commons Attribution (CC BY 4.0) licence. Anyone may reproduce, distribute, translate and create derivative works of this article (for both commercial and non-commercial purposes), subject to full attribution to the original publication and authors. The full terms of this licence may be seen at http://creativecommons.org/licences/by/4.0/legalcode


1. Introduction

Machine learning applications in quantitative finance are increasingly frequent, both as a research topic and as practical tools to assist the decision-making of investors and market professionals. The technological improvements that allowed faster decision-making and the processing of a larger volume of information also boosted the development of methods and tools in various fields of finance, such as time-series forecasting, risk management, algorithmic trading, automated fraud detection and sentiment analysis (Emerson, Kennedy, O'Shea, & O'Brien, 2019; Dixon, Halperin, & Bilokon, 2020; Ozbayoglu, Gudelek, & Sezer, 2020).

One key aspect of machine learning models is their versatility to adapt to the data, with few or no assumptions regarding data distribution or the functional forms of the decision functions. However, while this flexibility allows the identification of more complex patterns, it also makes these models harder to control, especially for forecasting tasks (Probst, Boulesteix, & Bischl, 2019; Weerts, Mueller, & Vanschoren, 2020; Peng & Nagata, 2020), as small variations on the hyperparameter settings can have a strong impact on the fitted model and consequently on its outcomes, especially when machine learning methods are integrated into automated trading systems, as it has been increasingly usual both as a research topic and as an investing tool (Hilbert & Darmon, 2020; Min & Borch, 2022; Tao, Su, Xiao, Dai, & Khalid, 2021).

While the efficient market hypothesis (Fama, 1970), one of the cornerstones of finance theory, states that no individual agent can systematically outperform the financial market (under different assumptions of information availability), a big number of recent papers have reported success in “beating the market” through the usage of machine learning algorithms for a wide range of markets and time periods (Dastile, Celik, & Potsane, 2020; Bustos & Pomares-Quimbaya, 2020). On the other hand, even under the efficient market hypothesis, brief opportunities to yield gain over the financial market are possible when the whole market undergoes sudden oscillations as a consequence of a structural break in the financial time-series or as a result of an event that triggers systematic implications. An example of such an event is the ongoing military conflict between Russia and Ukraine, which began in late February 2022 and has brought a huge impact not only on the global economy but also on the international geopolitical configuration.

In this context, this paper aims to investigate the predictive power of machine learning models for financial time-series, evaluating their out-of-sample performance both in terms of forecasting and profitability for a potential investor that would make trading operations in the financial market following their suggestions. Therefore, this paper’s main contribution is to compare the predictive performance and profitability of the models before the deflagration of the Russia–Ukraine war with their performance during the period of war to analyze whether a systematic disturbance in the data-generating processes has affected the overall effectiveness of machine learning models, as well as to find additional insights about market efficiency and propensity to yield gains above the market level.

2. Theoretical background

2.1 Machine learning in stock price forecasting

The application of machine learning methods in quantitative finance has been increasingly popular in the recent literature, due to the flexibility of this class of models and their ability to yield better empirical performance compared to well-known models from classic econometrics, as discussed by works like Hsu, Lessmann, Sung, Ma and Johnson (2016), De Spiegeleer, Madan, Reyners and Schoutens (2018), Peng, Albuquerque, de Sá, Padula and Montenegro (2018) and Albuquerque, de Moraes Souza and Kimura (2021). Other notable recent applications in financial contexts include: Kozak, Nagel and Santosh (2020), which incorporated nonlinear interactions into classic asset pricing models and applied dimensionality reduction techniques to find the main principal components that were able to capture most of the relevant information; Renault (2020), which analyzed the correlation between investor sentiment and stock returns based on texts messages collected from a social media directed to the traders’ community; and Gu, Kelly and Xiu (2020), which compared regularized linear models and machine learning algorithms to model the risk premium of financial assets incorporating nonlinear interactions and variance shrinkage techniques. In-depth compendiums of the recent literature on machine learning applications in quantitative finance can be found in the survey papers of Dastile et al. (2020), Ozbayoglu et al. (2020), Gogas and Papadimitriou (2021) and Goodell, Kumar, Lim and Pattnaik (2021).

One critical aspect of empirical applications of machine learning models is to maximize their generalization ability, by finding the ideal balance between in-sample fitness and complexity – often known as the bias-variance dilemma. As discussed in Claesen and De Moor (2015), Probst et al. (2019) and Peng and Nagata (2020), small changes in the hyperparameter settings of a machine learning experiment can lead to significant differences in the resulting decision function and finding the optimal combination of hyperparameters that minimize the out-of-sample generalization error is one of the main empirical challenges for machine learning experiments.

In the task of financial time-series forecasting, while technical analysis features are built using basic variables such as daily closing price and traded volume, the stylized facts of financial returns and the explanatory power coming from nonlinear dependences, apart from the usual challenges of serial correlation and heteroscedasticity, motivate the application of machine learning methods to forecasting the price trends and build profitable trading strategies (Vijh, Chandola, Tikkiwal, & Kumar, 2020; Ghasemzadeha, Mohammad-Karimi, & Ansari-Samani, 2020).

The emergence of machine learning methods as a popular paradigm for financial analysis and the advancements in computational power and accessibility has boosted interest in research and development of automated trading recommendation systems, which are often designed to process a high number of features, especially when high-frequency trading is considered. As pointed out by Taghian, Asadi and Safabakhsh (2022), the flexibility of machine learning methods also demands caution from the researcher when defining the model parameters and architectures; specifically, the authors discussed the effects of input representations and feature extraction in deep reinforcement learning methods and proposed an asset-specific framework that managed to outperform the best benchmark model in more than 12% in terms of profitability.

Aligned to that, Ayala, García-Torres, Noguera, Gómez-Vela and Divina (2021) proposed a hybrid approach to generate trading signals by applying a technical indicator combined with a machine learning approach to generate a trading signal. Apart from standard linear models, artificial neural networks, random forests and support vector regression were considered as base-learners. Using data from three financial indexes, the authors reported that the addition of machine learning techniques to technical analysis strategies improved the profitability of the yielded trading recommendations.

As discussed in Peng, Albuquerque, Kimura and Saavedra (2021), both specialized literature and market professionals have identified a great number of technical analysis indicators that serve as candidate predictors for future stock prices, which also motivated the application of feature selection to eliminate redundant or non-informative features prior to the training of the machine learning algorithms – in this case, deep neural networks with dropout regularization. Haq, Zeb, Lei and Zhang (2021) performed similar experiments, first ordering the indicators by their relative importance through independently training logistic regressions, support vector machines (SVMs) and random forests and then applying a deep generative model with a market signal decoder and a noise discriminator based on attention mechanism. Examples of survey papers of recent articles that tackled the stock market forecast using technical analysis indicators can be found in Nti, Adekoya and Weyori (2020), Li and Bastos (2020) and Bustos and Pomares-Quimbaya (2020).

2.2 The 2022 Russia–Ukraine war: background, chronology and impacts on the global market

In order to further evaluate whether machine learning methods are effective in generating winning trading strategies in periods of notable turbulence in the world market, this paper considered an out-of-sample period in which the Russia–Ukraine war is underway, an event with relevant implications to the international economy and to the global financial market.

A relevant milestone of the relationship between Russia and Ukraine after the end of the cold war was the Orange Revolution, a series of political protests organized in response to the results of the 2004 Ukrainian presidential election, in which pro-Russian candidate Viktor Yanukovych claimed victory amidst claims of corruption and electoral fraud. Centered in the Ukrainian capital city Kyiv and articulated by supporters of pro-Western candidate Viktor Yushchenko, the protests triggered a nationwide chain of strikes and acts of civil disobedience. A revote was ordered by the Ukraine Supreme Court and took place in December 2004, with Yushchenko being declared the winner (Karatnycky, 2005). The Orange Revolution boosted Ukraine’s press freedom but also highlighted the existence of a polarization between groups that argued in favor of an approximation to Russia and enthusiasts of an approximation to Western coalitions such as the European Union and North Atlantic Treaty Organization (NATO) (Khodunov, 2022). This polarization was reflected in the very next elections for the Ukrainian parliament that took place in 2007 and escalated after Yanukovych was eventually elected for the presidency in 2010 (White & McAllister, 2009).

The Russia-Ukraine tensions reached a high point in 2014, when Russia conducted a lightning operation that ended with the annexation of the Crimean Autonomous Republic, an act that was considered an act of “dangerous and preclusive imperialism” by some critics of Russia (Gardner, 2016) and “a severe violation of international law” even by some pro-Russian groups (Saluschev, 2014). This event triggered a political crisis in Eastern Europe and represented a shift of the Russian international policy away from Europe and the United States and toward China, as seen through the signing of a 30-year gas agreement between Russia and China after the annexation (Biersack & O’lear, 2014). Moreover, the Crimea crisis aggravated the polarization of Ukraine between integration towards Russia or Europe, consequently augmenting the clash between the security interests of these two geopolitical forces (Nitoiu, 2016), eventually leading to the Russian military engagement against Ukraine on February 24, 2022. Since then, Russian forces bombed several Ukrainian administrative headquarters and part of a building that houses the Zaporizhzhia nuclear power plant, while Ukrainian president Volodymyr Zelenskyy accused Russia of genocide after hundreds of civilian bodies were found in Bucha and Mariupol. Russia suffered a series of economic sanctions and eventually began to also apply sanctions to Europe regarding the supply of natural gas and energy.

As for the economic dimension, Russia produces approximately 10% of the world’s petroleum and is a major energy exporter to Europe, to where it represents the origin of 24.7% of the petroleum imports and 46.8% of the natural gas imports (Lodi et al., 2022). Additionally, Russia and Ukraine are also relevant producers of crops: Ukraine alone is responsible for more than 18% of the world exports of wheat, whilst Russia and Ukraine combine for more than 15% of the world exports of corn (Lodi et al., 2022). Therefore, the armed conflict between these two countries not only severely affects the price of these commodities but also impacts the price of substitute goods such as soybeans and of animal protein, inducing worldwide impacts on commodity market and on the prices in general (Orhan, 2022; Saâdaoui, Jabeur, & Goodell, 2022). Apart from the impacts on the commodity prices, the conflict induced a severe shortfall in the world’s supply of fertilizers for agricultural use, arousing additional concerns about global food security (Berkhout, Bergevoet, & van Berkum, 2022; Najafova, 2022).

Given the impacts of the conflict on the international economy, machine learning models trained under a wide range of hyperparameter settings were applied for the empirical analysis, comparing the results obtained for two out-of-sample periods: one before the outbreak of the war and another after the first Russian offensive on Ukraine. The methods employed in this paper and the execution steps of the experiments are described in the next section.

3. Methods and empirical analysis

In this paper, the SVM classifier (Boser, Guyon, & Vapnik, 1992; Cortes & Vapnik, 1995) was chosen for the empirical experiments; this choice was motivated by the results reported in Probst et al. (2019), in which SVM was the machine learning model with the highest average hyperparameter tunability – that is, the model with the largest potential performance gain arising from changes in the hyperparameters. SVM is a supervised learning algorithm commonly used in the recent machine learning literature. For the general case in which the data may not be linearly separable, SVM can be applied to a set of data mapped to a high-dimensional feature space using Kernel functions, providing this model with higher flexibility to learn more complex patterns. As defined in Cortes and Vapnik (1995), SVM solves the following convex quadratic programming problem:

Minimize:12wTw+CξT1
(1)Subjectto:D(Φwb1)1ξ
bR,wRq,ξ0
where CR+ is a user-defined hyperparameter that represents the penalization for misclassified observations, ξ is a vector of slack variables, D is the diagonal square matrix of the class labels for each observation, Φ is the matrix of nonlinear mapping applied to each pair of observations xi and xj, i,j=1,2,3...,n and n is the sample size. This optimization problem has a global optimal solution, and the decision function of the SVM classifier is given by Cortes and Vapnik (1995):
(2)f(xi)=sgn(i=1nκ(xi,xj)yiλib)
where sgn(.) is the sign function, κ(xi,xj)=φ(xi)·φ(xj)R,i,j=1,2,3,n is the Kernel function that generalizes the inner product of the mapping φ for each pair of observations, yi1,+1 is the label of the i-th observation, λi is the i-th Lagrange multiplier and bR is the bias term (intercept) of the decision function. In this paper, the experiments will consider the Gaussian Kernel (also known as the “Radial Kernel” or “RBF Kernel”), which implicitly generalizes all polynomial interaction terms between x up to the infinite-dimension. The expression for the Gaussian Kernel is given by Peng and Nagata (2020):
(3)κ(xi,xj)=exp(xixj2σ2)
where σR+ is a user-specified hyperparameter. As discussed in subsection 2.1, the choice of the hyperparameters C and σ can have a significant impact on the resulting decision function, thus influencing the predictions and the financial decision-making, even for convex methods that have an analytical solution, like SVM. In this sense, a vast number of hyperparameter combinations were tested in the empirical analysis to verify the impacts on out-of-sample classification and on the profitability of an investor that decides to follow the recommendations of the respective models.

For the empirical analysis, daily data between April 1st, 2021 and September 30th, 2022, were collected for firms from three financial indexes – Dow Jones Industrial Average, EURO STOXX 50 and Bovespa, representing the American, European and Brazilian markets, respectively. After the collection, each dataset was split into three sequential and mutually exclusive subsets, namely:

  1. Training set – observations between April 1st, 2021 and November 30th, 2021. This subset represented the in-sample portion of the data, thus being used to fit the machine learning models which were then applied to the two out-of-sample portions of the data;

  2. Test set 1 (pre-war period) – observations between December 1st, 2021 and February 23rd, 2022. This subset represents the out-of-sample period before the start of the Russia–Ukraine war;

  3. Test set 2 (war period) – observations between February 24th, 2022 and September 30th, 2022. Finally, this subset represents the out-of-sample period after the conflict began with the first Russian offensive against Ukraine on February 24, 2022.

The models trained using the first data subset were applied to two different portions of the data in order to analyze their effectiveness, by comparing a non-war period to a war period, both in terms of predictive performance and in terms of actual profitability that an investor would obtain if he/she had followed the trading operations indicated by the respective model. For all three subsets, the dependent variable (target variable) was the price direction movement between periods t and t+1, while the set of independent variables (features) was composed of 9 technical analysis indicators commonly utilized in the recent literature of machine learning models applied to financial forecasting, as displayed in Table 1.

To evaluate the robustness of each model, 10-fold cross-validation was applied to the training set, following the procedure described in Bergmeir and Benítez (2012). The respective decision functions were applied to the observations from the test set; for each hyperparameter combination, a different optimal model was trained and applied for the two out-of-sample data subsets. The hyperparameter tuning was performed with grid search, with the interval [100,100.25,...,109.75,1010] for hyperparameter C and [0.25,0.5,...,9.75,10] for hyperparameter σ.

4. Results and discussion

Figures 1 and 2 present the profitability of the machine learning models trained under each hyperparameter combination for the test sets (pre-war and during the war) over the buy-and-hold strategy over the respective periods for the three analyzed markets – that is, the heatmaps show their respective out-of-sample profitability for each combination of C and σ. The buy-and-hold strategy involves buying a stock or a portfolio of stocks and retaining it, aiming at obtaining gains in the long term; thus, following this strategy is equivalent to purchasing an equally-diversified 1/n portfolio over the whole extension of the two test sets (Peng et al., 2021).

Figures 1 and 2 represent the profitability over the buy-and-hold strategy for the three markets before and during the war, respectively. The blue tones represent the strategies that managed to yield gains over buy-and-hold, the green tones represent an additional gain close to zero and the warm colors like yellow, orange and red represent a profitability that was smaller than the buy-and-hold strategy. As these figures show, the SVM models that generated abnormal gains over the buy-and-hold strategy exhibited were highly sensitive to small variations in their hyperparameters – therefore, for these combinations it would be empirically possible to “beat the market”. However, the hyperparameters for the best models did not follow a clear pattern that would also generate abnormal returns for future out-of-sample observations. From a statistical learning perspective, these findings are consistent with the high tunability values for SVM models reported in Probst et al. (2019) and the empirical implications of overfitting in machine learning experiments as discussed by Peng and Nagata (2020). From the perspective of finance theory, the setbacks in systematically generating models that outperform the market benchmark are also consistent with Fama (1970)’s classic result of Efficient Market Hypothesis.

Conversely, Table 2 summarizes some descriptive statistics about the strategies’ profitability for the pre-war period and during the war period for the three markets, alongside the maximum value for the transaction costs for the investor to be able to break-even (TC0) and to outperform the buy-and-hold strategy (TCBH). Both TC0 and TCBH were calculated as the ratio between the cumulative gains over the period and the number of transactions performed. By assessing the strategies’ profitability as a function of the maximum transaction cost under which a target profit is possible, this paper adds to the literature on machine learning applications in stock price prediction by determining the effectiveness of the models, based on the actual transaction costs from the respective markets, hence providing a more accurate measure of the models’ impact on real-world decision-making.

For all three markets, Table 2 shows that in general terms the models exhibited a better performance during the war than before the war, with a greater proportion of models with better performance than the buy-and-hold profitability during that period. This pattern was consistent across all three markets but was especially stronger for the Brazilian market. In addition, the standard deviation of the models’ profitability distribution was larger during-war than pre-war for all three markets, an expected result given the implications of the conflict on the global economy.

The profitability values reported in Table 2 are only illustrative as it is unrealistic to operate in real-world trading without a benchmark strategy. In this sense, the sign and the magnitude of TCBH are what really give away whether the models would effectively generate returns for the investor, with TCBH<0 implying that the investor would need to receive money for each operation to achieve the profitability of buy-and-hold on average, while TCBH>0 would represent the threshold value for individual transaction costs below which the investor would profit above the market benchmark.

5. Conclusion and remarks

This paper analyzed the effectiveness of SVMs for stock price movement directions for three financial markets from a comparative perspective between the performances before and after the deflagration of the 2022 Russia–Ukraine war. The merits of the application of machine learning methods in recent research on empirical finance were also discussed, as well as the background for the conflict and its relevance to the global economy.

Different settings of hyperparameters were tested in an extensive grid search, applying 10-fold cross-validation for the training set and evaluating the classification performance and strategies’ profitability for two mutually exclusive sets of out-of-sample data, investigating the overall impacts of hyperparameter settings on the predictive performance of the machine learning models. Results indicate that while the machine learning models did not manage to outperform the buy-and-hold strategy in terms of profitability for the pre-war period, the vast majority of the models were able to yield larger returns than the buy-and-hold benchmark during the period of war, which introduced a high amount of instability and volatility to the international market.

The findings of this research provide an assessment of the empirical challenges of machine learning applications to quantitative finance, while also adding to the literature of financial theory by exploring the connections between well-established concepts in finance and novel evidence brought by data science methods, notably during armed conflicts or other meaningful events with systemic implications. Moreover, the values for the transaction cost levels for an investor to reach some economic gain or to outperform the buy-and-hold strategy can be used to analyze the overall attractiveness of different financial markets, with an investor potentially willing to operate in markets in which the transaction costs are lower than the thresholds reported in this paper.

About the main limitations of this paper, the tested combinations of hyperparameters are not exhaustive, and the only predictive model employed in this paper used was the SVM with Gaussian Kernel, whereas there is a range of Kernels that can be applied with the same methodology that may lead to different results. In addition to combinations of other predictive methodologies such as ensemble-based models that can improve the predictive capacity of the strategies. Another relevant point is that the Russia–Ukraine war is still ongoing; therefore, the results presented here may not be maintained until the end of the conflict. Finally, the replication of the experiments of this paper for other periods of high market instability is encouraged, as well as for additional markets and independent variables, both for technical analysis indicators and fundamentalist features.

Figures

Pre-war models’ out-of-sample profitability over the buy-and-hold strategy for the three markets

Figure 1

Pre-war models’ out-of-sample profitability over the buy-and-hold strategy for the three markets

During-war models’ out-of-sample profitability over the buy-and-hold strategy for the three markets

Figure 2

During-war models’ out-of-sample profitability over the buy-and-hold strategy for the three markets

Technical analysis indicators used as independent variables and recent references

Independent variableReferences
Simple moving averageChen and Hao (2017), Gunduz, Yaslan, and Cataltepe (2017), Shynkevich, McGinnity, Coleman, Belatreche, and Li (2017), Weng, Ahmed, and Megahed (2017), Alhashel, Almudhaf, and Hansz (2018), Merello, Ratto, Oneto, and Cambria (2019), Sezer and Ozbayoglu (2018), Ghasemzadeha et al. (2020), Vijh et al. (2020) and Haq et al. (2021)
Exponential moving averageChen, Xiao, Sun, and Wu (2017), Chen and Hao (2017), Gunduz et al. (2017), Shynkevich et al. (2017), Weng et al. (2017), Alhashel et al. (2018), Nakano, Takahashi, and Takahashi (2018), Sezer and Ozbayoglu (2018) and Haq et al. (2021)
Moving average convergence-divergenceChen and Hao (2017), Gunduz et al. (2017), Alhashel et al. (2018), Nakano et al. (2018), Sezer and Ozbayoglu (2018), Ghasemzadeha et al. (2020), Ayala et al. (2021) and Haq et al. (2021)
MomentumGunduz et al. (2017), Weng et al. (2017), Merello et al. (2019) and Haq et al. (2021)
Rate of changeGunduz et al. (2017), Shynkevich et al. (2017), Weng et al. (2017), Alhashel et al. (2018), Ghasemzadeha et al. (2020) and Haq et al. (2021)
On balance volumeChen and Hao (2017), Nakano et al. (2018) and Sezer and Ozbayoglu (2018)
Relative strength indexChen and Hao (2017), Gunduz et al. (2017) Weng et al. (2017), Shynkevich et al. (2017), Alhashel et al. (2018), Nakano et al. (2018), Sezer and Ozbayoglu (2018), Ghasemzadeha et al. (2020) and Haq et al. (2021)
Stochastic K%Gunduz et al. (2017), Shynkevich et al. (2017), Alhashel et al. (2018) and Nakano et al. (2018)
William’s R%Gunduz et al. (2017), Shynkevich et al. (2017), Alhashel et al. (2018), Sezer and Ozbayoglu (2018) and Haq et al. (2021)

Source(s): Prepared by the authors

Profitability and maximum transaction costs for the machine learning models

MarketPeriodProportion of models that outperformed buy-and-hold (%)MetricStrategy profitabilityTC0TCBH
AmericanPre-war64.05Maximum1.490.070.27
Median−4.13−0.200.02
Minimum−8.13−0.56−0.19
Mean−3.95−0.190.02
Standard deviation1.360.070.07
During-war95.05Maximum2.850.070.21
Median−0.57−0.010.12
Minimum−9.48−0.20−0.08
Mean−1.00−0.020.11
Standard deviation2.200.050.05
EuropeanPre-war72.45Maximum−1.34−0.610.99
Median−2.95−1.180.07
Minimum−3.52−2.45−0.17
Mean−2.88−1.200.11
Standard deviation0.420.180.20
During-war94.67Maximum8.560.200.45
Median−5.55−0.120.10
Minimum−23.84−1.46−0.84
Mean−5.61−0.120.09
Standard deviation2.690.100.07
BrazilianPre-war0Maximum1.380.11−0.01
Median0.580.03−0.05
Minimum−0.52−0.06−0.38
Mean0.570.03−0.05
Standard deviation0.240.010.02
During-war82.91Maximum0.760.020.04
Median−0.070.000.02
Minimum−2.34−0.13−0.03
Mean−0.31−0.010.02
Standard deviation0.710.020.02

Source(s): Prepared by the authors

Disclaimer: The views expressed in this work are the entire responsibility of the authors and do not necessarily reflect those of their respective to which they are institutions affiliated or those of its members.

References

Albuquerque, P. H. M., de Moraes Souza, J. G., & Kimura, H. (2021). Artificial intelligence in portfolio formation and forecast: Using different variance-covariance matrices. Communications in Statistics-Theory and Methods, 52(12), 118. doi: 10.1080/03610926.2021.1987472.

Alhashel, B. S., Almudhaf, F. W., & Hansz, J. A. (2018). Can technical analysis generate superior returns in securitized property markets? Evidence from East Asia markets. Pacific-Basin Finance Journal, 47, 92108. doi: 10.1016/j.pacfin.2017.12.005.

Ayala, J., García-Torres, M., Noguera, J. L. V., Gómez-Vela, F., & Divina, F. (2021). Technical analysis strategy optimization using a machine learning approach in stock market indices. Knowledge-Based Systems, 225, 107119. doi: 10.1016/j.knosys.2021.107119.

Bergmeir, C., & Benítez, J. M. (2012). On the use of cross-validation for time series predictor evaluation. Information Sciences, 191, 192213. doi: 10.1016/j.ins.2011.12.028.

Berkhout, P., Bergevoet, R., & van Berkum, S. (2022). A brief analysis of the impact of the war in Ukraine on food security (No. 2022-033). Wageningen Economic Research.

Biersack, J., & O’lear, S. (2014). The geopolitics of Russia’s annexation of Crimea: Narratives, identity, silences, and energy. Eurasian Geography and Economics, 55(3), 247269.

Boser, B. E., Guyon, I. M., & Vapnik, V. N. (1992). A training algorithm for optimal margin classifiers. In Proceedings of the fifth annual workshop on Computational learning theory (pp. 144152).

Bustos, O., & Pomares-Quimbaya, A. (2020). Stock market movement forecast: A systematic review. Expert Systems with Applications, 156, 113464. doi: 10.1016/j.eswa.2020.113464.

Chen, Y., & Hao, Y. (2017). A feature weighted support vector machine and k-nearest neighbor algorithm for stock market indices prediction. Expert Systems with Applications, 80, 340355. doi: 10.1016/j.eswa.2017.02.044.

Chen, H., Xiao, K., Sun, J., & Wu, S. (2017). A double-layer neural network framework for high-frequency forecasting. ACM Transactions on Management Information Systems (TMIS), 7(4), 1117. doi: 10.1145/3021380.

Claesen, M. and De Moor, B. (2015). Hyperparameter search in machine learning. arXiv preprint arXiv:1502.02127.

Cortes, C., & Vapnik, V. (1995). Support-vector networks. Machine Learning, 20(3), 273297. doi: 10.1007/bf00994018.

Dastile, X., Celik, T., & Potsane, M. (2020). Statistical and machine learning models in credit scoring: A systematic literature survey. Applied Soft Computing, 91, 106263. doi: 10.1016/j.asoc.2020.106263.

De Spiegeleer, J., Madan, D. B., Reyners, S., & Schoutens, W. (2018). Machine learning for quantitative finance: Fast derivative pricing, hedging and fitting. Quantitative Finance, 18(10), 16351643. doi: 10.1080/14697688.2018.1495335.

Dixon, M. F., Halperin, I., & Bilokon, P. (2020). Machine learning in finance (1170). New York, NY: Springer International Publishing.

Emerson, S., Kennedy, R., O'Shea, L., & O'Brien, J. (2019). Trends and applications of machine learning in quantitative finance. In 8th international conference on economics and finance research (ICEFR 2019).

Fama, E. F. (1970). Efficient capital markets: A review of theory and empirical work. The Journal of Finance, 25(2), 383417. doi: 10.2307/2325486.

Gardner, H. (2016). The Russian annexation of Crimea: Regional and global ramifications. European Politics and Society, 17(4), 490505. doi: 10.1080/23745118.2016.1154190.

Ghasemzadeha, M., Mohammad-Karimi, N., & Ansari-Samani, H. (2020). Machine learning algorithms for time series in financial markets. Advances in Mathematical Finance and Applications, 5(4), 479490.

Gogas, P., & Papadimitriou, T. (2021). Machine learning in economics and finance. Computational Economics, 57(1), 14. doi: 10.1007/s10614-021-10094-w.

Goodell, J. W., Kumar, S., Lim, W. M., & Pattnaik, D. (2021). Artificial intelligence and machine learning in finance: Identifying foundations, themes, and research clusters from bibliometric analysis. Journal of Behavioral and Experimental Finance, 32, 100577. doi: 10.1016/j.jbef.2021.100577.

Gu, S., Kelly, B., & Xiu, D. (2020). Empirical asset pricing via machine learning. The Review of Financial Studies, 33(5), 22232273. doi: 10.1093/rfs/hhaa009.

Gunduz, H., Yaslan, Y., & Cataltepe, Z. (2017). Intraday prediction of borsa Istanbul using convolutional neural networks and feature correlations. Knowledge-Based Systems, 137, 138148. doi: 10.1016/j.knosys.2017.09.023.

Haq, A. U., Zeb, A., Lei, Z., & Zhang, D. (2021). Forecasting daily stock trend using multifilter feature selection and deep learning. Expert Systems with Applications, 168, 114444. doi: 10.1016/j.eswa.2020.114444.

Hilbert, M., & Darmon, D. (2020). How complexity and uncertainty grew with algorithmic trading. Entropy, 22(5), 499. doi: 10.3390/e22050499.

Hsu, M.-W., Lessmann, S., Sung, M.-C., Ma, T., & Johnson, J. E. (2016). Bridging the divide in financial market forecasting: Machine learners vs financial economists. Expert Systems with Applications, 61, 215234. doi: 10.1016/j.eswa.2016.05.033.

Karatnycky, A. (2005). Ukraine’s orange revolution. Foreign Affairs, 84(2), 35. doi: 10.2307/20034274.

Khodunov, A. (2022). The orange revolution in Ukraine. In Handbook of revolutions in the 21st century: The new waves of revolutions, and the causes and effects of disruptive political change (pp. 501515). Cham: Springer International Publishing.

Kozak, S., Nagel, S., & Santosh, S. (2020). Shrinking the cross-section. Journal of Financial Economics, 135(2), 271292. doi: 10.1016/j.jfineco.2019.06.008.

Li, A. W., & Bastos, G. S. (2020). Stock market forecasting using deep learning and technical analysis: A systematic review. IEEE Access, 8, 185232185242. doi: 10.1109/access.2020.3030226.

Lodi, A. L., Machado, A., Santos, B., Lopes, J. P., Mattos, L., Bezzon, L., & Bonifacio, M. (2022). Ukraine and Russia Tensions: What are the possible consequences of a military conflict in the region?. StoneX Special Report, 112.

Merello, S., Ratto, A. P., Oneto, L., & Cambria, E. (2019). Ensemble application of transfer learning and sample weighting for stock market prediction. In 2019 International Joint Conference on Neural Networks (IJCNN) (pp. 18). IEEE.

Min, B. H., & Borch, C. (2022). Systemic failures and organizational risk management in algorithmic trading: Normal accidents and high reliability in financial markets. Social Studies of Science, 52(2), 277302.

Najafova, M. (2022). Impact of war between Russia and Ukraine on food security. Available from: https://policycommons.net/artifacts/2329915/impact-of-war-between-russia-and-ukraine-on-food-security/3090540

Nakano, M., Takahashi, A., & Takahashi, S. (2018). Bitcoin technical trading with artificial neural network. Physica A: Statistical Mechanics and Its Applications, 510, 587609. doi: 10.1016/j.physa.2018.07.017.

Nitoiu, C. (2016). Towards conflict or cooperation? The Ukraine crisis and EU-Russia relations. Southeast European and Black Sea Studies, 16(3), 375390. doi: 10.1080/14683857.2016.1193305.

Nti, I. K., Adekoya, A. F., & Weyori, B. A. (2020). A systematic review of fundamental and technical analysis of stock market predictions. Artificial Intelligence Review, 53(4), 30073057. doi: 10.1007/s10462-019-09754-z.

Orhan, E. (2022). The effects of the Russia-Ukraine war on global trade. Journal of International Trade, Logistics and Law, 8(1), 141146.

Ozbayoglu, A. M., Gudelek, M. U., & Sezer, O. B. (2020). Deep learning for financial applications: A survey. Applied Soft Computing, 93, 106384. doi: 10.1016/j.asoc.2020.106384.

Peng, Y., & Nagata, M. H. (2020). An empirical overview of nonlinearity and overfitting in machine learning using covid-19 data. Chaos, Solitons and Fractals, 139, 110055. doi: 10.1016/j.chaos.2020.110055.

Peng, Y., Albuquerque, P. H. M., de Sá, J. M. C., Padula, A. J. A., & Montenegro, M. R. (2018). The best of two worlds: Forecasting high frequency volatility for cryptocurrencies and traditional currencies with support vector regression. Expert Systems with Applications, 97, 177192. doi: 10.1016/j.eswa.2017.12.004.

Peng, Y., Albuquerque, P. H. M., Kimura, H., & Saavedra, C. A. P. B. (2021). Feature selection and deep neural networks for stock price direction forecasting using technical analysis indicators. Machine Learning with Applications, 5, 100060. doi: 10.1016/j.mlwa.2021.100060.

Probst, P., Boulesteix, A.-L., & Bischl, B. (2019). Tunability: Importance of hyperparameters of machine learning algorithms. The Journal of Machine Learning Research, 20(1), 19341965.

Renault, T. (2020). Sentiment analysis and machine learning in finance: A comparison of methods and models on one million messages. Digital Finance, 2(1), 113. doi: 10.1007/s42521-019-00014-x.

Saâdaoui, F., Jabeur, S. B., & Goodell, J. W. (2022). Causality of geopolitical risk on food prices: Considering the Russo–Ukrainian conflict. Finance Research Letters, 49, 103103. doi: 10.1016/j.frl.2022.103103.

Saluschev, S. (2014). Annexation of Crimea: Causes, analysis and global implications. Global Societies Journal, 2, 3746.

Sezer, O. B., & Ozbayoglu, A. M. (2018). Algorithmic financial trading with deep convolutional neural networks: Time series to image conversion approach. Applied Soft Computing, 70, 525538. doi: 10.1016/j.asoc.2018.04.024.

Shynkevich, Y., McGinnity, T. M., Coleman, S. A., Belatreche, A., & Li, Y. (2017). Forecasting price movements using technical indicators: Investigating the impact of varying input window length. Neurocomputing, 264, 7188. doi: 10.1016/j.neucom.2016.11.095.

Taghian, M., Asadi, A., & Safabakhsh, R. (2022). Learning financial asset-specific trading rules via deep reinforcement learning. Expert Systems with Applications, 195, 116523. doi: 10.1016/j.eswa.2022.116523.

Tao, R., Su, C.-W., Xiao, Y., Dai, K., & Khalid, F. (2021). Robo advisors, algorithmic trading and investment management: Wonders of fourth industrial revolution in financial markets. Technological Forecasting and Social Change, 163, 120421. doi: 10.1016/j.techfore.2020.120421.

Vijh, M., Chandola, D., Tikkiwal, V. A., & Kumar, A. (2020). Stock closing price prediction using machine learning techniques. Procedia Computer Science, 167, 599606. doi: 10.1016/j.procs.2020.03.326.

Weerts, H. J., Mueller, A. C., & Vanschoren, J. (2020). Importance of tuning hyperparameters of machine learning algorithms. arXiv preprint arXiv:2007.07588.

Weng, B., Ahmed, M. A., & Megahed, F. M. (2017). Stock market one-day ahead movement prediction using disparate data sources. Expert Systems with Applications, 79, 153163. doi: 10.1016/j.eswa.2017.02.041.

White, S., & McAllister, I. (2009). Rethinking the ‘orange revolution’. Journal of Communist Studies and Transition Politics, 25(2-3), 227254. doi: 10.1080/13523270902903947.

Corresponding author

Yaohao Peng is the corresponding author and can be contacted at: peng.yaohao@enap.gov.br

About the authors

Yaohao Peng is also affiliated with the National School of Public Administration, Brasília, Brazil.

João Gabriel de Moraes Souza is also affiliated with the Department of Economics and Data Science, IDP Brasilia, Brasília, Brazil.

Related articles