Applying News and Media Sentiment Analysis for Generating Forex Trading Signals

Oluwafemi F Olaiyapo
DOI: https://doi.org/10.26794/2308-944X-2023-11-4-84-94
2024-02-19
Abstract:The objective of this research is to examine how sentiment analysis can be employed to generate trading signals for the Foreign Exchange (Forex) market. The author assessed sentiment in social media posts and news articles pertaining to the United States Dollar (USD) using a combination of methods: lexicon-based analysis and the Naive Bayes machine learning algorithm. The findings indicate that sentiment analysis proves valuable in forecasting market movements and devising trading signals. Notably, its effectiveness is consistent across different market conditions. The author concludes that by analyzing sentiment expressed in news and social media, traders can glean insights into prevailing market sentiments towards the USD and other pertinent countries, thereby aiding trading decision-making. This study underscores the importance of weaving sentiment analysis into trading strategies as a pivotal tool for predicting market dynamics.
Statistical Finance,Machine Learning
What problem does this paper attempt to address?
This paper discusses how to use sentiment analysis of news and social media to generate forex trading signals. The main objective of the study is to examine the utility of sentiment analysis in predicting forex market trends and formulating trading signals. The author evaluates the sentiment in social media posts and news articles related to the US dollar by combining dictionary-based analysis and Naive Bayes machine learning algorithm. The results show that sentiment analysis can effectively predict market dynamics under different market conditions and provide insights for trading decisions. The study found that by analyzing the sentiment on news and social media regarding the US dollar and its related countries, traders can understand the market sentiment towards the US dollar and assist in trading decisions. The paper also points out that despite existing research using news data to predict stock prices, there is relatively little literature applying sentiment analysis to forex trading. The paper proposes the following main research questions: 1. Can sentiment analysis of news data be used to generate forex trading signals? 2. What is the most effective sentiment analysis technique for generating forex trading signals? 3. How accurate are forex trading signals based on sentiment analysis? The technical design section provides detailed descriptions of data preprocessing, sentiment analysis techniques, and trading signal generation. Sentiment analysis is conducted using the dictionary-based method (VADER) and Naive Bayes algorithm. After obtaining the sentiment analysis results, trading signals are generated by combining technical indicators such as moving averages and relative strength index. The experimental analysis section presents the implementation of the model, datasets, and performance evaluation. The experiments demonstrate that the Naive Bayes model outperforms the dictionary-based method in sentiment classification, and its generated trading signals resulted in over 12% profit during the testing period, compared to 5% for the dictionary-based method. Overall, the paper aims to demonstrate the importance of sentiment analysis in forex trading strategies and suggests that combining sentiment analysis with other technical indicators can improve the accuracy of predicting market dynamics, thus providing valuable tools for traders.