Full text
MDSAA Master’s Degree Program in Data Science and Advanced Analytics TREND FOLLOWING ALGORITHMIC TRADING WITH A REDUCED UNIVERSE OF CRYPTOCURRENCIES Using unsupervised learning for universe reduction and trend following strategies to generate profits André Otão Pereira Dissertation presented as partial requirement for obtaining the Master Degree Program in Data Science and Advanced Analytics NOVA Information Management School Instituto Superior de Estatística e Gestão de Informação
Universidade Nova de Lisboa NOVA Information Management School Instituto Superior de Estatística e Gestão de Informação Universidade Nova de Lisboa Trend following algorithmic trading with a reduced universe of cryptocurrencies Using unsupervised learning for universe reduction and trend following strategies to generate profits by André Otão Pereira Dissertation presented as partial requirement for obtaining the Master’s Degree in Data Science and Advanced Analytics, with a Specialization in Data Science Supervisor: Mauro Castelli May 2024
ii STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledge the Rules of Conduct and Code of Honor from the NOVA Information Management School. André Otão Pereira Lisboa, May 2024
iii DEDICATION I want to express my gratitude to my parents for always believing in me and encouraging me to aim higher than ever I thought possible. To my brothers, I want to express my heartfelt gratitude for the paths you've chosen, which have served as a constant source of inspiration and guidance for me. I want to extend my sincere thanks to Ahmed Assad and Tomás Juhos for their incredible patience and willingness to help me through the ups and downs of professional life. Lucas Carvalho and Duarte Caldas, your insightful talks on finance have been incredibly influential in shaping the direction of this project. To all my friends, thank you for your unwavering support and friendship throughout this journey. Your kindness and hard work inspire me. Here's to many more adventures together.
iv ABSTRACT Cryptocurrencies have revolutionized trading with their decentralized and volatile nature, presenting unique opportunities for trend-following strategies. This study investigates the enhancement of such strategies by implementing a reduction in the universe of cryptocurrencies based on their similarities, aiming to improve trading performance. Additionally, a market momentum classification will be constructed to analyze and compare performance across different market momentum environments. By utilizing Support Vector Machines (SVM) and Principal Component Analysis (PCA), the overall universe of cryptocurrencies is reduced to the most similar cryptocurrencies based on metrics of momentum, growth, and technical analysis. This approach aims to address market overload caused by the considerable number of available cryptocurrencies, removing the most erratic cryptocurrencies. To assess the efficacy of two trend-following trading strategies—an equally weighted portfolio approach and a time-weighted portfolio approach—we will utilize a momentum-based trading strategy serving as our benchmark. All strategies will be used with the reduced universes produced by our method. Additionally, a market momentum classification will be constructed using market capitalization data of the crypto market, with the goal of gaining relevant insights into the effects of the overall market momentum environment on the performance of the algorithmic trading strategies and reduced universe combinations. The innovation lies in the method of reducing the cryptocurrency universe by identifying the most similar tokens during the same period while asserting the value of unsupervised learning models like SVM and PCA in enhancing trend-following trading strategies by reducing complexity. In summary, this research underscores the critical differences in short and long trend formation periods, the effectiveness of trend-following approaches, and the superior performance of time-weighted portfolios, demonstrating how SVM and PCA can enhance algorithmic trading strategies by reducing complexity and optimizing profitability in the dynamic cryptocurrency market. KEYWORDS Crypto Currencies; Machine Learning; Unsupervised Learning; Algorithmic Trading; Trend Following Sustainable Development Goals (SGD):
v Content 1. Introduction ...................................................................................................... 10 1.1 Motivation ................................................................................................ 10 1.2 Aim and Objectives ................................................................................... 11 1.3 Research Questions ................................................................................... 11 1.4 Outline of the Research ............................................................................. 12 2. Literature Review .............................................................................................. 13 2.1. Crypto ....................................................................................................... 13 2.1.1. Crypto Currencies .............................................................................. 13 2.1.2. Crypto Market ................................................................................... 13 2.2. Algorithmic Trading ................................................................................... 14 2.2.1. Time Series ........................................................................................ 14 2.2.2. Trend Following ................................................................................. 14 2.3. Machine Learning Methods ....................................................................... 14 2.3.1. Support vector machine ..................................................................... 15 2.3.2. Principal component analysis ............................................................. 15 2.3.3. Anomalies and outliers ...................................................................... 15 2.3.4. Anomaly Detection ............................................................................ 16 2.4. Metrics Relevance ..................................................................................... 17 2.4.1. Momentum ....................................................................................... 17 2.4.2. Technical Indicators ........................................................................... 17 3. Data .................................................................................................................. 18 3.1. Data Source............................................................................................... 18 3.2. Data Ingestion ........................................................................................... 18 3.2.1. Raw Field Descriptions ....................................................................... 18 3.3. Data Preparation ....................................................................................... 19 3.3.1. Feature Engineering ........................................................................... 19 3.4. Data Normalization ................................................................................... 22 4. Methodology .................................................................................................... 24 4.1. Architecture .............................................................................................. 24 4.2. Parameterized Universe Formation ............................................................ 25 4.2.1. Metrics Groups .................................................................................. 26
vi 4.2.2. Lookback Period ................................................................................ 27 4.2.3. Selection Method .............................................................................. 27 4.2.4. Universe Size ..................................................................................... 28 4.3. Algorithmic Trading Strategies Back Testing ................................................ 29 4.3.1. Strategy Type ..................................................................................... 29 4.3.2. Portfolio Weight ................................................................................ 31 4.4. Market Momentum Signal ......................................................................... 31 4.5. Evaluation Metrics ..................................................................................... 32 5. Results and Analysis .......................................................................................... 35 5.1. Results ...................................................................................................... 35 5.1.1. Best overall value per parameter ........................................................ 35 5.1.2. Parameter Combination Analysis ........................................................ 37 5.1.3. Top Ranked Combinations Analysis ..................................................... 40 5.2. Discussion ................................................................................................. 41 5.3. Limitations ................................................................................................ 42 6. Conclusions ....................................................................................................... 44 6.1. Academic Contribution .............................................................................. 44 6.2. Future Work .............................................................................................. 44 Bibliographical References ........................................................................................ 46 Appendix A ........................................................................................................... 51 Appendix B ........................................................................................................... 51 Appendix C ........................................................................................................... 51 Appendix D ........................................................................................................... 51 Appendix E ........................................................................................................... 52
vii LIST OF FIGURES Figure 3.1: Candlestick chart with hourly candles of the pair Bitcoin / USD Tether. ..... 18 Figure 3.2: Simple Percentage Change Equation ........................................................ 20 Figure 3.3: Simple Moving Average Equation ............................................................. 20 Figure 3.4: Exponential Moving Average Equation ..................................................... 20 Figure 3.5: Bollinger Band Equations ......................................................................... 21 Figure 3.6: Relative Strength Index Equation ............................................................. 22 Figure 3.7: Coefficient of Variance Equation .............................................................. 22 Figure 3.8: Min-max Formula .................................................................................... 23 Figure 4.1: Hierarchical Flow of Information in the Proposed Solution........................ 24 Figure 4.2: Parameterization Exploration for Universe Formation ............................... 26 Figure 4.3: SVM selection method example. .............................................................. 28 Figure 4.4: PCA selection method example. ............................................................... 28 Figure 4.5: Algorithmic Trading Strategy workflow. .................................................... 29 Figure 4.6: Average Profit & Loss Equation ................................................................ 32 Figure 4.7: Sharpe Ratio Equation ............................................................................. 32 Figure 4.8: Sortino Ratio Equation ............................................................................. 33 Figure 4.9: Max Draw Down Equation ....................................................................... 33 Figure 4.10: Kurtosis Equation .................................................................................. 34 Figure 4.11: Skewness Equation ................................................................................ 34 Figure 5.1: Net and Gross Returns of Best Long portfolio. .......................................... 38 Figure 5.2: Net and Gross Returns of Best Short portfolio. ......................................... 39 Figure 5.3: Bear Market Optimal Combination Flow .................................................. 40
viii LIST OF TABLES Table 3.1: Description and Type of Data for All Fields Ingested Each Hour .................. 19 Table 4.1: Metrics Groups for Universe Formation ..................................................... 27 Table 5.1: Parameter Overview ................................................................................. 35 Table 5.2: Selection Method Analysis. ....................................................................... 36 Table 5.3: Portfolio Action analysis. ........................................................................... 36 Table 5.4: Market Class Confidence Level Analysis ..................................................... 37
15 patterns by utilizing statistical models and algorithms. There are main categories of machine learning algorithms, each with its unique way of analyzing data. Supervised learning algorithms are taught using labeled data, in which each training instance is linked to a specific goal or result. The objective is for the algorithm to be able to anticipate outcomes based on previously unseen data by learning a mapping function that connects input variables to output variables. Supervised learning is commonly employed in tasks such as diagnosing medical conditions based on patient data and forecasting stock prices using historical and financial indicators. (Kotsiantis, 2007) Unsupervised learning is the training of an algorithm to identify patterns or structures in data without the use of labels or any human interaction. The algorithm autonomously discovers novel insights and connections within the dataset, without requiring any human input or predefined target variables. Unsupervised learning often encompasses tasks such as grouping and dimensionality reduction. Dimensionality reduction techniques, such as principal component analysis (PCA), uncover latent patterns in data with a large number of dimensions (Gentleman & Carey, 2008). Semi-supervised learning algorithms aim to optimize the performance of supervised learning models by leveraging the additional information provided by unlabeled data. This approach excels in scenarios when there is a scarcity of labeled data and a surplus of unlabeled data, a circumstance that is frequently seen in real-world contexts (van Engelen & Hoos, 2020). 2.3.1. Support vector machine Support Vector Machine (SVM) is a supervised learning model adept at handling data classification and regression tasks. Operating effectively in high-dimensional spaces, SVM identifies the optimal hyperplane to maximize the margin between different classes of data points, exhibiting capabilities in both linear and nonlinear classification (Pisner & Schnyer, 2020). However, SVM's performance may suffer with large datasets or in the presence of noise. One-Class SVM, a specific case of the support vector machine, exemplifies unsupervised machine learning. It can train with unlabeled data, distinguishing between inliers and outliers. One-Class SVM achieves this by separating all data points from the origin and maximizing the distance from this hyperplane to the origin (Schölkopf, Williamson, Smola, John , & Platt, 1999). 2.3.2. Principal component analysis Principal Component Analysis (PCA) is a widely used technique for dimensionality reduction, enhancing interpretability by extracting significant features from highdimensional datasets. By projecting data onto a lower-dimensional subspace, PCA improves computational efficiency and minimizes information loss. This method is invaluable for exploratory data analysis, feature extraction, and visualization tasks across diverse domains (Song, Guo, & Mei, 2010). 2.3.3. Anomalies and outliers While the terms "outliers" and "anomalies" are often used interchangeably, their distinction is nuanced yet crucial in data analysis, as they represent distinct concepts
16 with subtle differences in meaning and interpretation. Outliers, as defined by Grubbs (1969), are data points that significantly deviate from the majority of data points in a dataset. These deviations are typically characterized by exceptional values or placements relative to the distribution of the data. Outliers may arise due to measurement inaccuracies, inherent variability, or infrequent occurrences within the data. They are often identified using statistical metrics such as standard deviation, z-scores, or interquartile range, with a focus on the distributional properties of the data. Importantly, outliers do not necessarily imply deviant behavior or pose significant threats to the underlying system or process. As such, they may be treated as benign data points that can be safely ignored or removed from the dataset without significant consequences. On the other hand, anomalies encompass a broader range of atypical or unforeseen observations within a dataset. While outliers represent a subset of anomalies, anomalies can include various types of irregularities, patterns, or behaviors that deviate from expected norms or distributions (Chandola, Banerjee, & Kumar, 2009). Anomalies may arise from systemic failures, fraudulent activities, unexpected events, or emerging trends that are not adequately captured by the existing data model. Consequently, more sophisticated algorithms may be required to identify anomalies that are not readily apparent through simple statistical analyses. The distinction between outliers and anomalies underscores the importance of considering the broader context, domain knowledge, and specific objectives when analyzing data and identifying irregularities. By understanding these distinctions, data analysts and decision-makers can effectively interpret the results of anomaly detection methods and make informed decisions to address potential risks or opportunities within their datasets. 2.3.4. Anomaly Detection Anomaly detection, also known as outlier detection, is a critical task in various fields, including cybersecurity, finance, healthcare, and industrial monitoring (Singh & Upadhyaya, 2012). Anomaly detection techniques leverage various methods, including statistical analysis, machine learning algorithms, and domain-specific knowledge. One common approach is to use machine learning algorithms to automatically learn patterns from data and detect anomalies based on deviations from those patterns. Supervised anomaly detection involves training a model on labeled data, where anomalies are explicitly marked. The model learns to distinguish between normal and anomalous instances based on the provided labels. This approach is effective when labeled data is readily available and when anomalies are well-defined. However, it may not perform well in cases where labeled data is scarce or when anomalies are not clearly defined. Unsupervised anomaly detection, on the other hand, does not require labeled data. Instead, it relies on identifying instances that are significantly different from most of the data. Clustering algorithms, density estimation techniques, and distance-based methods are commonly used in unsupervised anomaly detection. While unsupervised methods are more versatile and applicable to a wide range of scenarios, they may struggle to accurately detect anomalies in complex datasets with high-dimensional features (Guthrie, Guthrie, Allison, & Wilks, 2007).
17 Anomaly detection methods must be carefully selected based on the characteristics of the data and the specific requirements of the application. Factors such as the type of anomalies present, the availability of labeled data, and the computational resources required for training and inference play crucial roles in determining the most suitable approach. 2.4. Metrics Relevance 2.4.1. Momentum Time-series momentum, a strategy focusing on an asset's absolute performance over a historical period, has garnered attention in financial research. Moskowitz et al. (2012) found compelling evidence supporting this strategy across various securities, suggesting that past returns positively predict future returns. This phenomenon, known as the timeseries momentum effect, is attributed to significant autocovariance in returns, particularly during periods of market volatility. However, skepticism exists regarding the robustness of these findings, with some researchers attributing the observed returns to volatility scaling rather than true predictive power (Kim, Tse , & Wald, 2016). Despite its popularity, time-series momentum rules often underperform moving average rules, indicating the complexities of implementing this strategy effectively. 2.4.2. Technical Indicators Technical analysis is a methodology that use historical market data to forecast future price changes. The idea behind its operation is that market activity encompasses all accessible information and that previous pricing patterns tend to recur. Analysts employ a range of techniques and indicators, including moving averages and chart patterns, to discern trends and provide trade recommendations. While technical analysis offers a systematic approach to market analysis, its effectiveness remains unregular over time (Zakamulin, 2014). Some studies suggest that market timing with moving averages can outperform passive strategies, highlighting the potential value of technical analysis in investment decision-making (Kilgallen, 2012).
18 3. Data 3.1. Data Source The foundation of the proposed system relies on a curated collection of time series data, which is fundamental for extracting meaningful features. This study utilizes cryptocurrency time series data sourced from Binance's API, a leading data provider renowned for its extensive coverage of cryptocurrencies. Each time series corresponds to a cryptocurrency exchange pair, consisting of a base currency and a quote currency, and is acquired for a predefined timeframe and frequency. The study focuses exclusively on cryptocurrency pairs with the quote currency USDT (Tether) to ensure that all data points are standardized. While Binance offers a range of time resolutions from one minute to one month, this thesis focuses exclusively on hourly intervals. This strategic decision strikes a balance between granularity and space efficiency, aligning with the objectives of this thesis. This work tracks a total of 457 symbols during the analysis period aiming to achieve a comprehensive yet manageable exploration of cryptocurrency market dynamics. 3.2. Data Ingestion Candlestick charts serve as valuable tools for gaining insights used in various technical indicators. They visually depict the relationship between two assets values over time, typically involving at least one currency. Technical analysis frequently centers on examining these charts to discern patterns and trends. The fundamental unit of a candlestick chart is a candle, which represents a consistent time length. Each candle provides information on the highest, lowest, opening and closing prices for that specific period. Additionally, separate graphs often depict the total asset volume traded and the total number of trades associated with each period. Figure 3.1: Candlestick chart with hourly candles of the pair Bitcoin / USD Tether. 3.2.1. Raw Field Descriptions In the following table, we can observe the description and type of data for all fields ingested each hour. Candle Stick Charts
19 Table 3.1: Description and Type of Data for All Fields Ingested Each Hour Field Name Field description Data Type symbol A trading pair composed of a base currency and a quote currency Text Open Time The start time of the candlestick Timestamp Open Price The price of the asset when the candlestick opened Numeric (25,10) High Price The highest price of the asset during the candlestick's duration Numeric (25,10) Low Price The lowest price of the asset during the candlestick's duration Numeric (25,10) Close Price The price of the asset when the candlestick closed Numeric (25,10) Close Time The closing time of the candlestick Timestamp Quote Asset Volume The volume of the asset traded in terms of the quote asset during the candlestick's duration Numeric (25,10) Number of Trades The number of trades executed during the candlestick's duration Integer Taker Buy Base Asset Volume The volume of the asset bought by takers during the candlestick's duration Numeric (25,10) Taker Buy Quote Asset Volume The volume of the quote asset bought by takers during the candlestick's duration Numeric (25,10) 3.3. Data Preparation A dataset comprises multiple observations, termed a sample, characterized by a set of values referred to as features. Missing data is a prevalent source of errors in code, often triggering exceptions. Attempting to remove missing values may significantly reduce the available data while distorting the truth, a scenario detrimental in machine learning. One of the most familiar challenges encountered in data cleaning and exploratory analysis is managing missing values. To maintain fidelity to Binance's provided truth, this thesis opts not to manage any missing values. Instead, missing data is interpreted as indicative of periods of market or cryptocurrency trading pair inactivity. The dataset undergoes preprocessing and normalization before analysis to optimize the data for said analysis. 3.3.1. Feature Engineering Feature engineering (FE) is a machine learning technique aimed at enhancing the effectiveness of models by transforming raw data into more meaningful variables known as features. By extracting domain-specific features from the data, FE not only accelerates the learning process but also elevates the model's performance, ensuring a more accurate representation of the underlying problem.
20 This work adopts a methodology that calculates percentage changes in variables by means of different speeds (or lookback periods): 𝑅𝑡,𝑡−ℎ 𝑐=𝑃𝑡𝑐 𝑃𝑡−ℎ 𝑐− 1 Figure 3.2: Simple Percentage Change Equation • 𝑅𝑡,𝑡−ℎ 𝑐 is the return of cryptocurrency 𝑐 between hour 𝑡−ℎ and 𝑡 • 𝑃𝑡−ℎ 𝑐 is the price of cryptocurrency 𝑐 at close of hour 𝑡−ℎ • 𝑃𝑡𝑐 is the price of cryptocurrency 𝑐 at close of hour 𝑡 The moving average (MA) is a widely employed technical indicator in financial analysis (Glendrange & Tveiten, 2016). Its primary role is to smooth out short-term fluctuations, improving the interpretation of trends through a line derived from successive averages. As new trading periods unfold, the moving average is recomputed by introducing current information while discarding the oldest information, thereby shifting the average along the time scale. This indicator is therefore classified as a lagging indicator due to its reactive nature relying solely on past prices to confirm trends even though it aids in trend prediction by filtering out noise from random price fluctuations, achieved through averaging a fixed size of historical price levels known as the lookback period. In this thesis, two types of MA are employed: the Simple Moving Average (SMA), which assigns equal weights to all time scales, and the Exponential Moving Average (EMA), which uses exponential weighting with a decay factor 𝜆 as a sensitivity adjustment to recent prices. 𝑆𝑀𝐴𝑡,𝑙=1 𝑙+1 ∑𝑃𝑡−𝑖 𝑐 𝑙 𝑖=0 Figure 3.3: Simple Moving Average Equation 𝐸𝑀𝐴𝑡,𝑙=∑𝜆𝑖𝑃𝑡−𝑖 𝑐𝑙𝑖=0 ∑𝜆𝑖 𝑙𝑖=0 Figure 3.4: Exponential Moving Average Equation • 𝑃𝑡−𝑖 𝑐 is the price of cryptocurrency c at close of hour 𝑡−𝑖 • 𝜆 is the decay factor ,0≺𝜆≼1 • 𝑙 is the lookback period in hours Bollinger Bands (BB) focus on volatility as a key by using standard deviation in band calculations. The bands are made by a central line using SMA, and upper and lower Simple Percentage Change Moving Averages Bollinger Bands
21 bands mirroring this average by standard deviations creating non-symmetric bands unlike moving average envelopes, which shift bands relative to the average. Aimed at creating bands sensitive to extreme deviations with quick reaction to large price fluctuations, this approach suggests a lookback period of twenty units with two standard deviations (Williams, 2006). Bollinger Bands are versatile, applicable to various data frequencies from intraday to monthly. Rather than giving absolute buy or sell signals, Bollinger Bands assess whether prices are high or low relative to recent history. They offer a framework for understanding price movements in relation to indicators, emphasizing a relative perspective. 𝑀𝐵𝑡,ℎ=∑𝑃𝑡−𝑖 𝑐ℎ 𝑖=0ℎ 𝑈𝐵𝑡,ℎ=𝑀𝐵𝑡,ℎ+ 𝐷 √∑(𝑃𝑡−𝑖 𝑐−𝑀𝐵𝑡,ℎ ) ℎ 𝑖=0 ℎ 𝐿𝐵𝑡,ℎ=𝑀𝐵𝑡,ℎ− 𝐷 √∑(𝑃𝑡−𝑖 𝑐−𝑀𝐵𝑡,ℎ ) ℎ 𝑖=0 ℎ 𝐵𝐵𝑃𝑡,ℎ=𝑃𝑡𝑐−𝐿𝐵𝑡,ℎ 𝑈𝐵𝑡,ℎ−𝐿𝐵𝑡,ℎ Figure 3.5: Bollinger Band Equations • 𝑃𝑡−𝑖 𝑐 is the price of cryptocurrency 𝑐 at close of hour 𝑡−𝑖 • ℎ is the number of hours in the lookback period • 𝑡 is the current hour • 𝑀𝐵𝑡,ℎ ,𝑈𝐵𝑡,ℎ 𝑎𝑛𝑑 𝐿𝐵𝑡,ℎ are respectively the Middle, Upper and Lower Band values at the close of hour 𝑡 having a lookback period of ℎ hours • 𝐵𝐵𝑃𝑡,ℎ is the Bollinger Bands Percentage (BBP), which is a metric used to gauge where the current price is relative to the Bollinger Bands. The Relative Strength Index (RSI) serves as a momentum oscillator, evaluating the speed and size of price changes to determine if a market is overbought or oversold. Typically calculated using a lookback period of fourteen units, the RSI compares the average gain of up periods to the average loss of down periods within this timeframe. Its values range from 0 to 100, with readings above 70 indicating overbought conditions and those below 30 suggesting oversold conditions with divergence between RSI and price often anticipating a potential trend reversal (Rani, 2020). 𝑅𝑆ℎ= 𝐴𝑣𝑒𝑟𝑎𝑔𝑒 𝐺𝑎𝑖𝑛ℎ 𝐴𝑣𝑒𝑟𝑎𝑔𝑒 𝐿𝑜𝑠𝑠ℎ Relative Strength Index
22 𝑅𝑆𝐼ℎ=100−( 100 1+𝑅𝑆ℎ) Figure 3.6: Relative Strength Index Equation • ℎ is the number of hours in the lookback period • 𝑡 is the current hour • 𝐴𝑣𝑒𝑟𝑎𝑔𝑒 𝐺𝑎𝑖𝑛ℎ= 𝑆𝑢𝑚 𝑜𝑓 𝐺𝑎𝑖𝑛𝑠𝑡 ℎ • 𝐴𝑣𝑒𝑟𝑎𝑔𝑒 𝐿𝑜𝑠𝑠ℎ= 𝑆𝑢𝑚 𝑜𝑓 𝐿𝑜𝑠𝑠𝑒𝑠𝑡 ℎ • 𝐺𝑎𝑖𝑛𝑠𝑡={∆𝑃𝑡𝑐 | 𝑃𝑡𝑐>0} • 𝐿𝑜𝑠𝑠𝑒𝑠𝑡={∆𝑃𝑡𝑐 | 𝑃𝑡𝑐<0} The coefficient of variation (CV) measures the relative variability of a dataset compared to its average, i.e. 𝐶𝑉= 𝜎 𝜇 Figure 3.7: Coefficient of Variance Equation • Where 𝜎 is the average of the dataset, • And 𝜇 is the measure of the dispersion or variability of the dataset. 3.4. Data Normalization Dataset scaling, or normalization, is a critical preprocessing step in machine learning pipelines aimed at harmonizing feature scales to ensure uniformity. This adjustment is essential for enhancing the performance of classification models. Equalizing the scales of features prevents attributes with larger or wider numerical ranges from dominating those with narrower or lower ranges. This prevents biases that could otherwise arise, ensuring that attributes contribute proportionally to the analysis regardless of scale. Consequently, dataset scaling mitigates bias and improves classification performance. Research consistently supports the idea that scaling data before model training significantly boosts performance compared to using non-scaled data. Selecting the most suitable technique is a crucial methodological decision, as studies have shown that an inappropriate scaling method can be more detrimental than not scaling the data at all. Thus, careful consideration is necessary to optimize model performance (Amorim, Cavalcanti, & Cruz, 2023). Min-max Scaler The Min-max Scaler is a technique used to transform feature scales, ensuring that the transformed values fall within the interval [0,1]. In this method, the scaling factor is Coefficient of Variance
23 determined by the attribute's range, while the minimum value determines the translational vector. As a result, this technique guarantees a new minimum of zero and a new maximum of one. However, it is important to consider that the Min-max Scaler may encounter difficulties in equalizing means and variances of distributions, particularly when dealing with data containing outliers. This limitation should be considered when deciding whether to use this method in data preprocessing. 𝑥𝑖′= 𝑥𝑖− 𝑥𝑚𝑖𝑛 𝑥𝑚𝑎𝑥− 𝑥𝑚𝑖𝑛 Figure 3.8: Min-max Formula
24 4. Methodology The methodology section of this thesis delves into the comprehensive architecture of the framework employed for the analysis. It begins with an overview of the overall design, providing insight into how the various components interact and function cohesively. Following this, each section of the framework is examined in detail, highlighting the specific roles and operations that contribute to the system's performance. By systematically breaking down the architecture and its components, this section aims to offer a clear and precise understanding of the methodology underpinning the research. 4.1. Architecture The system's architectural framework is organized into five hierarchical layers, each designed to support specific stages of data processing and analytical inquiry. Figure 4.1 provides a visual representation of the flow of information within the proposed solution. As depicted, the output of each layer serves as the input for the subsequent layer. Figure 4.1: Hierarchical Flow of Information in the Proposed Solution.
31 • 𝛼 is the slope of linear regression • 𝐴𝑐𝑡𝑖𝑜𝑛𝑐 is the action for cryptocurrency 𝑐 4.3.2. Portfolio Weight The portfolio weight is responsible for determining the weight of each cryptocurrency with the same action of buy or sell until the next rebalancing period of 4 hours. In this thesis, two types of decision criteria were implemented. First, an equally weighted approach was utilized, where all cryptocurrencies are given the same amount of relevance in our portfolio. This method is employed in both the momentum and trend-following trading strategy approaches, and the portfolio weight is defined as: 𝑃𝑜𝑟𝑡𝑓𝑜𝑙𝑖𝑜𝑊𝑒𝑖𝑔𝑡ℎ𝑐=1 ∑𝑐 • Where ∑𝑐 is the summation of cryptocurrencies in the portfolio. Second, the time-weighted approach is solely used with the trend-following strategy. In this approach, the weight of each token in the portfolio is determined by the number of consecutive rebalancing periods it has remained an inlier, it’s duration. This method aims to adjust the portfolio dynamically based on both the trend direction and the token's stability. Additionally, a maximum time limit of five periods is implemented to prevent overly stable coins from dominating the portfolio dynamics, ensuring a balanced allocation. The portfolio weight is defined as: 𝑇𝑖𝑚𝑒𝑐= 𝑚𝑖𝑛(𝑁𝑐,5) 𝑃𝑜𝑟𝑡𝑓𝑜𝑙𝑖𝑜𝑊𝑒𝑖𝑔𝑡ℎ𝑐=𝑇𝑖𝑚𝑒𝑐 ∑𝑇𝑖𝑚𝑒𝑐 • Where 𝑁𝑐 is the number of consecutive rebalance periods with cryptocurrency 𝑐 considered inliner • And ∑𝑇𝑖𝑚𝑒𝑐 is the summation of all 𝑇𝑖𝑚𝑒𝑐 for all cryptocurrencies in the same rebalance period 4.4. Market Momentum Signal In addition to evaluating a reduced universe and a trading strategy component, we aim to assess the combinations' performance across temporal spaces defined as bullish, bearish, or neutral, across multiple confidence levels. These confidence levels serve as parameters that introduce sensitivity regulators for the classification of market momentum. This assessment will help us understand if there is relevant information to be obtained from the overall market momentum that can significantly impact our decision of reduced universe and trading strategy combination, and if so, how important it is. The classification task begins by computing the daily percentage change of the market capitalization data, followed by the calculation of its 5-day simple moving average.
32 Following a systematic approach, we evaluate five confidence levels for classifying daily market momentum. It is important to note that the classification provided for day 𝑑 are used on day 𝑑+ 1 to avoid introducing lookahead bias. The market classification can be defined as: 𝑀𝑎𝑟𝑘𝑒𝑡 𝐶𝑙𝑎𝑠𝑠𝑑+1= { 𝐵𝑢𝑙𝑙, 𝑆𝑀𝐴5 𝑑≥ 𝑏𝑝𝑠 𝑁𝑒𝑢𝑡𝑟𝑎𝑙, − 𝑏𝑝𝑠≤𝑆𝑀𝐴5 𝑑≤ 𝑏𝑝𝑠 𝐵𝑒𝑎𝑟, 𝑆𝑀𝐴5 𝑑≤− 𝑏𝑝𝑠 • 𝑀𝑎𝑟𝑘𝑒𝑡 𝐶𝑙𝑎𝑠𝑠𝑑+1 is the market momentum classification for the day 𝑑 + 1 • 𝑆𝑀𝐴5 𝑑 is the simple moving average of the percentage change over 5 days on the day 𝑑 • 𝑏𝑝𝑠 is the level of confidence in the classification provided • 𝑏𝑝𝑠 ∈ {10,20,30,40,50} in basis points. 4.5. Evaluation Metrics To gauge the strategies' effectiveness, we have crafted a systematic evaluation method. This includes tracking key metrics, namely Average Profit and Loss (APL), Sharpe Ratio, Sortino Ratio, Max Draw Down (MDD), Kurtosis and Skewness which we describe next. Average Profit and Loss (APL) quantifies the gain or loss from a series of trades by averaging the profits and losses of individual rebalancing periods. A high APL suggests a profitable strategy, while a low APL may indicate a less successful approach. 𝐴𝑃𝐿= ∑𝑅𝑖 𝑛 Figure 4.6: Average Profit & Loss Equation • ∑𝑅𝑖 is the time series containing returns on investment • n is the number of rebalancing periods. The Sharpe Ratio is a metric used to evaluate risk-adjusted returns by comparing the excess return of an investment to its risk. While not statistically significant on its own, it serves as a valuable tool for comparing the performance of assets or portfolios. Higher Sharpe ratios indicate better risk-adjusted returns, which is typically preferred by investors (Sharpe, 1998). 𝑆𝑅= 𝑅𝑂𝐼𝑝− 𝑅𝑓 𝜎𝑝 Figure 4.7: Sharpe Ratio Equation Average Profit and Loss Sharpe Ratio
33 • 𝑅𝑂𝐼𝑝 is the average return of the asset/portfolio • 𝑅𝑓 is the risk-free rate • 𝜎𝑝 is the standard deviation of the asset/portfolio The Sortino ratio offers a nuanced alternative to the Sharpe ratio. While the Sharpe ratio considers all volatility, including positive volatility, the Sortino ratio focuses solely on negative volatility. This adjustment addresses a limitation of the Sharpe ratio, where positive volatility can unfairly penalize the ratio. The Sortino ratio replaces the standard deviation with the downside deviation, which measures the volatility of returns below a specified minimum acceptable return (MAR), typically set to zero (Sortino, 1994). 𝐷𝑜𝑤𝑛𝑠𝑖𝑑𝑒𝐷𝑒𝑣𝑖𝑎𝑡𝑖𝑜𝑛(𝑅𝑥)= √∑(𝑅𝑖−𝑀𝐴𝑅)2 𝑤ℎ𝑒𝑟𝑒 𝑅𝑖≺𝑀𝐴𝑅 𝑛 𝑆𝑜𝑟𝑡𝑖𝑛𝑜𝑅𝑎𝑡𝑖𝑜(𝑥)= 𝑅𝑂𝐼𝑝− 𝑅𝑓 𝐷𝑜𝑤𝑛𝑠𝑖𝑑𝑒𝐷𝑒𝑣𝑖𝑎𝑡𝑖𝑜𝑛(𝑅𝑥) Figure 4.8: Sortino Ratio Equation • 𝑅𝑂𝐼𝑝 is the average return of the asset/portfolio • 𝑅𝑓 is the risk-free rate • 𝑅𝑖 is the time series containing returns on investment Maximum drawdown is crucial for assessing downside risk in investments or strategies, representing the largest decline in a portfolio's value from peak to trough before a new peak is established. It provides insight into relative downside risk and is particularly relevant in volatile cryptocurrency markets. Considering maximum drawdown alongside volatility is essential when evaluating investment risks. (Magdon-Ismail, 2004) 𝑀𝐷𝐷= 𝑚𝑎𝑥𝑡 ∈ ( 𝑆𝑡𝑎𝑟𝑡𝐷𝑎𝑡𝑒, 𝐸𝑛𝑑𝐷𝑎𝑡𝑒)[𝑚𝑎𝑥𝑡 ∈ ( 𝑆𝑡𝑎𝑟𝑡𝐷𝑎𝑡𝑒, 𝑇)(𝑅𝑂𝐼𝑡)−𝑅𝑂𝐼𝑇] Figure 4.9: Max Draw Down Equation Kurtosis describes the tail shape of data distributions by comparing the weight of the tails to the center of the distribution. It is not a measure of the peakedness of the distribution. High kurtosis values indicate that the tails extend further from the center, while low kurtosis values indicate shorter tails and a sharper peak (Chouksey, 2018). 𝐾𝑢𝑟𝑡𝑜𝑠𝑖𝑠 = ∑(𝑌𝑖− 𝑌)4/𝑁 𝑁 𝑖=0 𝑆4 Sortino Ratio Max Draw Down Kurtosis
34 Figure 4.10: Kurtosis Equation • 𝑌 is the mean • 𝑆 is the standard deviation • 𝑁 is the number of data points Skewness describes the symmetry of a distribution. Negative values indicate left skewness, while positive values indicate right skewness. When skewness is close to zero, the distribution approximates to symmetric (Chouksey, 2018). 𝑆𝑘𝑒𝑤𝑛𝑒𝑠𝑠 = ∑(𝑌𝑖− 𝑌)3/𝑁 𝑁 𝑖=0 𝑆3 Figure 4.11: Skewness Equation • 𝑌 is the mean • 𝑆 is the standard deviation • 𝑁 is the number of data points Skewness
35 5. Results and Analysis 5.1. Results For the discussion of results, we will have access to a total of 16,200 records. The rationale behind this number of records can be found in the table below, which describes each parameter used during the study, its relation to a process and the number of different values used. Table 5.1: Parameter Overview Parameters Combinations Universe Formation 90 Lookback Period 3 Metrics Group 3 Selection Method 2 Universe Size 5 Strategy Definition 12 Action 2 Strategy 3 Transaction Costs 2 Market Momentum Signal 15 Confidence Level 5 Market Class 3 Total Results 16200 The systematic approach of introducing parameters to test several values at each decision-making step of the algorithm has left us with a high dimensionality problem that can be assessed in a large variety of ways. This project adopts three different perspectives deemed relevant for the research questions proposed. Firstly, the examination of the average performance metrics for each parameter’s values, remaining agnostic to all other parameters in the study. This involves analyzing how each parameter independently influences the outcome, providing a clear understanding of their isolated effects. Secondly, an analysis of the flow of the optimal set of parameter values across various organizational structures. This analysis includes a comprehensive examination of both the net and gross returns of the portfolios, factoring in transaction costs. Finally, the third viewpoint focuses on the top 20 percent of records ranked by Average Profit and Loss (APL). This high-performing subset is scrutinized to identify common characteristics that lead to superior performance, providing insights into the most effective parameter configurations. 5.1.1. Best overall value per parameter In this section, 16,200 combinations generated throughout this project are grouped solely on individual parameters.
36 PCA consistently outperforms SVM across various return metrics as well as volatility and risk metrics, leaving no room for doubt about its overall superiority. Momentum metrics emerge as the top performers, while growth-oriented metrics exhibit the least skewness. A clear positive correlation is observed between universe size and performance, revealing low significance for the universe reduction effort. A mid-term lookback period of 12 hours proves to be the most reliable, offering balanced returns and risk management (see Appendix A). Table 5.2: Selection Method Analysis. Both equally weighted and time-weighted trend-following trading strategies surpass the benchmark momentum strategy, exhibiting similar risk levels. Notably, the weighted option stands out with superior return metrics and a higher Sharpe ratio (see Appendix B). A substantial performance differential is observed within the portfolio action decision, short portfolios outperform long portfolios, despite slightly higher kurtosis. Table 5.3: Portfolio Action analysis. Action Trades Sharpe Sortino MDD APL Kurtosis Skewed Count Buy 2329 -2.4704 -0.0681 -0.9314 -0.001184 17.2754 -0.2824 8100 Sell 2329 -0.1269 -0.0018 -0.6959 0.000001 23.4231 -0.0371 8100 The neutral market class demonstrates the most promising values in terms of returns and risk metrics. However, it is important to note that the sample size for the neutral market is significantly smaller compared to the bull and bear markets, which reduces our confidence in these results. The bull market, with a sample size twice as large, ranks second, slightly outperforming the bear market in APL (see Appendix C). The analysis of market classification confidence levels indicates a negative correlation with performance metrics. In other words, as market confidence levels rise, performance tends to decrease. Universe Formation Parameters Method Trades Sharpe Sortino MDD APL Kurtosis Skewed Count PCA 2328 -1.1234 -0.0304 -0.7944 -0.0005 13.8905 -0.0411 8100 SVM 2328 -1.4739 -0.0395 -0.8329 -0.0007 26.8080 -0.2784 8100 Strategy Definition Parameters Market Momentum Signal Parameters
37 Table 5.4: Market Class Confidence Level Analysis Conf. Level Trades Sharpe Sortino MDD APL Kurtosis Skewed Count 10 2329 -1.2214 -0.0322 -0.7712 -0.0005 19.9119 -0.1135 3240 20 2329 -1.2912 -0.0350 -0.8033 -0.0006 20.4440 -0.1574 3240 30 2329 -1.3094 -0.0352 -0.8197 -0.0006 21.0207 -0.1912 3240 40 2329 -1.3290 -0.0359 -0.8323 -0.0006 20.3526 -0.1737 3240 50 2329 -1.3423 -0.0364 -0.8416 -0.0006 20.0170 -0.1630 3240 In summary, PCA, trend-following strategies with weighted portfolios, and lower confidence level market classifications emerge as the top performers in their respective categories. 5.1.2. Parameter Combination Analysis In this section, the approach gradually reduces the combinations in the subgroups deemed most worthy of further analysis, proceeding in the order of market momentum signal parameters to strategy definition parameters to universe formation parameters. In this section, 8100 combinations of long portfolios are analyzed to determine the optimal parameter configuration for buying strategies. The results indicate that the bull market class should be used for further analysis. While the neutral market class exhibits better risk factors, its smaller sample size and lower returns make it less suitable as the best approach. Within the bull market, the highest confidence level consistently outperforms across all metrics, except for skewness, which shows an interesting negative correlation by improving with lower confidence levels. For the strategy component, the time-weighted trend-following trading strategy emerges as the best choice. The strategy is selected due to its high returns’ potential and balanced risk factors, clearly outperforming other strategies in terms of both return metrics and risk management. Both the metrics group and selection method show no ambiguity, with the growth metrics group and PCA selection method performing the best among their peers. Although these combinations indicate a more risk-prone approach, they offer higher rewards. When it comes to the universe size parameter, reducing the universe does not seem effective for long portfolios. Performance shows a clear trend of improvement as the size of the universe increases. This suggests that a larger universe provides better diversification and opportunities for higher returns. The lookback period, whether midterm or short-term, performs similarly, allowing for some flexibility in this parameter’s choice. Amongst the long portfolios, this approach ranks 35th in terms of APL and 355th after accounting for transaction costs. Best Combinations for Long Portfolios
38 Figure 5.1: Net and Gross Returns of Best Long portfolio. In conclusion, the best parameters combination for long portfolios in a buying strategy involves operating within a bull market, using a high confidence level, and employing a time-weighted trend-following strategy. The growth metrics and PCA method should be applied, with flexibility in the lookback period, although larger universes tend to yield better performance. In this section, 8100 combinations of short portfolios are analyzed to determine the optimal parameter configuration for selling strategies. The results reveal that the best configuration appears in a bear market. This configuration achieves the highest Sharpe ratio and APL, although it does suffer from the highest kurtosis. The chosen strategy is a trend-following approach with a timeweighted portfolio, which effectively captures market trends and manages risks. In terms of universe selection, the universe is reduced using SVM methodology. SVM proves to be superior overall, despite exhibiting higher skewness and kurtosis. This suggests that while SVM may introduce some additional risk, its overall performance benefits outweigh these drawbacks. Returns are the preferred metrics in this analysis, consistently performing better across the board. Performance shows a clear trend of improvement as the size of the universe decreases despite resulting in higher maximum drawdowns and worse skewness. For the lookback period parameter, longer timeframes demonstrate better performance overall, suggesting that an extended historical view aids in identifying more reliable trends. Amongst the short portfolios, this approach ranks 10th in terms of mean P&L and 29th after accounting for transaction costs. Best Combinations for Short Portfolios
39 Figure 5.2: Net and Gross Returns of Best Short portfolio. In conclusion, the best parameter combination for short portfolios in a selling strategy involves operating within a bear market employing a trend-following strategy with a time-weighted portfolio. The SVM method should be used to reduce the universe, with a focus on returns and keeping universe size low. Longer timeframes should be utilized to enhance performance. With a focus on identifying the most effective configurations for varying market conditions, 5400 combinations for each market class are analyzed. The level of confidence parameter shows a positive correlation with the performance metrics suggesting a stronger reliability on market trends. The analysis consistently shows that short portfolios are the top performers in all market classes. This finding highlights the effectiveness of short selling strategies. In bull markets, trend-following time-weighted portfolios exhibit slightly better performance compared to momentum portfolios. The trend-following approach, especially when used with a time-weighted portfolio, is adept at capturing upward trends, leading to better returns. The weighted aspect of the strategy allows for a more nuanced and responsive approach to market movements (see Appendix D). The performance gap between strategies widens in the neutral market, with timeweighted trend-following portfolios significantly outperforming momentum portfolios. In these market conditions, where the direction is not clearly defined, the adaptability of trend-following strategies proves advantageous (see Appendix E). During bear markets, the trend-following time-weighted portfolio stands out as the superior choice. This strategy not only delivers better returns but also manages risk more effectively in declining markets. Across all market classes, the use of SVM and a smaller universe size is a common theme. This methodological choice ensures that the strategy is applied to a well-selected subset of cryptocurrencies, enhancing overall performance. The SVM methodology aids in identifying the most relevant and high-potential cryptocurrencies, while the reduced universe size maintains a focus on quality over quantity. Momentum metrics are preferred in market classes experiencing substantial shifts. These metrics are effective at quickly capturing and exploiting rapid changes in the Best Combinations per Market Class
40 market, providing an edge in highly dynamic environments. Growth metrics are employed in the neutral market, emphasizing stability and consistent performance. These metrics are less reactive to short-term volatility, which is crucial in a market where clear trends are absent. The importance of the lookback period varies across market conditions. In bull markets, shorter lookback periods are favored as they help in quickly identifying and capitalizing on upward trends. Conversely, in bear markets, longer lookback periods are preferred. They offer a comprehensive view of long-term downward trends, aiding in more strategic decision-making. Figure 5.3: Bear Market Optimal Combination Flow 5.1.3. Top Ranked Combinations Analysis In this section, the top 20 percent of combinations ranked by APL, accounting for 3240 combinations are analyzed. This subset represents the most profitable and promising parameter configurations, offering valuable insights into the factors contributing to their success. When examining the top combinations, it is crucial to analyze the percentages of use for each parameter and strategy. Among the top combinations, SVM emerges as the preferred method, being utilized 60% of the time. This finding contradicts the analysis of the dataset but suggests that in the top-performing subset, SVM may offer better returns despite involving slightly more risk. Furthermore, returns are the most frequent metrics choice, present in 50% of the cases with higher APL. Growth metrics are slightly less utilized but provide better skewness. Additionally, a clear trend emerges regarding the size of the universe, with smaller universes being associated with better performance, excluding risk factors such as skewness and kurtosis. This trend diverges from the overall dataset analysis but indicates that among the top-performing combinations, a smaller universe may lead to
47 European Central Bank. (2019). Algorithmic Trading: . Retrieved from European Central Bank: Banking Supervision. https://www.bankingsupervision.europa.eu/press/publications/newsletter/2019/html/ ssm.nl190213_5.en.html Farell, R. M. (2015). An Analysis of the Cryptocurrency Industry. Master Thesis, University of Texas at Austin. https://repository.upenn.edu/handle/20.500.14332/49177 Gentleman, R., & Carey, V. (2008). Unsupervised Machine Learning. In F. Hahne, W. Huber, R. Gentleman, & S. Falcon, Bioconductor Case Studies (pp. 121-136). Springer. http://doi.org/10.1007/978-0-387-77240-0_10 Glendrange, G., & Tveiten, S. (2016). Testing the Performance of Simple Moving Average With the Extension of Short Selling. Master’s Thesis, University of Agder. http://hdl.handle.net/11250/2419339 Grubbs, F. E. (1969). Procedures for Detecting Outlying Observations in Samples. Technometrics, 11(1), 1-21. http://doi.org/10.1080/00401706.1969.10490657 Guthrie, D., Guthrie, L., Allison, B., & Wilks, Y. (2007). Unsupervised Anomaly Detection. IJCAI 2007, Proceedings of the 20th International Joint Conference on Artificial Intelligence, (pp. 1624-1628). Hyderabad, India. http://ijcai.org/Proceedings/07/Papers/262.pdf Hitam, N. A., Ismail , A. R., & Saeed, F. (2019). An Optimized Support Vector Machine (SVM) based on Particle Swarm Optimization (PSO) for Cryptocurrency Forecasting. Procedia Computer Science, 163, 427-433. https://doi.org/10.1016/j.procs.2019.12.125 Kilgallen, T. (2012). Testing the Simple Moving Average Across Commodities, Global Stock Indices and Currencies. The Journal of Wealth Management, 15(1), 82-100. http://doi.org/10.3905/jwm.2012.15.1.082 Kim, A. Y., Tse , Y., & Wald, J. K. (2016). Time series momentum and volatility scaling. Journal of Financial Markets, 30, 103-124. https://doi.org/10.1016/j.finmar.2016.05.003
48 Kotsiantis, S. B. (2007). Supervised Machine Learning: A Review of Classification Techniques. Proceedings of the 2007 Conference on Emerging Artificial Intelligence Applications in Computer Engineering: Real Word AI Systems with Applications in EHealth, HCI, Information Retrieval and Pervasive Technologies (pp. 3–24). NLD: IOS Press. https://dl.acm.org/doi/10.5555/1566770.1566773 Lesmod, D. A., Schill, M. J., & Zhou, C. (2004). The illusory nature of momentum profits. Journal of Financial Economics, 71(2), 349-380. https://doi.org/10.1016/S0304- 405X(03)00206-X Levine, A., & Pedersen, L. H. (2015). Which Trend Is Your Friend? Financial Analysts Journal, 72(3). http://dx.doi.org/10.2139/ssrn.2603731 Magdon-Ismail, Malik & Atiya, Amir (2004). An Analysis of the Maximum Drawdown Risk Measure. Risk, 17. https://www.researchgate.net/publication/241812835_An_Analysis_of_the_Maximum _Drawdown_Risk_Measure Moskowitz , T. J., Ooi , Y. H., & Pedersen, L. H. (2012). Time series momentum. Journal of Financial Economics, 104(2), 228-250. https://doi.org/10.1016/j.jfineco.2011.11.003 Nakamoto, S. (2009). Bitcoin: A Peer-to-Peer Electronic Cash System. https://bitcoin.org/en/bitcoin-paper Narang, R. K. (2009). Inside the black box: The simple truth about quantitative trading (1 ed.). John Wiley& Sons. Pisner , D. A., & Schnyer, D. M. (2020). Chapter 6 - Support vector machine. In D. A. Pisner, D. M. Schnyer, A. Mechelli , & S. Vieira (Eds.), Machine Learning (pp. 101-121). Academic Press. https://doi.org/10.1016/B978-0-12-815739-8.00006-7
49 Rani, H. N. (2020). A STUDY ON FORECASTING OF SECURITY PRICES USING RELATIVE STRENGTH INDEX (RSI) SELECTED COMPANIES IN INDIA. International Journal of Management and Commerce Innovations, 7(2). https://www.researchpublish.com/papers/a-study-on-forecasting-of-security-prices- using-relative-strength-index-rsi-selected-companies-in-india Rozario, S., Evans, J., Holt, S., & West, J. (2020). A Decade of Evidence of Trend Following Investing in Cryptocurrencies. doi:Rozario, Evans and Holt, Samuel and West, James and Ng, Shaun, A Decade of Evidence of Trend Following Investing in Cryptocurrencies (September 22, 2020). http://dx.doi.org/10.2139/ssrn.3697981 Schölkopf, B., Williamson, R., Smola, A., John , & Platt, J. (1999). Support Vector Method for Novelty Detection, 12, pp. 582-588. http://papers.nips.cc/paper/1723-support- vector-method-for-novelty-detection Sharpe, W. F. (1998). The Sharpe Ratio (Fall 1994). Streetwise: The Best of The Journal of Portfolio Management, 169-178. https://doi.org/10.2307/j.ctv1mjqtwg.24 Singh, K., & Upadhyaya, S. (2012). Outlier Detection: Applications And Techniques. International Journal of Computer Science Issues, 9. https://www.researchgate.net/publication/267964435_Outlier_Detection_Applications _And_Techniques Song, F., Guo, Z., & Mei, D. (2010). Feature Selection Using Principal Component Analysis. 2010 International Conference on System Science, Engineering Design and Manufacturing Informatization, 1, pp. 27-30. Yichang, China. https://doi.org/10.1109/ICSEM.2010.14 Sortino, F. A. & Price, Lee N. (1994). Performance Measurement in a Downside Risk Framework. The Journal of Investing, 3(3), 59-64. https://www.pmresearch.com/content/iijinvest/3/3/59 Sprenger, J., & Weinberger, N. (2021). Simpson’s paradox. In E. N. Zalta (Ed.), The Stanford Encyclopedia of Philosophy (Summer 2021 ed.). Metaphysics Research Lab, Stanford University. https://plato.stanford.edu/archives/sum2021/entries/paradox-simpson/
50 van Engelen, J., & Hoos, H. (2020). A survey on semi-supervised learning. Machine Learning, 109(2), 373-440. https://doi.org/10.1007/s10994-019-05855-6 Hillmer, S. C. (1991). Review of Time Series Analysis: Univariate and Multivariate Methods., by William W. S. Wei. Journal of the American Statistical Association, 86(413), 245–246. https://doi.org/10.2307/2289741 Williams, O. G. (2006). Empirical Optimization of Bollinger Bands for Profitability. SSRN Electronic Journal. https://doi.org/10.2139/ssrn.2321140 Wintermeyer, L. (2021). Institutional Money Is Pouring Into The Crypto Market And Its Only Going To Grow. Forbes. https://www.forbes.com/sites/lawrencewintermeyer/2021/08/12/institutional-money- is-pouring-into-the-crypto-market-and-its-only-going-to-grow/ Yermack, D. (2015). Chapter 2 - Is Bitcoin a Real Currency? An Economic Appraisal. In D. Yermack, & D. K. Chuen (Ed.), Handbook of Digital Currency (pp. 31-43). San Diego: Academic Press. https://doi.org/10.1016/B978-0-12-802117-0.00002-3 Zakamulin, V. (2014). The real-life performance of market timing with moving average and time-series momentum rules. Journal of Asset Management, 15(4), 261-278. https://doi.org/10.1057/jam.2014.25
51 Appendix A Appendix B Appendix C Appendix D Lookback Trades Sharpe Sortino MDD APL Kurtosis Skewed Count 4 2330 -1.8623 -0.0501 -0.8469 -0.000890 21.3508 -0.3753 5400 12 2329 -0.8744 -0.0243 -0.7899 -0.000370 20.0291 0.1157 5400 24 2328 -1.1593 -0.0304 -0.8042 -0.000518 19.6678 -0.2197 5400 Strategy Trades Sharpe Sortino MDD APL Kurtosis Skewed Count Momentum 2329 -1.8570 -0.0491 -0.8256 -0.000849 27.3525 -0.4492 5400 Trend 2329 -1.1472 -0.0313 -0.8119 -0.000518 16.7198 -0.0361 5400 Trend Weighted 2329 -0.8918 -0.0244 -0.8034 -0.000410 16.9754 0.0061 5400 Market Trades Sharpe Sortino MDD APL Kurtosis Skewed Count Bear 2258 -1.5059 -0.0378 -0.8497 -0.000834 27.1663 -0.1143 5400 Bull 3175 -1.3971 -0.0334 -0.9092 -0.000499 17.1102 -0.1734 5400 Neutral 1553 -0.9929 -0.0337 -0.6820 -0.000444 16.7713 -0.1915 5400
52 Appendix E
53