To begin backtesting, stock tweets per day must be stored locally given a range of dates. While there are around 5000 stocks being monitored and scraped from stocktwits, many of these stocks don't receive a significant number of tweets on a daily basis. Therefore, for each trading day, only the top 100 most tweeted about stocks are saved for backtesting. After determining the daily top stocks, the tweets must be queried for by date. An example query here finds all bullish/bearish AAPL tweets between March 1st and March 2nd.