Using Twitter Data as Sentiment Indicator, a Trading Strategy Based on President Trump’s Twits

Subscribe to newsletter

Trading using market sentiment indicators is an approach that analyzes the market sentiment data to make trading and investing decisions. Due to the increasing popularity of social networks, social media data in general and Twitter data in particular have been used growingly in the construction of sentiment indicators.

Sentiment analysis can use natural language processing, artificial intelligence, text analysis and computational linguistics to identify the attitude of a writer with respect to a topic. It’s an important cornerstone of behavioral finance, where theorists believe that markets are irrational and that asset prices are driven by human emotion (e.g., fear, greed, hope and overconfidence, among others). With the growth in global conversation on social media – Twitter in particular – where a vast amount of real-time market conversation occurs on a daily basis, academics and practitioners have been studying and measuring the global conversation to understand if it can meaningfully impact markets. Most concur that Twitter sentiment is correlated to asset price moves, but the debate has been about the predictive nature of Tweets on price. Well, the results are in and the early movers in this space are seeing success. Read more

A recent paper [1] analyzes president Trump’s Twitter data and how it impacts the financial markets.  Their findings are as follow,

Subscribe to newsletter https://harbourfrontquant.beehiiv.com/subscribe Newsletter Covering Trading Strategies, Risk Management, Financial Derivatives, Career Perspectives, and More
  • We start our analysis by evaluation of the impact of Mr. Trump’s tweets in general, irrespective of the actual content of the tweet. We find that the US stock market tends to decline the first 30 minutes following his publishing of a tweet and that trading volume and volatility are significantly higher after Trump has tweeted.
  • Next, we classify tweets depending on whether they contain a specific word. We find that tweets containing the words “products” and “tariff” have a negative impact on the stock market, i.e. these tweets are followed by decline in the market, increased trading volume and increased uncertainty (level of VIX futures).
  • Finally, we use Latent Dirichlet Allocation as a topic extraction technique, which assigns each tweet a degree of affiliation to a set of topics without any human input or interpretation. We analyze the short-term impact of each topic on financial markets. We find that tweets affiliated with the topics “Trade war” and “Border Security” are followed by negative returns on the S&P 500 index, increased volatility and increased trading volume. Furthermore, we find a significant decrease in the Hang Seng index, and a significant increase in the gold price after these tweets were published. This is consistent with previous results, as tweets which imply possible restrictions in international trade are often negative news for affected countries, whereas gold is safe haven and often appreciates in uncertain periods.

Based on their findings, the authors developed a simple trading strategy, and it was shown to outperform the Buy and Hold.

References

[1] P. Gjerstad, P.F. Meyn, P. Molnár, and T.D. Næss, Do President Trump’s tweets affect financial markets?, Decision Support Systems, April 2021, 113577

Subscribe to newsletter https://harbourfrontquant.beehiiv.com/subscribe Newsletter Covering Trading Strategies, Risk Management, Financial Derivatives, Career Perspectives, and More

Further questions

What's your question? Ask it in the discussion forum

Have an answer to the questions below? Post it here or in the forum

LATEST NEWSSolar burgers: How agrivoltaics is marrying food production with green energy
Solar burgers: How agrivoltaics is marrying food production with green energy

CALGARY — Jason Bradley spent 20 years of his career as ranch manager at a 50,000-acre grazing operation in west-central Alberta, so he understands why people react with skepticism to the idea of raising a herd of cattle on a working solar farm. “The first…

Stay up-to-date with the latest news - click here
LATEST NEWSEarth's orbit is so crowded that space traffic controllers issue more than 1,000 collision warnings per day
Earth's orbit is so crowded that space traffic controllers issue more than 1,000 collision warnings per day

Satellites and chunks of space junk come close to colliding on a regular basis. The situation could get dangerously out of control.

Stay up-to-date with the latest news - click here
LATEST NEWSCanada among countries where climate politics could soon go into reverse
Canada among countries where climate politics could soon go into reverse

It's not just Trump — elections around the world may produce a new crop of net zero critics in 2025

Stay up-to-date with the latest news - click here
LATEST NEWSThe S&P 500’s performance in 2024 made investing look easy. Why bother with strategy?
The S&P 500’s performance in 2024 made investing look easy. Why bother with strategy?

A lot can get lost in long-term performance, cautions Bert Clark, CEO of Investment Management Corporation of Ontario

Stay up-to-date with the latest news - click here
LATEST NEWS2025 investing outlook: Volatility is name of the game amid tariff and tech bubble threats
2025 investing outlook: Volatility is name of the game amid tariff and tech bubble threats

Investors could get caught in a tug of war between valuations and momentum, whether to stay home or look abroad

Stay up-to-date with the latest news - click here

Leave a Reply