Stock Market Sentiment Classification and Backtesting via Fine-tuned BERT

09/21/2023
by   Jiashu Lou, et al.
0

With the rapid development of big data and computing devices, low-latency automatic trading platforms based on real-time information acquisition have become the main components of the stock trading market, so the topic of quantitative trading has received widespread attention. And for non-strongly efficient trading markets, human emotions and expectations always dominate market trends and trading decisions. Therefore, this paper starts from the theory of emotion, taking East Money as an example, crawling user comment titles data from its corresponding stock bar and performing data cleaning. Subsequently, a natural language processing model BERT was constructed, and the BERT model was fine-tuned using existing annotated data sets. The experimental results show that the fine-tuned model has different degrees of performance improvement compared to the original model and the baseline model. Subsequently, based on the above model, the user comment data crawled is labeled with emotional polarity, and the obtained label information is combined with the Alpha191 model to participate in regression, and significant regression results are obtained. Subsequently, the regression model is used to predict the average price change for the next five days, and use it as a signal to guide automatic trading. The experimental results show that the incorporation of emotional factors increased the return rate by 73.8% compared to the baseline during the trading period, and by 32.41% compared to the original alpha191 model. Finally, we discuss the advantages and disadvantages of incorporating emotional factors into quantitative trading, and give possible directions for further research in the future.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/28/2023

Deep Stock: training and trading scheme using deep learning

Despite the efficient market hypothesis, many studies suggest the existe...
research
03/30/2017

Application of a Shallow Neural Network to Short-Term Stock Trading

Machine learning is increasingly prevalent in stock market trading. Thou...
research
06/25/2023

Unveiling the Potential of Sentiment: Can Large Language Models Predict Chinese Stock Price Movements?

The rapid advancement of Large Language Models (LLMs) has led to extensi...
research
05/31/2021

Deep Reinforcement Learning in Quantitative Algorithmic Trading: A Review

Algorithmic stock trading has become a staple in today's financial marke...
research
05/05/2023

Spatiotemporal Transformer for Stock Movement Prediction

Financial markets are an intriguing place that offer investors the poten...
research
06/22/2020

Using Company Specific Headlines and Convolutional Neural Networks to Predict Stock Fluctuations

This work presents a Convolutional Neural Network (CNN) for the predicti...
research
08/11/2023

ChatGPT-based Investment Portfolio Selection

In this paper, we explore potential uses of generative AI models, such a...

Please sign up or login with your details

Forgot password? Click here to reset