← Back to papers

Paper deep dive

Algorithmic Trading Strategy Development and Optimisation

Owen Nyo Wei Yuan, Victor Tan Jia Xuan, Ong Jun Yao Fabian, Ryan Tan Jun Wei

Year: 2026Venue: arXiv preprintArea: cs.AIType: PreprintEmbeddings: 49

Intelligence

Status: succeeded | Model: google/gemini-3.1-flash-lite-preview | Prompt: intel-v1 | Confidence: 95%

Last extracted: 3/22/2026, 5:26:01 AM

Summary

This paper presents an enhanced algorithmic trading strategy for the S&P 500, integrating technical indicators (MA200, EMA50, ATR) and FinBERT-based sentiment analysis. The authors focus on computational efficiency through vectorization and pre-computation, demonstrating improved Sharpe ratios and reduced drawdowns compared to a baseline model.

Entities (5)

FinBERT · nlp-model · 100%S&P 500 · market-index · 100%ATR · technical-indicator · 95%MA200 · technical-indicator · 95%Algorithmic Trading Strategy · methodology · 90%

Relation Signals (3)

Algorithmic Trading Strategy appliesto S&P 500

confidence 100% · development and optimisation of an enhanced algorithmic trading strategy through the use of historical S&P 500 market data

Algorithmic Trading Strategy incorporates MA200

confidence 95% · A 200-day simple moving average (MA200) was implemented as a macro-regime filter.

Algorithmic Trading Strategy utilizes FinBERT

confidence 95% · The proposed strategy integrates... FinBERT-based sentiment analysis

Cypher Suggestions (2)

Find all technical indicators used by the trading strategy · confidence 90% · unvalidated

MATCH (s:Strategy {name: 'Algorithmic Trading Strategy'})-[:INCORPORATES]->(i:Indicator) RETURN i.name

Identify the relationship between models and data sources · confidence 85% · unvalidated

MATCH (m:Model)-[:PROCESSES]->(d:DataSource) RETURN m.name, d.name

Abstract

Abstract:The report presents with the development and optimisation of an enhanced algorithmic trading strategy through the use of historical S&P 500 market data and earnings call sentiment analysis. The proposed strategy integrates various technical indicators such as moving averages, momentum, volatility, and FinBERT-based sentiment analysis to improve overall trades being taken. The results show that the enhanced strategy significantly outperforms the baseline model in terms of total return, Sharpe ratio, and drawdown amongst other factors. The findings helped demonstrate the relevance and effectiveness of combining technical indicators, sentiment analysis, and computational optimisation in algorithmic trading systems.

Tags

ai-safety (imported, 100%)csai (suggested, 92%)preprint (suggested, 88%)

Links

Your browser cannot display the PDF inline. Open PDF directly →

Full Text

48,355 characters extracted from source content.

Expand or collapse full text

