• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Decoding Markets

  • Our Research
  • Free Book
  • Resources
    • Best Books
  • Blog
    • About
    • Top Posts
    • Free Class

You are here: Home / Strategies/ Systems / Sentiment Analysis For Trading – Does It Work?

March 8, 2021 By Joe Marwood 3 Comments

Sentiment Analysis For Trading – Does It Work?

The last few months we have seen a surge in traders looking at forums such as Wall Street Bets trying to identify meme stocks and the next GameStop. This type of trading could be classed as sentiment analysis trading. Investors attempt to make money in stocks by assessing what other investors are talking about.

Sentiment trading is not new. In the past, investors have looked at investment surveys, newspaper articles or magazine covers. However, the rise of the internet and social media has taken sentiment trading strategies to a new level. Not only do social websites allow investors to tap into the feelings of millions of traders, the data is now being collated and sold to traders looking for an edge.

Testing Sentiment Analysis Data From InfoTrie

I have been interested in sentiment trading for some time so I decided to download some historical sentiment data from a company called InfoTrie.

This data package is called FinSentS Web News Sentiment and includes daily sentiment indicators for 49,000+ global stocks since 2013 across various publicly available internet sources. According to the website:

InfoTrie is a News Analytics, Financial Engineering and Big Data company. They are headquartered in Singapore with offices in India and Europe. The FinSentS News Sentiment (NS1) data feed offers daily media sentiment indicators for 49,000+ global equities, calculated by applying sophisticated real-time machine-learning algorithms to the content of thousands of news websites and media sources from around the world. Historical data goes back to 2013.

One thing to say right off the bat. The sentiment data from InfoTrie is not cheap. It costs $40/month to gain access to 1-years worh of sentiment data but to download the full history is a pricey $1,150 per year. Maybe the data has some strong edges that make the cost worth it? Let’s run some analysis to find out.

Sentiment Analysis Indicators

