Building an AI-based algorithmic trading strategy

Recently, with the development of Artificial Intelligence in finance, using it in stock market trending analysis and prediction has attracted massive attention from various investors and researchers. It has always been a well-known area of study since the creation of Artificial Intelligence. In...

Full description

Saved in:
Bibliographic Details
Main Author: Mok, Zhe En
Other Authors: Wong Jia Yiing, Patricia
Format: Final Year Project
Language:English
Published: Nanyang Technological University 2022
Subjects:
Online Access:https://hdl.handle.net/10356/158192
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Nanyang Technological University
Language: English
id sg-ntu-dr.10356-158192
record_format dspace
spelling sg-ntu-dr.10356-1581922023-07-07T19:26:20Z Building an AI-based algorithmic trading strategy Mok, Zhe En Wong Jia Yiing, Patricia School of Electrical and Electronic Engineering EJYWong@ntu.edu.sg Engineering::Electrical and electronic engineering Recently, with the development of Artificial Intelligence in finance, using it in stock market trending analysis and prediction has attracted massive attention from various investors and researchers. It has always been a well-known area of study since the creation of Artificial Intelligence. In the last decade, the progress in machine learning has introduced new prospect with new algorithms and models that can be used in stock price prediction. It is almost impossible to predict future stocks prices precisely without any error but Artificial Intelligence can help us to make better decisions on when to buy, sell or hold a stock so the investment can be profitable in the long run. A decent stock investment strategy normally consists of different stock prediction methodologies such as technical analysis, sentimental analysis and fundamental analysis. Artificial Intelligence is well known to have an outstanding advantage in quantitative finance. However, it is difficult for a trader to develop an agent that automatically execute actions to buy or sell stocks in the market due to strenuous debugging and hard programming. Traders often must specifically choose which stock to trade, at what price and what quantity [54]. It would be great to have an AI agent to help trader in making decisions. This project starts with a detailed study on recent applications of different deep reinforcement learning models and long short-term memory model in financial tasks. For deep reinforcement learning model, actor-critics approach is the most popular one and it fits well 3 with the volatile and complex nature of financial market. Six state of the art models such as LSTM, DDPG, A2C, PPO, TD3 and SAC are studied in detail. First, we choose a stock and then collect indicators of the stock data. Next, we preprocessed the historical price and feature data then feed into models for training, the trading strategy is learnt from neural networks. A simulated environment is then created to be used for evaluating trading decisions output by model. Lastly, we set an initial capital and backtest the model on test data and see the amount of profit gained from trading the stocks. Furthermore, the transaction cost is incorporated. Bachelor of Engineering (Electrical and Electronic Engineering) 2022-05-31T12:14:54Z 2022-05-31T12:14:54Z 2022 Final Year Project (FYP) Mok, Z. E. (2022). Building an AI-based algorithmic trading strategy. Final Year Project (FYP), Nanyang Technological University, Singapore. https://hdl.handle.net/10356/158192 https://hdl.handle.net/10356/158192 en A1182-211 application/pdf Nanyang Technological University
institution Nanyang Technological University
building NTU Library
continent Asia
country Singapore
Singapore
content_provider NTU Library
collection DR-NTU
language English
topic Engineering::Electrical and electronic engineering
spellingShingle Engineering::Electrical and electronic engineering
Mok, Zhe En
Building an AI-based algorithmic trading strategy
description Recently, with the development of Artificial Intelligence in finance, using it in stock market trending analysis and prediction has attracted massive attention from various investors and researchers. It has always been a well-known area of study since the creation of Artificial Intelligence. In the last decade, the progress in machine learning has introduced new prospect with new algorithms and models that can be used in stock price prediction. It is almost impossible to predict future stocks prices precisely without any error but Artificial Intelligence can help us to make better decisions on when to buy, sell or hold a stock so the investment can be profitable in the long run. A decent stock investment strategy normally consists of different stock prediction methodologies such as technical analysis, sentimental analysis and fundamental analysis. Artificial Intelligence is well known to have an outstanding advantage in quantitative finance. However, it is difficult for a trader to develop an agent that automatically execute actions to buy or sell stocks in the market due to strenuous debugging and hard programming. Traders often must specifically choose which stock to trade, at what price and what quantity [54]. It would be great to have an AI agent to help trader in making decisions. This project starts with a detailed study on recent applications of different deep reinforcement learning models and long short-term memory model in financial tasks. For deep reinforcement learning model, actor-critics approach is the most popular one and it fits well 3 with the volatile and complex nature of financial market. Six state of the art models such as LSTM, DDPG, A2C, PPO, TD3 and SAC are studied in detail. First, we choose a stock and then collect indicators of the stock data. Next, we preprocessed the historical price and feature data then feed into models for training, the trading strategy is learnt from neural networks. A simulated environment is then created to be used for evaluating trading decisions output by model. Lastly, we set an initial capital and backtest the model on test data and see the amount of profit gained from trading the stocks. Furthermore, the transaction cost is incorporated.
author2 Wong Jia Yiing, Patricia
author_facet Wong Jia Yiing, Patricia
Mok, Zhe En
format Final Year Project
author Mok, Zhe En
author_sort Mok, Zhe En
title Building an AI-based algorithmic trading strategy
title_short Building an AI-based algorithmic trading strategy
title_full Building an AI-based algorithmic trading strategy
title_fullStr Building an AI-based algorithmic trading strategy
title_full_unstemmed Building an AI-based algorithmic trading strategy
title_sort building an ai-based algorithmic trading strategy
publisher Nanyang Technological University
publishDate 2022
url https://hdl.handle.net/10356/158192
_version_ 1772827692160253952