INF2006 - CLOUD COMPUTING AND BIG DATA SINGAPORE INSTITUTE OF TECHNOLOGY INFOCOMM TECHNOLOGY Algorithmic Trading Strategy Development and Optimisation Group 25 OWEN NYO WEI YUAN (ID: 2301840) VICTOR TAN JIA XUAN (ID: 2301787) ONG JUN YAO FABIAN (ID: 2301898) RYAN TAN JUN WEI (ID: 2301826) Instructors Alvin Chan, Module Lead Junhua Liu, Lead, Big Data Kwang Yong Lim, Lab Instructor Sheng Chen, Lab Instructor Gopika Gopikrishnan, Teaching Assistant Date: March 18, 2026 arXiv:2603.15848v1 [cs.AI] 16 Mar 2026 CONTENTS2 Contents 1 Introduction4 1.1 Project Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 1.2 Motivation and Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 1.3 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5 2 Enhanced Exploratory Data Analysis (EDA)6 2.1 Momentum vs Future Returns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 2.2 Cumulative Returns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 2.3 200-Day Moving Average . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 2.4 Average True Range (ATR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 2.5 Momentum Decile Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 2.6 ATR Bucket Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 2.7 Momentum-to-Volatility Ratio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 3 Data Cleaning and Preparation8 3.1 Duplicate Removal and Date Standardisation . . . . . . . . . . . . . . . . . . . . . . . . .8 3.2 Handling Missing Price Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 3.3 Filtering Tickers with Insufficient Historical Data . . . . . . . . . . . . . . . . . . . . . . .8 3.4 Outlier Detection and Removal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 3.5 Cleaning Earnings Transcript Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 4 Computational Efficiency and Performance Optimisation9 4.1 Scalability Challenges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 4.1.1 Large Time-Series Dataset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 4.1.2 Cross-Sectional Ranking Computation . . . . . . . . . . . . . . . . . . . . . . . . .9 4.1.3 Indicator Recalculation During Backtesting . . . . . . . . . . . . . . . . . . . . . . .9 4.2 Optimisation Strategies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 4.2.1 Vectorised Indicator Computation . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 4.2.2 Pre-Computation of Technical Indicators . . . . . . . . . . . . . . . . . . . . . . . .9 4.3 Performance Measurements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 4.3.1 Runtime Improvements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 4.3.2 Backtesting Efficiency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 5 Strategy Enhancement Methodology11 5.1 Technical Indicators and Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 5.2 Earnings Transcript Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12 5.3 Entry, Exit, and Risk Management Rules: . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 6 Experimental Results and Analysis14 6.1 Development Phase Experiments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14 6.1.1 Momentum Predictive Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14 6.1.2 Long-Term Trend Filter Using Moving Averages . . . . . . . . . . . . . . . . . . . .14 6.1.3 Volatility Analysis using ATR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15 2 CONTENTS3 7 Final Performance Outcomes16 7.1 Comprehensive Metrics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16 7.2 Comparative Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16 7.3 Performance Visualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 7.3.1 Portfolio Value over Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 7.3.2 Drawdown Comparison (%) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 7.3.3 Key Metrics Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 7.3.4 Number of Positions over Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 8 Conclusion and Future Work19 8.1 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 8.2 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 8.3 Challenges Encountered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20 8.4 Future Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20 3 1 INTRODUCTION4 1 Introduction 1.1 Project Overview This project focuses on the development and optimisation of an enhanced algorithmic trading strategy crafted using historical S&P 500 daily market data from the period 2000 through 2024 and quarterly earnings call transcripts. The trading assignment notebook has provided a working baseline strategy built upon a 50 - day moving average indicator combined with FinBert sentiment classification. The overall objective of this assignment is to improve the baseline strategy with the enhanced strategy with the aid of additional data visualiza- tions, computational optimisation, and a variety of back-testing procedures. The development process starts with the provided dataset split: Development Set (2000 - 2017), Vali- dation Set (2018 - 2024), and a fully concealed Test Set. The process then involves tweaking strategy, feature engineering, and fine-tuning multiple parameters within the development set to avoid overfitting to the validation set. When the results with the development set are satisfactory, the strategy will be performed on the validation set once to observe for generalisation. The fully held-out test set will serve as the final benchmark for a performance assessment. The following metrics will be used for evaluation: Total Return, Sharpe Ratio, Maximum Drawdown, Win Rate, and Volatility to ensure a fair yet comprehensive assessment of risk and returns. In addition to financial performance, the project will also place an emphasis on computational scalability and efficiency, given the substantial volume of approximately two million rows of data in the development period. This ensures that the implementation must not only demonstrate well in the investment sector, but also in the execution and design sector. 1.2 Motivation and Background Algorithmic trading has emerged as a predominant force in contemporary financial markets, significantly influencing equity trading volume in developed markets [1]. The proliferation of high-frequency data and advancements in computational infrastructure have enabled systematic trading strategies to exploit statistical inefficiencies at scale. In contrast, traditional technical strategies rely primarily on historical price information and may exhibit lag effects, limiting their responsiveness to forward-looking market developments. Empirical finance research demonstrates that textual information, such as earnings call transcripts and managerial tone, contains predictive signals regarding future stock returns and volatility [2][3]. The rapid advancement of Natural Language Processing (NLP), particularly transformer-based architectures such as BERT [4], has facilitated structured sentiment extraction from unstructured financial documents. Fin- BERT, a domain-specific model fine-tuned for financial sentiment classification, has shown effectiveness in capturing earnings call tone and its influence on market reactions [5]. Technical indicators serve to characterise price momentum, trend dynamics, and volatility regimes, while sentiment analysis provides forward-looking insights derived from managerial communication. Integrat- ing quantitative technical indicators with qualitative sentiment measures enables the construction of a multi-factor investment framework. The combination of complementary information sources has the po- tential to improve signal reliability and reduce drawdowns relative to single-factor approaches. 4 1 INTRODUCTION5 Furthermore, this project emphasises efficient big data processing methodologies. The dataset comprises millions of observations across numerous tickers spanning over two decades, rendering naive iterative im- plementations computationally inefficient. Consequently, vectorisation, memory optimisation, and scal- able data processing pipelines are essential design considerations in both academic research and practical quantitative finance systems. 1.3 Objectives The primary objective of this project is to design and implement an enhanced algorithmic trading strategy that demonstrably outperforms the provided baseline across both financial performance and computa- tional efficiency dimensions. Specifically, the project aims to: • Improve Risk-Adjusted Performance: Achieve a higher Sharpe Ratio than the baseline strategy, ensuring that any increase in return is accompanied by proportionate risk control rather than in- creased volatility exposure. • Enhance Downside Protection: Reduce Maximum Drawdown through refined entry, exit, and stop-loss mechanisms, thereby improving capital preservation during adverse market conditions. • Increase Signal Reliability: Strengthen trade signal precision by incorporating multiple technical indicators (e.g., momentum, volatility, and trend-based measures) beyond the baseline’s single 50- day moving average, and by requiring multi-signal confirmation before position entry. • Leverage Earnings Call Sentiment More Effectively: Improve the utilisation of FinBERT outputs by incorporating sentiment confidence scores, systematically handling neutral classifications, and evaluating multi-quarter sentiment consistency to reduce noise from isolated earnings events. • Refine Risk and Capital Allocation Rules: Develop improved position sizing logic and portfolio allocation mechanisms to manage concentration risk and enhance overall portfolio stability. • Ensure Generalization Across Time Periods: Demonstrate consistent performance improvements over the baseline across the Development, Validation, and Test datasets without evidence of overfit- ting. • Optimize Computational Efficiency and Scalability: Implement vectorised and memory-efficient computations capable of processing large-scale financial datasets efficiently, ensuring scalability be- yond the current dataset size. These goals are aimed at creating a strategy that not only outperforms the baseline in terms of perfor- mance metrics but is also solid in its methods, applicable in various situations, and reliable in computation. 5 2 ENHANCED EXPLORATORY DATA ANALYSIS (EDA)6 2 Enhanced Exploratory Data Analysis (EDA) To gain deeper insights into the dataset beyond the baseline exploratory analysis, several additional anal- yses were conducted to examine the relationships between technical indicators and future stock returns. The analyses focused on momentum, trend, and volatility characteristics to determine whether these in- dicators exhibit consistent patterns associated with future 21-day returns, which could inform the design of the trading algorithm. 2.1 Momentum vs Future Returns A 63-day momentum indicator was calculated for each stock using the percentage change in closing price over the previous 63 trading days. This indicator was compared with the forward 21-day return to evaluate the predictive relationship between momentum and future performance (see Figure A1 in Appendix A). The calculated correlation of approximately 0.019 indicates that the relationship between momentum and future returns is weak. This suggests that momentum alone may not be an effective predictive variable for modelling purposes. However, momentum may still be useful as a signal for identifying stocks with potential to outperform. 2.2 Cumulative Returns The cumulative return comparison between the top momentum stocks and the overall market average is illustrated in Figure A2 (Appendix A). It shows that portfolios consisting of high-momentum stocks generally outperform the broader universe over time. 2.3 200-Day Moving Average Stocks were categorised into two groups based on whether their prices were above or below the 200-day moving average (MA200). The average forward 21-day returns were then calculated for both categories. Average 1-month forward return: • Above MA200: 0.012556582603665217 • Below MA200: 0.01724687203601836 Stocks below MA200 produce slightly higher forward returns than those above it. This could suggest a short-term rebound trend effect (revision). This suggests that stocks below the long-term trend may experience short-term rebound effects, while stocks above MA200 continue to follow longer-term upward trends. 2.4 Average True Range (ATR) Volatility was examined using the Average True Range (ATR), calculated over a 14-day exponential mov- ing average of the true range. ATR measures the typical daily price movement and serves as a proxy for market volatility. The relationship between ATR volatility and forward returns is visualized in Figure A3 (Appendix A). 6 2 ENHANCED EXPLORATORY DATA ANALYSIS (EDA)7 The analysis shows a high concentration of observations at lower ATR values, indicating that most stocks in the dataset experience relatively low volatility. As ATR increases, the number of observations decreases and the spread of forward returns becomes wider. This suggests that higher volatility stocks exhibit greater variability in future returns. From the scatter plot, it can also be observed that most returns cluster around zero regardless of volatility level. However, stocks with higher ATR values tend to show more extreme positive and negative forward returns. This indicates that while higher volatility does not necessarily guarantee higher returns, it is associated with greater uncertainty and larger potential price movements. 2.5 Momentum Decile Analysis Decile analysis was conducted by ranking stocks according to their 63-day momentum and comparing these groups with the next 21-day returns. The results of this analysis are shown in Figure A4 (Appendix A). The results show that stocks in the lowest momentum decile (Decile 1) and highest momentum decile (Decile 10) generate the highest subsequent returns. Stocks in the highest momentum decile tend to continue outperforming due to momentum persistence, while stocks in the lowest momentum decile often experience short-term rebounds after periods of extreme underperformance. 2.6 ATR Bucket Analysis The analysis of ATR percentage buckets versus the next 21-day returns shows a clear upward trend. Stocks in the highest ATR bucket (Decile 10) generate the largest forward returns, while those in the lowest volatility bucket (Decile 1) produce the lowest forward returns. The average forward returns across ATR volatility buckets are visualized within Figure A5 (Appendix A). The trend is observed in both the development and validation datasets, where higher ATR buckets con- sistently show increasing average forward returns. This suggests that stocks experiencing larger price movements may offer greater short-term return opportunities, although they are also associated with higher risk. 2.7 Momentum-to-Volatility Ratio Further analysis was conducted using the momentum-to-volatility ratio (momentum divided by ATR). The decile analysis of this ratio indicates that stocks in the highest bucket (Decile 10) exhibit stronger forward returns. The results can be visualized in Figure A6 (Appendix A). This suggests two important observations. First, stocks with high momentum relative to their volatility tend to generate stronger short-term returns. Second, combining momentum with volatility may help identify stocks that exhibit strong trends while maintaining more stable price movements, making them potentially more reliable trading opportunities. 7 3 DATA CLEANING AND PREPARATION8 3 Data Cleaning and Preparation Before performing feature engineering and strategy development, both the stock price dataset and the earnings transcript dataset were examined for potential data quality issues. Several preprocessing steps were applied to ensure that the data was reliable and consistent. 3.1 Duplicate Removal and Date Standardisation Duplicate records were removed from both datasets. Date fields were converted into a standardised datetime format to ensure that entries could be ordered correctly for time-series analysis. 3.2 Handling Missing Price Values Missing price values were handled using forward filling within each ticker group to maintain a continuous time series. This approach replaces missing values with the most recent available observation for the same stock, preserving realistic price trends without introducing artificial values. After forward filling, any remaining rows containing missing price values were removed. 3.3 Filtering Tickers with Insufficient Historical Data Some tickers contained very limited trading histories, which could lead to unreliable calculations for technical indicators such as long-term moving averages, momentum indicators, and volatility measures. To address this, a minimum data requirement of three years of trading history (approximately 756 trading days) was imposed. Tickers that did not meet this threshold were removed from the dataset. 3.4 Outlier Detection and Removal Financial datasets may contain extreme or erroneous price movements that could distort statistical anal- ysis. Daily returns were calculated using percentage changes in closing prices for each ticker. Observations with extremely large daily price movements exceeding 80% were considered unrealistic and were removed from the dataset. 3.5 Cleaning Earnings Transcript Data The earnings transcript dataset contains textual data used for sentiment analysis. Records with missing transcripts or transcripts shorter than 100 characters were removed, as they likely contained insufficient information for meaningful sentiment evaluation. To maintain consistency between datasets, the earnings data were further filtered to include only tickers that remained in the cleaned price dataset. This ensures alignment between price data and earnings sentiment data for later analysis. These data preparation steps improve overall data quality and ensure that subsequent analysis is per- formed on a reliable and well-structured dataset. 8 4 COMPUTATIONAL EFFICIENCY AND PERFORMANCE OPTIMISATION9 4 Computational Efficiency and Performance Optimisation 4.1 Scalability Challenges 4.1.1 Large Time-Series Dataset As the dataset comprises over two million price records across hundreds of tickers spanning more than two decades, some of the challenges include rolling indicators such as MA200, EMA50, ATR14, and Momentum63, which require historical windows for each ticker. Additionally, calculations must be per- formed repeatedly across all trading days, and time-series operations are computationally expensive when implemented in loops. Without proper optimisation in place, it can lead to long runtime, high memory consumption and inefficient processing of multi-ticker datasets. 4.1.2 Cross-Sectional Ranking Computation As the strategy performs a weekly ranking of all stocks based on the 63-day momentum indicator, there are two key scalability challenges. Firstly, the ranking must be computed for every evaluation date. Secondly, each ranking operation requires all the tickers to be processed simultaneously, increasing computational overhead as the dataset grows. 4.1.3 Indicator Recalculation During Backtesting During backtesting, the trading algorithm repeatedly evaluates entry and exit conditions for each trading day. If technical indicators such as moving averages, momentum, and ATR are recalculated during each evaluation step, this can lead to redundant computations and significantly slow down the simulation process. 4.2 Optimisation Strategies 4.2.1 Vectorised Indicator Computation To improve computational efficiency, technical indicators such as MA200, EMA50, EMA200, Momen- tum63 and ATR14 were implemented using vectorised operations in Pandas. Functions such as groupby().transform(), rolling(), and ewm() allow calculations to be executed at the column level rather than iterating through rows with Python loops. This approach significantly reduces runtime as vectorised operations are exe- cuted in optimised compiled code. 4.2.2 Pre-Computation of Technical Indicators All the technical indicators were calculated during the data preprocessing stage rather than being re- computed during the trading simulation. By precomputing indicators such as moving averages, volatility measures, and momentum values, the trading algorithm only needs to evaluate entry and exit conditions during backtesting. This eliminates redundant computations and improves the overall efficiency of the simulation process. 9 4 COMPUTATIONAL EFFICIENCY AND PERFORMANCE OPTIMISATION10 4.3 Performance Measurements 4.3.1 Runtime Improvements The implementation of vectorised operations and precomputed indicators significantly reduces the time required for data processing and backtesting. Compared to a naive loop-based implementation, the opti- mised pipeline completes indicator computation and strategy simulation within a few minutes, enabling multiple strategy experiments to be conducted efficiently. 4.3.2 Backtesting Efficiency The optimisation techniques allow the complete backtesting process across the full development dataset, ranging from 2000 to 2017, to be executed efficiently despite the large dataset size. The removal of re- dundant computations and caching of ranking results significantly reduces the computational load during the trading simulation. 10 5 STRATEGY ENHANCEMENT METHODOLOGY11 5 Strategy Enhancement Methodology 5.1 Technical Indicators and Features The enhanced strategy extends beyond the baseline 50-day moving average by introducing a structured multi-layer signal framework designed to improve trend alignment, alpha concentration, and volatility- adjusted risk control. Long-Term Regime Filter (MA200) A 200-day simple moving average (MA200) was implemented as a macro-regime filter. Long trades are considered only when: P rice > MA200 This ensures that positions are entered exclusively during structurally bullish environments and reduces exposure to prolonged bear markets. Compared to the baseline, which relies on a shorter-term average, MA200 introduces stronger macro-trend alignment. Trend Confirmation (EMA50 and EMA200) Two exponential moving averages were introduced: • EMA50 (fast trend indicator) • EMA200 (slow trend indicator) A bullish trend condition requires: EMA50 > EMA200 and P rice > EMA50 The exponential formulation increases responsiveness compared to simple moving averages while retain- ing trend stability. This dual confirmation prevents premature entries during weak rebounds and ensures alignment between intermediate and long-term trend dynamics. Momentum Filter (63-Day Return) A 63-day momentum indicator (approximately three months) was incorporated: Momentum 63 = P rice t P rice t−63 − 1 Only stocks satisfying: Momentum 63 > 0 are eligible for entry. This filter ensures that trades are taken only in stocks demonstrating intermediate-term strength, rein- forcing continuation effects and eliminating stagnant or declining assets. 11 5 STRATEGY ENHANCEMENT METHODOLOGY12 Cross-Sectional Relative Strength Ranking (Top-N Filter) A key enhancement is the introduction of cross-sectional momentum ranking. For each weekly evaluation date: 1. The most recent available analytics row (as-of logic) is selected per ticker. 2. Tickers are ranked by descending 63-day momentum. 3. Only the Top N stocks (N = 10) are eligible for entry. This mechanism concentrates capital into the strongest momentum leaders and prevents diversification across average-performing stocks. By limiting eligibility to the Top 20 names, the strategy deliberately emphasises alpha concentration. To ensure computational efficiency, the Top-N results are cached per evaluation date, preventing redundant ranking calculations during weekly decision cycles. Volatility-Based Risk Control (ATR14 Trailing Stop) The Average True Range (ATR14) was implemented as a dynamic trailing stop mechanism. True range is defined as: T R = max(high− low, |high− prev close|, |low− prevclose|) ATR14 is computed using exponential smoothing. A trailing stop is defined as: Stop = HighestCloseSinceEntry− (3.5× AT R 14 ) If the price falls below this level, the position is exited. Unlike the baseline’s fixed 20% stop-loss, this volatility-adjusted mechanism adapts to changing market conditions, tightening during low volatility and widening during high volatility regimes. 5.2 Earnings Transcript Analysis FinBERT Sentiment Extraction Earnings transcripts are processed using a FinBERT pipeline. For effi- ciency and relevance: • Only the final 2000 characters of each transcript are analysed, prioritising recent managerial com- mentary. • The model returns a categorical sentiment classification: positive, neutral, or negative. • If transcript data or the pipeline is unavailable, sentiment is ignored. Sentiment as a Gating Mechanism Sentiment is not used as a direct entry trigger but as a risk filter. If earnings sentiment is classified as negative, all BUY signals for that ticker are blocked regardless of technical strength. Neutral sentiment does not prevent entry. This design ensures that strong technical setups are not overridden by adverse fundamental signals while avoiding excessive sensitivity to minor sentiment variations. 12 5 STRATEGY ENHANCEMENT METHODOLOGY13 5.3 Entry, Exit, and Risk Management Rules: Entry Conditions (BUY) A BUY signal is generated only when all of the following conditions are satisfied: 1. P rice > MA200 (bullish regime filter) 2. EMA50 > EMA200 and P rice > EMA50 (trend confirmation) 3. Momentum 63 > 0 4. Ticker is ranked within the Top 10 by 63-day momentum 5. Earnings sentiment is not negative This multi-layer confirmation structure reduces false positives by requiring alignment across macro regime, intermediate trend, momentum strength, cross-sectional leadership, and fundamental sentiment. Exit Conditions (SELL) A position is exited when any of the following conditions are met: 1. P rice < MA200 (regime breakdown) 2. P rice < HighestCloseSinceEntry− (3.5× AT R14) (volatility trailing stop) The layered exit logic provides both structural protection (trend breaks) and adaptive volatility-based protection (ATR stop), improving drawdown control relative to a fixed-percentage stop. Computational Design Considerations Given the scale of the data set (approximately two million price records), efficiency considerations were embedded in the implementation: • Rolling and exponential indicators are computed using vectorized groupby().transform() opera- tions. • Exponential weighted moving averages (ewm) avoid iterative loops. • Cross-sectional Top-N ranking is cached per evaluation date to reduce redundant computation. • As-of ranking logic prevents look-ahead bias while maintaining efficiency. These optimisations ensure the strategy remains scalable and suitable for large financial datasets without significant runtime degradation. 13 6 EXPERIMENTAL RESULTS AND ANALYSIS14 6 Experimental Results and Analysis 6.1 Development Phase Experiments 6.1.1 Momentum Predictive Power Hypothesis Stocks exhibiting strong recent momentum are more likely to continue performing well in the near future. Specifically, stocks with higher 63-day price momentum are expected to generate higher forward returns over the next month. Methodology Momentum was calculated as the percentage change in closing price over the previous 63 trading days. To evaluate the predictive power of momentum, the forward return over the next 21 trading days was computed. The team generated a scatterplot to visualise the relationship between the 63-day momentum and the subsequent 21-day forward return. Additionally, the correlation coefficient between the two variables was calculated to quantify the strength of the relationship. Results The analysis revealed a positive relationship between the 63-day momentum and the forward returns, indicating that stocks with stronger recent performance tend to continue outperforming in the short term. Although the correlation was moderate, the overall trend supported the momentum hypothesis. Implication for Strategy Based on these findings, the 63-day momentum was incorporated as a core signal in the enhanced trading strategy, where stocks with higher momentum values are prioritised when selecting potential investment candidates. 6.1.2 Long-Term Trend Filter Using Moving Averages Hypothesis Stocks trading above their long-term moving averages are more likely to maintain positive performance trends compared to those trading below the moving average. Methodology A 200-day moving average (MA200) was calculated for each stock. Stocks were then classified into 2 groups of prices above MA200 and those with prices below MA200. The average forward 21-day return was then calculated for both groups to determine whether the long-term trend indicator provided useful predictive information. Results The results showed that stocks trading above the MA200 generally produced higher average forward returns, whilst stocks trading below the MA200 showed weaker or negative returns, suggesting that the long-term trend serves as a useful indicator of market regime and stock strength. Implication for Strategy A trend confirmation filter was incorporated into the enhanced strategy, where positions are only entered when the stock exhibits a strong upward trend, which is defined by 2 indicators: the EMA50 is greater 14 6 EXPERIMENTAL RESULTS AND ANALYSIS15 than the EMA200, and the price is greater than the EMA50. This helps ensure that trades are executed during favourable market conditions. 6.1.3 Volatility Analysis using ATR Hypothesis High volatility stocks may exhibit weaker or less predictable future returns Methodology Volatility was measured using the Average True Range (ATR) over 14 days. ATR was normalised by dividing it by the stock price to obtain ATR%, allowing comparison across stocks with different price levels. Stocks were then grouped into volatility buckets, and their forward 21-day returns were analysed to determine whether volatility had predictive power. Results The results suggested that stocks with extremely high volatility did not consistently produce higher for- ward returns and were often associated with greater return dispersion, indicating that volatility may increase risk without necessarily improving expected returns. Implication for Strategy AR was incorporated into the strategy as a risk management tool rather than a selection signal. Specifi- cally, an ATR-based trailing stop mechanism was implemented to limit downside risk, allowing profitable trades to continue while protecting the portfolio against large losses. 15 7 FINAL PERFORMANCE OUTCOMES16 7 Final Performance Outcomes The final evaluation of the trading strategy was conducted using the datasets provided. The performance was assessed using five key metrics: Total Return, Sharpe Ratio, Maximum Drawdown, Win Rate, and Volatility, which collectively measure profitability, risk-adjusted performance, downside risk exposure, and trading consistency. 7.1 Comprehensive Metrics Table 1 below summarises the performance of the baseline strategy and the enhanced strategy across the development, validation, and test datasets. DatasetStrategyTotal ReturnSharpe RatioMaximum DrawdownWin RateVolatility DevelopmentBaseline299.84%1.19-57.41%33.30%37.05% DevelopmentEnhanced466.14%1.69-23.08%46.60%30.28% ValidationBaseline12.45%0.41-35.42%27.75%43.80% ValidationEnhanced189.10%2.04-23.50%38.50%40.00% In the development dataset, the baseline strategy had an overall return of 299.84%, a Sharpe Ratio of 1.19 and a maximum drawdown of -57.41%. Although this shows that the base strategy could achieve a high level of returns in the long-term development period, the high level of drawdown shows a high level of exposure to downside risk in the unfavourable market conditions. Compared with the baseline, the improved strategy delivered a total return of 466.10% on development data, representing a significant improvement. Moreover, the Sharpe Ratio has grown to 1.69, which represents a better risk-adjusted performance. The maximum drawdown was decreased to -23.10%, indicating that the improved strategy had a significantly better impact on mitigating losses when the markets declined. The improved strategy also recorded a win rate of 0.47 and annual volatility of 30.3%, which indicates a fairly balanced risk-reward profile. In the validation dataset, the baseline strategy had a total return of 12.45%, a Sharpe Ratio of 0.41, a maximum drawdown of -35.42%, a win rate of 0.28%, and a volatility of 43.8%. These findings imply that the baseline strategy was not generalising, which gave weaker risk-adjusted returns and greater volatility. The enhanced strategy has done much better in the validation dataset and earned a total return of 189.10% and a Sharpe ratio of 2.04, and this means the strategy has performed well with regard to risk-adjusted performance. The maximum drawdown was kept at -23.50 percent with the win rate going to 0.39 and volatility being 40.0. These findings indicate that the improved strategy could generalise well on the basis of the development dataset without showing any overfitting. 7.2 Comparative Analysis Overall, the enhanced strategy outdid the baseline strategy in both datasets. The most notable improve- ments were observed in total return, Sharpe ratio, and drawdown control. Firstly, the enhanced strategy generated higher returns when compared to the baseline strategy. On the development dataset, total return increased from 299.84% to 466.10%, while on the validation dataset, 16 7 FINAL PERFORMANCE OUTCOMES17 the returns increased from 12.45% to 189.10%. This indicates that the additional signals and filtering mechanisms introduced in the enhanced strategy enhanced the model’s ability to detect profitable trading opportunities. Secondly, the enhanced strategy showed significantly improved risk-adjusted performance, as shown by the Sharpe ratio. The Sharpe ratio improved from 1.19 to 1.69 in the development dataset and from 0.41 to 2.04 in the validation dataset. This shows that the improved strategy not only provided higher returns, but it did so with better risk utilisation. Thirdly, the enhanced strategy significantly reduced the maximum drawdown. The baseline strategy showed a large drawdown of -57.41% during the development phase, while the enhanced strategy re- duced this to -23.10%. The same improvements were also recorded in the validation dataset. The re- duced drawdowns suggest that the enhanced strategy implemented better effective risk management and avoided holding positions during prolonged market downturns. Many of these improvements are due to the multi-factor decision framework of the improved strategy, which incorporates the momentum indicators, volatility filtering based on the Average True Range (ATR) momentum to volatility ratio analysis and sentiment based on the earnings transcripts. The strategy ensures the reduction of false signals and the enhancement of the quality of the trade by having several indicators in place before any trades are made. 7.3 Performance Visualization To further analyse the behaviour of both strategies over time, several performance visualizations were generated. Figure 1: Baseline vs Enhanced Strategy Comparison 17 7 FINAL PERFORMANCE OUTCOMES18 7.3.1 Portfolio Value over Time The portfolio value chart is used to show the total value of the trading portfolio at each point in time during the simulation. Using an initial capital of $100,000, the chart tracks how the portfolio evolves over time. In the case of the baseline strategy, the portfolio value shows an upward trend with several major declines, indicating fluctuating performance and sensitivity to market crashes. In contrast, the improved strategy exhibits a steadier upward trend, with smaller changes in portfolio value. This shows that the extra signals included in the improved strategy enhanced the capacity of the model to identify profitable trends and eliminate bad trading opportunities. 7.3.2 Drawdown Comparison (%) The drawdown comparison chart shows the percentage change of the baseline strategy and the enhanced strategy of the previous peak value of the portfolio over time. According to the visualization, the base- line strategy has more in-depth and longer-term drawdowns, with the development dataset having the maximum drawdown of about -57.41%. In contrast, the improved strategy has much lower drawdowns of approximately -23%, which indicates a better preservation of the capital. This has been made possible by the multi-layer risk management framework of the improved strategy, trend filters and the ATR-based trailing stop, which helps exit positions earlier during the deteriorating market environments. 7.3.3 Key Metrics Comparison The key metrics comparison chart gives a graphical overview of the performance differences between the baseline and improved strategies with respect to multiple assessment measures, such as the total return, Sharpe ratio, win rate, and maximum drawdown. Based on the visualization, it is evident that the improved strategy performs better in comparison to the baseline strategy in most of the metrics. The enhanced strategy, in particular, generates overall greater returns and Sharpe ratios, which indicate increased profitability and improved risk-adjusted performance. The enhanced strategy also has a better win rate and significantly reduced maximum drawdown, thus showing that the multi-factor trading framework is effective in enhancing both the generation and the control of returns and risk. 7.3.4 Number of Positions over Time The number of positions over time chart shows the number of stocks actively held in the portfolio at any given time during the simulation period. This chart gives an understanding of portfolio diversification and the number of times that the strategy enters and exits. The baseline strategy is more likely to have a bigger and more volatile number of positions over time and less selective conditions for entry. In contrast, the improved strategy has a more consistent and regulated number of positions because of the Top-N momentum ranking mechanism, restricting the trades to the most performing stocks. This narrow selection strategy enhances efficiency in capital allocation and helps to increase the overall performance of the improved strategy, and reduces drawdown. 18 8 CONCLUSION AND FUTURE WORK19 8 Conclusion and Future Work 8.1 Conclusion This Project set out to develop an enhanced algorithmic trading strategy designed to improve upon the provided baseline model through the integration of additional technical indicators, sentiment analysis, and faster computational design. The original baseline approach revolved around a single 50-day mov- ing average combined with the sentiment gate from FinBERT signals. While it provided decent results, the approach could be improved in many aspects, such as trend confirmation, cross-sectional selection, and volatility-adjusted risk management. Thus, the goal of the enhanced strategy was to address these drawbacks by providing a multi-layer signal approach. The first improvement involved stronger trend identification and market regime filtering. A 200-day mov- ing average (MA200) was introduced to ensure trades were taken only during bullish market conditions. In addition, exponential moving averages (EMA50 and EMA200) were used to confirm trend direction, ensuring that trades align with both intermediate and long-term market trends. Momentum-based stock selection was also incorporated through a 63-day momentum indicator. Stocks were ranked using cross-sectional momentum, and only the Top-N candidates were selected for trading. This approach concentrates capital on the strongest performing assets rather than spreading it across weaker opportunities. Risk management was enhanced through an ATR-based trailing stop, which dynamically adjusts according to market volatility. Compared to the baseline’s fixed stop-loss, this approach provides better downside protection while reducing premature exits during volatile market conditions. To add on, the strategy incorporates sentiment extracted from earnings calls through the use of FinBERT. However, instead of acting as a direct signal for entry and exit, it is used more as a filter that blocks poor trades that align with negative managerial sentiment, while allowing trades with positive tone to proceed. Lastly, computational efficiency was a key priority as well, given the large amount of data that spans across two decades. By vectorising certain operations, reducing the amount of group-based calculations, and caching ranking procedures, the strategy was able to process the millions of records faster. Overall, the enhanced strategy was able to demonstrate that by combining trend filters, momentum selec- tion, volatility-adjusted risk, and sentiment analysis, it was able to produce a more consistent framework compared to the baseline model. 8.2 Limitations The first limitation lies in the number of technical indicators combined in the strategy. While the strategy has considered trend, momentum, and macro regime effectively, it does not account for volume-based sig- nals, volatility regime, or market breadth indicators. With proper testing, these features could potentially provide richer insights into the market dynamics and improve the robustness of the signals produced by the trading algorithm. The second limitation relates to the simplified usage of sentiment information. The current implementa- tion only uses a categorical sentiment label (positive, neutral, or negative) derived from the final portion of earnings transcripts. While this approach captures high-level managerial tone, it does not utilise sen- 19 8 CONCLUSION AND FUTURE WORK20 timent intensity, contextual information, or topic-level analysis. As a result, some informative signals embedded within earnings discussions may not be fully captured by the model. Lastly, while vectorisation and caching techniques did improve computational efficiency, large-scale ex- perimentation and parameter tuning remained computationally expensive. Running extensive simulations with multiple parameters across decades of historical data required significant processing time. 8.3 Challenges Encountered Throughout the development phase, several technical and analytical challenges were encountered along the way. One major challenge involved ensuring that all calculations avoided look-ahead bias when computing indicators and ranking signals. Careful selection of ’as - of’ logic ensured that only information available at the time of making was utilised within the strategy. Another challenge faced was the handling of large-scale financial datasets. Processing millions of rows of historical price data while consuming earnings transcript information meant that efficient data pipelines had to be utilised. In order to maintain acceptable runtime, the operations have to be vectorised, and nested loops have to be removed as well. In addition, sentiment coverage across earnings transcripts was not always consistent. Some tickers lacked transcript data for certain periods, requiring the strategy to gracefully handle missing sentiment information without introducing bias into the trading decisions. 8.4 Future Work Several promising directions can further improve the strategy’s effectiveness and research depth. Firstly, incorporating advanced NLP techniques for earnings transcript analysis. Instead of a basic senti- ment classification, future work could include contextual embeddings, topic modelling, or sentence-level analysis to capture richer insights from earnings calls. This may reveal specific themes such as revenue guidance, cost pressures, or management confidence that could influence stock performance. Secondly, introducing machine learning models for signal combination could be introduced. Rather than manually defining entry and exit rules, supervised learning algorithms such as gradient boosting and random forest classification could be trained to learn about the relationships between technical indicators, sentiment signals, and future returns. This could potentially enhance the predictive power of the trading algorithm. Lastly, future works may look to explore on dynamic portfolio allocation methods. The strategy inher- ently did not allow for changes to be made towards the capital allocation, hence it allocated a fixed capital across the Top-N selection of momentum leaders. More sophisticated approach such as risk parity allo- cation, volatility - adjusted capital allocation, could help to optimise the portfolio and distribute capital more efficiently across selected assets. 20 REFERENCES21 References [1] Andrei A. Kirilenko, Albert S. Kyle, Mehrdad Samadi, and Tugkan Tuzun. The flash crash: High- frequency trading in an electronic market. The Journal of Finance, 72(3):967–998, 2017. pages [2] Tim Loughran and Bill McDonald. When is a liability not a liability? textual analysis, dictionaries, and 10-ks. The Journal of Finance, 66(1):35–65, 2011. pages [3] Steven M. Price, James S. Doran, David R. Peterson, and Barbara A. Bliss. Earnings conference calls and stock returns: The incremental informativeness of textual tone. Journal of Banking & Finance, 36(4):992–1011, 2012. pages [4] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics, pages 4171–4186, 2019. pages [5] Dogu Araci. Finbert: Financial sentiment analysis with pre-trained language models. arXiv preprint arXiv:1908.10063, 2019. pages 21 REFERENCES22 Appendices Individual Contributions NameRole AreaKey Contributions Owen Nyo Wei YuanStrategy & Design, ReportContributed to the overall project strategy and system design. Assisted in structuring the methodology and preparing sections of the final report. Ryan Tan Jun WeiOptimisation, Exploratory Data Analy- sis (EDA), Report Performed exploratory data analysis to understand dataset patterns and dis- tributions. Implemented optimisation techniques to improve computational efficiency and contributed to report writing. Victor Tan Jia XuanStrategy & Design, ReportContributed to the formulation of the project strategy and design of the solu- tion approach. Assisted in document- ing the methodology, system design, and results in the final report. Fabian Ong Jun YaoData Cleaning, Exploratory Data Anal- ysis (EDA), Report Handleddatapreprocessingand cleaning to ensure dataset quality. Conducted exploratory data analysis and contributed to documentation in the final report. Table 1: Individual Contributions of Team Members 22 REFERENCES23 Enhanced EDA Visualizations Figure A1: 63-Day Momentum vs Forward 21-Day Return Figure A2: Cumulative Returns: Top Momentum Portfolio vs Market Average 23 REFERENCES24 Figure A3: ATR(14) Volatility vs Forward 21-Day Return 24 REFERENCES25 Figure A4: Momentum Deciles vs Average 21-Day Forward Return 25 REFERENCES26 Figure A5: ATR Volatility Buckets vs Average 21-Day Forward Return 26 REFERENCES27 Figure A6: Momentum-to-Volatility Ratio Deciles vs Average 21-Day Forward Return 27