The data from InfoTrie consists of five metrics:

  • Sentiment Score: a numeric measure of the bullishness / bearishness of news coverage of the stock. This ranges from -5 (extreme negative sentiment) to +5 (extreme positive sentiment.
  • Sentiment High / Low: highest and lowest intraday sentiment scores. This is polled at 5-minute intervals.
  • News Volume: the absolute number of news articles covering the stock.
  • News Buzz: a numeric measure of the change in coverage volume for the stock. Change is measured by standard deviation and is normalised on a scale of 1-10 (1 means low level of news buzz and 10 means a high level).

In other words, InfoTrie searches through millions of online data points and scores stocks based on sentiment and news flow. The following table shows the typical output for the stock symbol TWTR:

If we look at the chart below, you can see how Sentiment data is reported over the course of the year for GameStop.

The top window shows the price chart, below that is the sentiment score (black), below that is the news volume score (blue) and below that is the news buzz score (green):

Based on this data, I make the following observations:

  • Sentiment data for GameStop appears to fluctuate from positive to negative over the course of the year. It is generally positive from October 2021 and turns negative towards the end of January. Because the sentiment score is quite choppy it might make sense to overlay a moving average on the data.
  • Apart from a few spikes, news volume is generally low over the year and does not pick up until the 26th January, when the rise in GameStop is in full swing. News volume might therefore be a lagging indicator and more useful as a sell indicator.
  • News buzz hits the highest score of 10 on eight separate occassions. News buzz represents the rate of change of news flow so it makes sense that it would be a 10 at the same time as news volume spikes higher. However, there was no change in news buzz between December 12th and January 26th. This would have been an ideal time to enter GME.
  • Overall, the data looks quite noisy at first glance. I’m not too sure how this data would have accurately signalled a good time to get in the trade.

Test One – Logic Test

Considering the indicators available, a logical trading strategy might be to buy a stock that has a high sentiment score, a high news volume and a high news buzz. Such a stock can be said to be experiencing significant positive sentiment and abnormal news coverage.

To test this, I downloaded sentiment data for 4,512 US stocks between January 2020 to January 2021 and tested a simple strategy that buys stocks with a positive sentiment score (over 1), a high news volume (over 10) and a high news buzz (over 5).

Using a holding period of 10-days and a starting capital of $50,000 this strategy produced a loss of -19.73% a maximum drawdown of -34.53% and a win rate of 50.43% over 154 individual trades.

Even considering the impact of the coronavirus crash in March, this is a particularly bad result from our first sentiment strategy. The equity curve is shown below:

After this, I tested several other variations but I was unable to make any significant improvements on the performance shown above.

Test Two – Replicate BUZZ ETF

An alternative strategy is to consider a ranking type strategy that is always invested in the market. This is similar to the methodology behind the recently released BUZZ ETF from Dave Portnoy.

Using the data from InfoTrie we can attempt to replicate the BUZZ ETF by ranking stocks by Sentiment. The BUZZ ETF has some things that I don’t like. It only invests in stocks over a $5 billion market cap and has a portfolio of 75 positions. Too many.

This test will buy the top 25 stocks from our universe with the highest sentiment scores according to InfoTrie from the previous month. We won’t discriminate based on market cap and we will equal weight each position (4% position size). We will rebalance each month so that the portfolio is constantly holding the top 25 highest sentiment tickers.

Using a starting capital of $50,000 this portfolio produced a much better return of 31.59% in 2020, a maximum drawdown of -33.82% and a win rate of 58.40%.

Test Three – Reverse Logic

For our final test, I reversed the logic of the BUZZ ETF so that we will buy the 25 lowest sentiment stocks each month.

Using the same portfolio settings as previously, this test produced a return of 15.85% in 2020 with a maximum drawdown of -32.61% and a win rate of 49.23%.

Note that when I combined the low sentiment score with a high amount of news volume, performance greatly improved to +31.62% with a maximum drawdown of -22.57% and a win rate of 54.23%.

Conclusions

In this article I downloaded historical sentiment data from InfoTrie for 4,512 US stocks and tested various trading strategies based on sentiment. We found that buying the highest sentiment stocks did produce a positive return in 2020 which almost doubled the S&P 500 return of 16%.

However, it should be noted that 2020 was a stand out year for sentiment stocks so more data is needed to make firm conclusions.

I was also unable to find any individual trading strategies (other than ranking style) that beat buy and hold. After several hours working with the data I did not find a particularly strong correlation between sentiment and price return.

I found that sometimes high sentiment produced good entry points and at other times, very low sentiment produced good entry points. Reviewing the chart of Tesla below (which is a classic sentiment stock) you can see that the sentiment data is very noisy. It fluctuates from positive to negative throughout the year:

I expected Tesla to show much stronger trends in Sentiment than shown here and I found a similar story in other high sentiment stocks.

Despite the positive results from the ranking strategy, I’m not convinced that the sentiment data provides enough of an excess return to make it worth subscribing.

If you want to start your own ETF tracking sentiment, then this is one way you might go about it. But for $1,150 per year, the cost of this historical data, I was expecting more.

Notes: Data in this article from InfoTrie. Simulations produced in Amibroker.


Thank You For Reading

joe marwood profile pictureJoe Marwood is an independent trader and the founder of Decoding Markets. He worked as a professional futures trader and has a passion for investing and building mechanical trading strategies. If you are interested in more quantitative trading strategies, investing ideas and tutorials make sure to check out our program Marwood Research.


Disclaimer

This post expresses the opinions of the writer and is for information or entertainment purposes only. It is not a recommendation or personalised investment advice. Joe Marwood is not a registered financial advisor or certified analyst. The reader agrees to assume all risk resulting from the application of any of the information provided. Past performance, historical or simulated results  are not a reliable indicator of future returns and may not account for real world settings. Financial trading is full of risk and margin trading can lead to financial losses totalling more than what is in your investment account. We take care to present accurate analysis but mistakes in backtesting and presenting of analysis regularly occur. Please read the Full disclaimer.


Comment Policy

Thank you to everyone who takes the time to leave a comment. Your feedback, constructive criticism and identification of mistakes is welcome. In order to concentrate on work I may not have time to respond to all comments.

Filed Under: Investing, Stocks, Strategies/ Systems Tagged With: stocks, trading systems

Recommended Educational Resources:


  • Discover New Trading Strategies
  • Learn Japanese Candlesticks (Free)
  • Mental Models For Trading (Free)
  • Indicators For Amibroker (Free)
  • Tools For Options Traders (Free)
  • Historical Data For 8000 Stocks (Free)

Reader Interactions

Comments

  1. MP says

    March 10, 2021 at 8:39 pm

    One idea might be to test a change in sent. score from >= +1 to <= -1, and vice versa.

    Reply
    • Joe Marwood says

      March 10, 2021 at 10:03 pm

      Thanks, I will try it.

      Reply
  2. Ellis Baxter says

    April 8, 2021 at 1:21 am

    I wonder if by itself Sentiment has meaning. I use it as one of many things I track on a dual screen of Daily and Hourly charts. Buy itself It is not much and is not a long term play. But of course what is these days other than a 4 to 20 day run up or down. The evidence is thin. But so is so much of what passes for reality. Time decay is an issue I all too well understand at age 72! God Bless and take good care and be well!

    eb

    Reply

Leave a Reply Cancel reply

Your email address will not be published.

Primary Sidebar

joe marwood beach

Popular

Performance Of Our Trading Systems In 2019

beware youtube trading videos

Beware YouTube Trading Videos

technical analysis for stocks

20 Technical Analysis Patterns You Need To Know

trade example in the us ten year

Shorting The US Ten Year With ATR – A Simple System That Shows A Profitable Edge

How To Invest With Intelligent Machines – Lessons From Garry Kasparov

does technical analysis work? one in 5 hedge funds use it

Does Technical Analysis Work? Evidence From The Social Sciences

25 Jesse Livermore Trading Rules : Ultimate Guide To The Boy Plunger

Slide 3 Books

100 Greatest Stock Trading Books Of All Time

Financial Disclaimer

Financial trading is risky and short-term trading is hard. You can lose money. Joe Marwood is not a registered investment advisor and nothing on this site is to be regarded as personalized investment advice. Past performance is not indicative of future results. Data errors and mistakes do occur. Please see the full disclaimer.

Footer

About The Author

Joe Marwood is an independent trader and investor specialising in financial market analysis and trading systems. He worked as a professional futures trader for a trading firm in London and has a passion for building mechanical trading strategies. He has been in the market since 2008 and working with Amibroker since 2011.

Joe Marwood Profile PIc

Recent Posts

  • How Trading Put Me In Hospital
  • Which Trailing Stop Is The Best?
  • Semrush Looks Like A Winner
  • Do Growth Stocks Make More Money?
  • Genius Sports Looks Like A Good Bet (DMYD Stock)
  • Sentiment Analysis For Trading – Does It Work?
  • Analysis Of Entry Signals
  • How To Invest With Intelligent Machines – Lessons From Garry Kasparov

Search

SPONSOR:

Privacy policy | Contact | Disclaimer | All Rights reserved. Decoding Markets Ltd.