scieee AI-readable full text Open interactive document viewer

Machine learning in futures markets

Waldow, Fabian,Schnaubelt, Matthias,Krauss, Christopher,Fischer, Thomas G.

Abstract

EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.

Full text

Waldow, Fabian; Schnaubelt, Matthias; Krauss, Christopher; Fischer, Thomas G. Article Machine learning in futures markets Journal of Risk and Financial Management Provided in Cooperation with: MDPI – Multidisciplinary Digital Publishing Institute, Basel Suggested Citation: Waldow, Fabian; Schnaubelt, Matthias; Krauss, Christopher; Fischer, Thomas G. (2021) : Machine learning in futures markets, Journal of Risk and Financial Management, ISSN 1911-8074, MDPI, Basel, Vol. 14, Iss. 3, pp. 1-14, https://doi.org/10.3390/jrfm14030119 This Version is available at: https://hdl.handle.net/10419/239535 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by/4.0/ Journal of Risk and Financial Management Article Machine Learning in Futures Markets Fabian Waldow ∗, Matthias Schnaubelt , Christopher Krauss and Thomas Günter Fischer   Citation: Waldow, Fabian, Matthias Schnaubelt, Christopher Krauss, and Thomas Günter Fischer. 2021. Machine Learning in Futures Markets. Journal of Risk and Financial Management 14: 119. https:// doi.org/10.3390/jrfm14030119 Academic Editor: Anastasios G. Malliaris Received: 16 February 2021 Accepted: 8 March 2021 Published: 13 March 2021 Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. Copyright: © 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/). Department of Statistics and Econometrics, University of Erlangen-Nürnberg, 90403 Nürnberg, Germany; [email protected] (M.S.); christopher[email protected] (C.K.); [email protected] (T.G.F.) *Correspondence: [email protected] Abstract: In this paper, we demonstrate how a well-established machine learning-based statistical arbitrage strategy can be successfully transferred from equity to futures markets. First, we preprocess futures time series comprised of front months to render them suitable for our returns-based trading framework and compile a data set comprised of 60 futures covering nearly 10 trading years. Next, we train several machine learning models to predict whether the h -day-ahead return of each future out- or underperforms the corresponding cross-sectional median return. Finally, we enter long/short positions for the top/flopk futures for a duration of h days and assess the financial performance of the resulting portfolio in an out-of-sample testing period. Thereby, we find the machine learning models to yield statistically significant out-of-sample break-even transaction costs of 6.3 bp—a clear challenge to the semi-strong form of market efficiency. Finally, we discuss sources of profitability and the robustness of our findings. Keywords: statistical arbitrage; futures markets; machine learning 1. Introduction Futures allow market participants to capitalize on substantial leverage. Hence, they represent an appealing asset class for statistical arbitrage trading. For instance, the tremendous success story of one of the world’s largest quantitative hedge funds, Renaissance Technologies, begins with futures trading (Zuckerman 2019). To make predictions about future price changes, traders rely on statistical models and machine learning but remain secretive about any details. Not surprisingly, the use of financial machine learning for statistical arbitrage also attracts academic research, yet most work focuses on equity markets (see Henrique et al. (2019) and Sezer et al. (2020) for a review of recent research). For example, Takeuchi and Lee (2013) use Boltzmann machines, which are a form of deep neural networks, to exploit stock momentum effects. Their trading strategy yields average annualized returns of around 46 percent before transaction costs from 1990 to 2009. With a similar methodology, Krauss et al. (2017) examine a statistical arbitrage strategy for all the S&P 500 constituents and expand the model space to random forests, gradient-boosting classifiers, deep neural networks and an equal-weight ensemble model. The ensemble strategy performs best, with an average daily return of 0.45 percent before transaction costs throughout the testing period from 1992 to 2015. Statistical arbitrage strategies in futures markets are most often spread trading strategies 1 . For example, Girma and Paulson (1999) find that price spreads between energy futures and their respective end products exhibit a stationary relationship. After accounting for transaction costs, annualized returns amount to more than 15 percent. Simon (1999) studies a spread-trading arbitrage strategy by examining the relationships between soybean futures and their respective end products. Based on the assumption of a cointegration relationship between wholesale electricity futures and natural gas futures, the strategy of Nakajima (2019) trades deviations from the short-term equilibrium and yields profits 1See, for example, Krauss (2017) for a recent survey of spread trading strategies in equity markets. J. Risk Financial Manag. 2021,14, 119. https://doi.org/10.3390/jrfm14030119 https://www.mdpi.com/journal/jrfm J. Risk Financial Manag. 2021,14, 119 2 of 14 of around 30 percent at maximum. As one of the first applications of financial machine learning in future markets, Dixon et al. (2017) leverage a deep neural network to predict the price changes of futures over a 5 minute time window. A total of 43 futures is traded throughout a trading simulation ranging from June 1989 to March 2013. To our knowledge, to date, no study has systematically transferred a well-established machine learning-based statistical arbitrage strategy from equity to futures markets, hereby directing particular emphasis on the specifics when implementing a returns-based trading system while considering nearly a decade of minute-binned intraday market data. With this paper, we seek to fill this gap. Specifically, we contribute to the existing literature in the following ways: First, based on established methodology, we develop a financial machine learning system that addresses challenges specific to returns-based trading strategies in futures markets. For this purpose, we describe and perform the necessary backward ratio data adjustment to obtain a historical time series that is adjusted for artificial price gaps when combining various front months of a given future. Next, we deploy a rules-based selection mechanism to identify and select futures suitable for trading. Finally, we generate features and a target to train machine learning models with the aim of predicting a future’s price change relative to the median return. Second, we derive trading signals from the model’s predictions and subject them to a rigorous backtest under realistic conditions: To avoid spurious returns from microstructural effects, we assume that futures are traded at the volume-weighted-average price over extended time periods. To render the trading simulation more realistic, we introduce a time delay of one minute between the generation of signals and the execution of orders. The baseline trading strategy yields annualized returns of 16.2 percent before transaction costs at a Sharpe ratio of 1.19. On a daily basis, we find statistically significant break-even transaction costs of 6.3 bp, which clearly indicates the profit potential of the implemented strategy under the consideration of typical transaction costs in futures markets. Third, we analyze the sources of profitability as well as the robustness of the trading strategy. We find that the size of the traded portfolio is a major determinant of the strategy’s performance, i.e., the strength of the trading signal generated by our machine learning models decreases with the number of futures included in the portfolio. For example, reducing the number of futures in the portfolio by a factor of three more than doubles the resulting trading returns, yet at the cost of an increased strategy risk. Furthermore, we find that short-term returns represent the most important features, which we interpret as an exploitation of short-term reversal effects in futures markets by the implemented models. In a concluding analysis, we study our strategy’s performance when prolonging the holding period. We find that break-even transaction costs increase to up to 24.2 bp for a three-day holding period, accompanied by an improvement in risk-return metrics. The remainder of this paper is organized as follows: In Section 2, we describe the data set used for this study. Section 3details all the building blocks of our methodology such as the generation of features and targets, the model training, the generation of the trading signals, and the backtesting framework. Our results are presented in Section 4. Finally, we conclude and outline further research directions in Section 5. 2. Data and Software 2.1. Data The data set used in this paper is collected from DTN IQFeed (IQF) (iqfeed.net 2019) via their official application programming interface and is composed of minute-binned futures time series ranging from 28 April 2005, to 1 April 2019. For each of the 1225 collected continuous futures time series, a timestamp with time zone and open, high, low, and close prices as well as the minutely trading volume is provided by IQF. All time series are constructed as a concatenation of front months. To our knowledge, the data set used by Dixon et al. (2017) most closely resembles ours. However, our data set is comprised of a J. Risk Financial Manag. 2021,14, 119 3 of 14 larger futures universe, has a longer time horizon and is of higher data frequency, making it a unique futures data set in the statistical arbitrage literature. Based on the collected data, we construct adjusted futures time series by utilizing backward ratio adjustment, a method used in both academic studies (see, e.g., Dare 2017; Masteika et al. 2012) and industry (see, e.g., Stevens Analytics 2019;Vojtko and Padysak 2020). Backward ratio adjustment yields continuous futures time series with favorable characteristics for returns-based backtesting frameworks. It works as follows: First, the price difference between the current front month and the remaining historical time series is calculated. Second, the historical time series is shifted according to the calculated price gap by multiplying it by a constant factor. The factor is derived by calculating the ratio between the first price of the current front month and the last price of the remaining historical time series. This procedure is propagated backwards until all the price discontinuities are eliminated. We apply backward ratio adjustment to the collected time series for the following reasons: First, performing no adjustment could lead to the occurrence of significant price gaps between two front months, due to contango or backwardation effects. In our trading simulation, those gaps lead to artificial profits or losses that are not realized (Stevens Analytics 2019). By applying backward ratio adjustment, the occurring price gaps are removed, while the relative price level is preserved. Second, although alternative adjustment methods (e.g., backward panama canal or forward panama canal) eliminate existing price gaps, those methods could lead to a loss of relative price levels and negative prices could occur. Consequently, the calculated profits in our returns-based backtesting framework would be incorrect. 2.2. Software The trading simulation in this paper is programmed with Python 3.7 (Python Software Foundation 2018). Data processing is performed based on the packages NumPy (Harris et al. 2020) and Pandas (McKinney 2010). The package scikit-learn (Pedregosa et al. 2011) is used for the implementation of the logistic regression and the random forest. The gradient-boosting classifier is implemented via lightgbm (Ke et al. 2017). The packages Statsmodels (Seabold and Perktold 2010) and Empyrical (Quantopian Inc. 2016) are used for statistical analysis and performance evaluation. 3. Methodology The methodology of this paper consists of four steps. First, the available data set is divided into seven consecutive study periods, each consisting of in-sample training sets and out-of-sample trading sets. In each study period, we construct a unique futures universe, i.e., the futures permitted for trading, based on simple rules (Section 3.1). Second, the features and targets used for model training and forecasting are constructed ( Section 3.2 ). Third, logistic regression, random forest and gradient-boosting classifiers are trained ( Section 3.3 ). Fourth, the trained models are used to generate directional out-of-sample predictions, which are transformed into trading signals and evaluated in a returns-based backtesting framework (Section 3.4). 3.1. Study Periods and Training–Trading Sets We employ a rolling-window forward validation scheme (see, e.g., Krauss et al. 2017;Schnaubelt 2019) and initially split our data set into seven study periods consisting of 1000 days each. Within each study period, the first 750 days are used to perform insample model training, and the subsequent 250-day-long trading period is used to make out-of-sample predictions. Each training–trading set is strictly non-overlapping to avoid look-ahead biases while making the model predictions. In total, the seven consecutive study periods range from 2 February 2009, to 5 September 2018. Subsequently, we apply the following rules to the available training data within each study period to create the trading universe comprised of 60 futures: First, futures time J. Risk Financial Manag. 2021,14, 119 4 of 14 series based on missing data are dropped. Second, futures that are not suitable for our returns-based trading simulation are excluded. In particular, we exclude ratio futures and Trade at Settlement futures from our available futures universe. Third, trading hours and market liquidity can vary substantially across futures exchanges. We hence restrict our trading activities to Europe and the U.S. and, thus, to some of the largest futures exchanges worldwide. Because we opt for the U.S.–European overlap when executing daily orders, we maximize the number of simultaneously tradable futures characterized by high market liquidity. Fourth, futures must be listed on the respective futures exchange for more than 90 percent of the training period to ensure sufficient training data for our machine learning models. Fifth, the remaining futures are ranked by their standard deviations in descending order. To obtain daily returns that have the potential to outweigh market transaction costs, only the 60 most volatile futures become constituents of the trading universe of the respective study period. Note that the selection criteria outlined above are only applied to the training set in each individual study period to rule out look-ahead biases. 2 In each study period, the training and trading sets consist of 60 × 750 = 45,000 and 60 × 250 = 15,000 observations, respectively. 3.2. Generation of Features and Targets In this section, we compute volume-weighted average prices (Section 3.2.1), which we then use to construct features (Section 3.2.2) and the corresponding target (Section 3.2.3). 3.2.1. Volume-Weighted Average Prices For each future in the comprised trading universe, we use a one-dimensional vector of volume-weighted average prices (VWAP) for the computation of features and targets. VWAPs yield the average price of a future in a specified time window weighted by the corresponding trading volume (Berkowitz et al. 1988). We calculate features and targets based on VWAPs for two reasons. First, VWAPs counter market impact costs (Berkowitz et al. 1988). Less-liquid futures are thinly traded, and a single large trade can significantly influence prices. As a futures contract’s price shall not be influenced through our own trades, daily orders are split into smaller parts that are executed over the specified trading window instead of at a single point in time. It is assumed that the execution price of the entire order is equal to the calculated VWAP. Second, trading based on VWAPs increases the probability that orders can be executed at times of low market liquidity through a sufficiently long trading window. To render the trading simulation more realistic, we calculate two consecutive, nonoverlapping VWAPs each day based on a time interval of 60 min with a gap of one minute in between. Considering the temporal order, the first VWAP ( Ve ) ranges from 9:30 a.m. EST to 10:30 a.m. EST. The second VWAP ( Vr ) is defined from 10:31 a.m. EST to 11:31 a.m. EST. On each day, Ve serves as the last price that is used for signal generation. Subsequently, positions are entered at the price of Vr . After a holding period of h days, the positions are unwound within the Veof the respective day. 3.2.2. Features Following the approach of Takeuchi and Lee (2013) and Krauss et al. (2017), the feature space is comprised of 31 features, which are generated based on multi-period VWAP returns with various time lags l . The return Rlf,t for each future f over l time lags is defined as Rlf,t=Ve f,t Vr f,t−l−1. (1) 2By not including the trading set, we only consider information that is available up to the time of predicting out of sample. J. Risk Financial Manag. 2021,14, 119 5 of 14 To capture short-term price movements, we include returns of the past 20 days and increase the return frequency thereafter to steps of 20 days to account for longer-term trends in the data. Consequently, we consider l∈ { 1, 2, ..., 20 }∪{ 40, 60, ..., 240 } , which corresponds to approximately one trading year. 3.2.3. Targets Targets are constructed based on returns Rh f,t+h with a holding period of h days, which are transformed into a binary target variable Yh f,t+h∈ { 0, 1 } for each future f as follows: In each period t , we compute the cross-sectional median over all the futures’ returns. Based on that, the binary target variable of future f is set to one if its h -day-ahead return Rh f,t+h outperforms the corresponding cross-sectional median and zero otherwise. The trained models forecast probabilities based on a binary classification problem, which can be interpreted as a daily probability pf,t+h for each future in the trading portfolio outperforming its cross-sectional median. Since we consider returns of up to 240 days in the past, the first 240 days in the training set of each study period are lost. Consequentially, training matrices of 30,600 × 32 and trading matrices of 15,000 × 32 are considered in each study period. 3.3. Models 3.3.1. Logistic Regression We follow Fischer et al. (2019) and include a logistic regression (LR) model as an easy-to-interpret benchmark. LR models map a given feature space (explanatory variables) to the corresponding target (dependent) variable by establishing a linear relationship (Kleinbaum and Klein 2010). As the model’s name indicates, the mapping comes in the form of the logistic function, which for a binary classification problem is defined as y=f(x) = 1 1+e−(α+βx), (2) where y , x , α and β denote the target variable, the feature variables, the intercept and the regression coefficients, respectively. We use the implementation of Pedregosa et al. (2011) for the logistic regression and select the same parameters as given in Fischer et al. (2019): The optimal L2 regularization is determined from 100 logarithmically spaced values from 10 −4 to 10 5 via 5-fold cross-validation on the respective training set. L-BFGS is used to fit the model with a maximum number of 100 iterations. 3.3.2. Random Forest We rely on random forests (RF) as our first machine learning model. Hereby, we follow Krauss et al. (2017), Huck (2019) and Schnaubelt et al. (2020), who independently find that RFs outperform alternative machine learning algorithms in returns-based trading simulations implemented in equity markets. First introduced by Ho (1995) and Breiman (2001), RFs are ensemble models comprised of a set of decorrelated weak learners in the form of binary decision trees. Each decision tree is fitted to a subsample of the entire training set. The objective of the decision tree is to learn if–then–else rules based on the features of the subsample, with the goal of maximizing the purity of the corresponding target classes. A given subsample is best split such that observations with distinct target variables are divided by the established if–then–else rules of the decision tree. For each decision tree, the training process is repeated until it is fully grown, which is the case if all the observations are pure, meaning that they are solely of the same class, or until a maximum tree depth j is reached. As each decision tree in the RF is fitted to a different subsample of the entire training set, they are likely to come up with different decision rules. Consequentially, when classifying an unknown input, the learned decision rules could result in a different prediction outcome for each decision tree. The RF J. Risk Financial Manag. 2021,14, 119 6 of 14 considers all the classifications made by its individual decision trees and assigns a final output class based on majority voting—a method also known as bootstrap aggregation. We follow Krauss et al. (2017) with respect to the parameterization of the RF. To mitigate the risk of overfitting the training set, the maximum tree depth j is set to 20. In general, larger numbers of decision trees increase the predictive power of a given RF at a rate that is highly dependent on the underlying data set. Similarly, large RFs can become computationally costly, leading to a trade-off between the marginal increase in prediction accuracy due to an additional decision tree and computational efficiency. Because Krauss et al. (2017) have demonstrated that setting the number of decision trees n to 1000 yields promising results when trading based on RFs in equity markets, we use it as a benchmark for our parameter setup. The number of features considered at each split is set to √p , where p is the total number of available features in each subsample. The seed is set to one. All the other parameters are left at their default values (Pedregosa et al. 2011). 3.3.3. Gradient-Boosting Classifier As a second machine learning model, we follow Krauss et al. (2017) and apply a gradient-boosting classifier (GBC). Analogous to RFs, GBCs predict based on a set of weak learners in the form of binary decision trees. However, GBCs make use of boosting. Specifically, the individual decision trees are trained sequentially, and subsequent decision trees learn from the errors of previous decision trees by assigning training weights to the observations. In each iteration, a decision tree is fitted to a subset of the training data. Once fitted, the accuracy of the respective decision tree is evaluated, and misclassified observations receive large training weights, which increases the probability that those observations are included in the training set of the subsequent decision tree. Correctly classified observations have their weights decreased. Once all the decision trees are fitted and the sequential fitting process is completed, the GBC conducts a weighted majority vote based on all the predictions of the weak learners. Due to the sequential optimization process, GBCs are more prone to overfitting compared to RFs. Consequentially, we reduce the number of individual decision trees n and the maximum tree depth j to 100 and 5, respectively. All the other parameters are left at their default values (Ke et al. 2017). 3.4. Signal Generation and Backtesting Framework We obtain trading signals by ranking the predicted probabilities pf,t+h for each future f and day t in descending order. Due to construction, this leads to a distribution where the futures predicted to most likely outperform the cross-sectional median in period t+h are located at the top, and vice versa. Long positions are entered for the top-k futures and short positions, for the flop-k futures in period t . The positions are held for h days and unwound in period t+h . The remaining futures in the ranking are not subject to any trading activity. 4. Results This chapter discusses our results and is structured as follows. First, we evaluate the model performance and feature importance in a baseline scenario (Section 4.1). Second, we compare the model performance with regard to changes in the number of futures we trade each day (Section 4.2). Third, the impact of various holding periods on the model performance is evaluated (Section 4.3). 4.1. Baseline Results In this subsection, we show results for the following baseline scenario. We trade the top/flop three (k= 3 ) futures, i.e., we go long the 5 percent of the futures with the highest prediction and short the 5 percent with the lowest prediction, which corresponds to 10 percent of the available futures universe. Hereby, we follow Krauss et al. (2017) and hold our positions for one day (h=1). J. Risk Financial Manag. 2021,14, 119 7 of 14 4.1.1. Model Performance Table 1shows common performance metrics over the seven study periods of our trading simulation for the LR, GBC, RF and general market (MKT). The last is defined as a simple buy-and-hold strategy where the available capital is equally invested in the futures contracts of our universe at the beginning of each trading period. The daily value at risk (VaR) calculates the expected maximum loss based on the implemented trading strategy each day. The Sharpe Ratio is defined as the annual rate of return minus the return of a risk-free investment scaled by the standard deviation. Consequentially, it can be understood as the return per unit of risk. The Sortino ratio is a variation of the Sharpe ratio where the computed standard deviation is restricted to downside deviations. The Calmar ratio is defined as the ratio between the average annual return and the corresponding maximum drawdown. Daily return characteristics: For the analysis of daily returns, we follow Focardi et al. (2016) and consider break-even transaction costs, i.e., the transaction costs that lead to zero returns. In Panel A of Table 1, we see that all three models exhibit positive break-even transaction costs. Long positions clearly outperform short positions, which is likely driven by the overall upward market sentiment throughout the trading simulation. Considering only short positions, the break-even transaction costs of the LR turn negative to − 1.5 bp, while those of the GBC and the RF remain positive. Except for the LR, we find that the realized break-even transaction costs are statistically significant. Trading based on the RF and the GBC leads to a positively skewed return distribution, which is a favorable trait for investors due to the occurrence of few very large positive returns and frequent small positive or negative returns. Table 1. Strategy performance of baseline scenario. Daily return characteristics (Panel A), daily risk characteristics (Panel B) and annualized risk-return metrics (Panel C) for the logistic regression (LR), gradient-boosting classifier (GBC), random forest (RF) and general market (MKT). Performance characteristics are illustrated for the top/flop three trading strategy (k= 3 ) and a holding period of one day (h= 1 ) . NW denotes Newey–West standard errors with one-lag correction. Daily value at risk (VaR) is calculated at the 95.0 percent confidence level. LR GBC RFC MKT ABreak-even transaction cost 0.00009 0.00061 0.00063 0.00024 Break-even transaction cost (long) 0.00052 0.00109 0.00118 - Break-even transaction cost (short) −0.00015 0.00013 0.00007 - t-Statistic (NW) 0.30579 2.62765 3.11186 2.52548 Minimum −0.12808 −0.04298 −0.04027 − 0.02482 Quartile 1 −0.00590 −0.00459 −0.00330 − 0.00214 Median 0.00028 0.00029 0.00016 0.00033 Quartile 3 0.00590 0.00524 0.00421 0.00252 Maximum 0.09844 0.09933 0.11678 0.01877 Standard deviation 0.01224 0.00965 0.00841 0.00396 Skewness −0.32935 0.87212 2.09778 − 0.03325 Kurtosis 11.56410 9.18384 25.57640 2.55999 Share >0 0.50874 0.51573 0.51573 0.53555 B VaR −0.02439 −0.01871 −0.01620 − 0.00768 Maximum drawdown −0.34114 −0.18039 −0.16953 − 0.08429 C Annualized return 0.00383 0.15331 0.16232 0.06067 Calmar ratio 0.01124 0.84986 0.95750 0.71971 Sharpe ratio 0.11715 1.00666 1.19216 0.96752 Sortino ratio 0.16416 1.58896 2.00973 1.43528 J. Risk Financial Manag. 2021,14, 119 8 of 14 Daily risk characteristics: Compared to the MKT, the significantly larger returns realized by the GBC and the RF come at the cost of increased risk. As illustrated in Panel B of Table 1 , both the VaR and the maximum drawdown of the tree-based models are more than twice the level of the MKT. Annualized risk-return metrics: According to Panel C of Table 1, we find that the three models exhibit positive annualized returns of 0.4 percent, 15.3 percent and 16.2 percent for the LR, GBC and RF, respectively. The tree-based models clearly outperform the MKT (6.1 percent), while the LR falls behind. Considering risk-adjusted returns, the tree-based models compare favorably to the LR and the MKT. The Sharpe ratios range from 0.11 (LR) to 1.19 (RF). Cumulative returns: The above findings translate into cumulative returns as depicted in Figure 1. The MKT outperforms the LR by a delta of more than 25 percent by the end of the trading simulation. By contrast, trading based on the GBC and the RF compares favorably to the performance of the MKT. Thereby, the seven study periods can be divided into two parts. Between 2012 and 2015, the MKT accumulates returns similar to those of the RF and is clearly outperformed by the GBC. From 2015 onwards, both the MKT’s and the tree-based model’s profit accumulation follows an upward trend, however, that of the GBC and the RF is more pronounced. The improved performance of the tree-based models in the second half of the trading simulation may be due to the fact that the number of tradable futures increases from 73 in the first study period to 98 in the last study period. As such, our rules-based portfolio construction mechanism can choose from a greater futures universe in the later study periods. Because futures markets typically allow for large degrees of leverage (Ang et al. (2011) estimate a range of 10 to 50), the results present a lower boundary for the profit potential of our trading strategy. Figure 1. Cumulative returns for baseline strategy. Cumulative returns expressed in percentage terms for the top/flop three trading strategy (k= 3 ) for the logistic regression (LR), gradient-boosting classifier (GBC), random forest (RF) and general market (MKT) over the seven-period-long trading simulation with a holding period of one day (h=1). Compared to the LR, the tree-based models lead to increased model complexity and computational costs. However, the tree-based trading strategies outperform those based on the LR by far. Consequentially, the benefits in terms of profit accumulation clearly outweigh the additional efforts when trading based on the RF and the GBC.