Edit this page

Introduction to the Behavioural Analysis

The Behavioural Analysis menu offers the user tools for gauging the overall public sentiment of a company online. The complexity of the tools range from message board scrapers to deep learning algorithms for financial analysis and prediction. Sentiment is particularly useful for momentum trading strategies, discovery, and general fundamental research. Navigate into the menu from the Stocks menu by entering, ba; or, using absolute paths from anywhere in the Terminal: /stocks/ba

The Behavioural Analysis submenu

How to use

The commands with Light Blue text, representing commands, do not require a ticker, faded commands will turn light blue when there is a ticker loaded.

() /stocks/ba/ $ load gme

Loading Daily GME stock with starting period 2019-05-20 for analysis.

Datetime: 2022 May 23 12:13
Timezone: America/New_York
Currency: USD
Market:   CLOSED
Company:  GameStop Corporation

() /stocks/ba/ $ ?

The Behavioural Analysis Menu with a loaded ticker

Some data sources will require a valid API key, which can be obtained for free and then set using the Keys menu. To use all the features in this menu, obtain free API keys from these providers:

See the Getting Started Guide for help setting API keys in the Terminal.

Examples

As with every command, using the -h argument displays the help dialogue. Running the headlines command returns the following:

() /stocks/ba/ $ headlines

headlines

Alternatively, running the snews command returns the following:

() /stocks/ba/ $ snews

headlines

The Reddit functions will return popular tickers and posts, or measure sentiment for a particular stock. An example would be by looking at the threads that pop up on /r/wallstreetbets, famous for the GameStop short squeeze:

() /stocks/ba/ $ wsb

2022-05-23 10:00:12 - Daily Discussion Thread for May 23, 2022
https://old.reddit.com/r/wallstreetbets/comments/uvwq8z/daily_discussion_thread_for_may_23_2022/

                                 Reddit Submission                                 
喇喇喇喇喇
 Subreddit       Flair             Score  # Comments  Upvote %  Awards      
﹦
 wallstreetbets  Daily Discussion  195    9168        88%       3 Silver    
                                                                2 Helpful   
                                                                1 Wholesome 
                                                                1 Got the   
氯氯氯氯氯

2022-05-21 11:34:21 - Most Anticipated Earnings Releases for the week beginning May 23rd, 2022
https://old.reddit.com/r/wallstreetbets/comments/uul9fs/most_anticipated_earnings_releases_for_the_week/

                                   Reddit Submission                                   
喇喇喇喇喇
 Subreddit       Flair            Score  # Comments  Upvote %  Awards           
﹦
 wallstreetbets  Earnings Thread  960    1325        97%       1 Silver         
                                                               5 Helpful        
                                                               3 Wholesome      
                                                               1 Take My Energy 
                                                               1 Sne            
氯氯氯氯氯

<continues>

The Behavioural Analysis menu also has the ability to scan for sentiment on multiple platforms including Twitter and Google with sentiment, infer and queries.

() /stocks/ba/ $ sentiment -c
From 2022-05-23 retrieving 360 tweets (15 tweets/hour)
From 2022-05-22 retrieving 360 tweets (15 tweets/hour)
From 2022-05-21 retrieving 360 tweets (15 tweets/hour)
From 2022-05-20 retrieving 360 tweets (15 tweets/hour)
From 2022-05-19 retrieving 360 tweets (15 tweets/hour)
From 2022-05-18 retrieving 360 tweets (15 tweets/hour)
From 2022-05-17 retrieving 360 tweets (15 tweets/hour)

() /stocks/ba/ $ infer
From: 2022-05-23 18:21:12
To:   2022-05-23 18:30:36
100 tweets were analyzed.
Frequency of approx 1 tweet every 6 seconds.
The summed compound sentiment of GME is: 18.42
The average compound sentiment of GME is: 0.18
Of the last 100 tweets, 41.00 % had a higher positive sentiment
Of the last 100 tweets, 19.00 % had a higher negative sentiment

() /stocks/ba/ $ queries

 Top GME's related queries 
喇
 query            value 
﹦
 stock gme        100%  
潑
 amc              29%   
潑
 amc stock        24%   
潑
 gme price        23%   
潑
 gme stock price  14%   
潑
 gme share        7%    
潑
 gme share price  6%    
潑
 reddit           6%    
潑
 gme reddit       6%    
潑
 bb               5%    
氯

The sentiment command returns the following:

sentiment

More advanced techniques can also be applied by using tools from Sentiment Investor that analyzes millions of messages to show the most talked about stocks by hour. This has the ability to show the most trending tickers with trend and historical sentiment data with hist.

() /stocks/ba/ $ trend

Most trending stocks at 2022-05-23 00:00 
喇喇喇喇
 TICKER  TOTAL  LIKES   RHI   AHI  
﹦
 SPY     89.00  43.00   1.22  1.26 
潑潑潑潑
 AMC     80.00  155.00  1.07  1.18 
潑潑潑潑
 TSLA    80.00  78.00   1.07  1.34 
潑潑潑潑
 BTC     62.00  74.00   1.14  1.09 
潑潑潑潑
 NIO     50.00  14.00   1.17  1.15 
潑潑潑潑
 AAPL    28.00  4.00    0.66  0.75 
潑潑潑潑
 AMD     26.00  59.00   0.57  0.61 
潑潑潑潑
 NVAX    13.00  4.00    0.47  0.40 
潑潑潑潑
 NVDA    12.00  11.00   0.45  0.47 
潑潑潑潑
 DIS     12.00  1.00    0.69  0.44 
氯氯氯氯

() /stocks/ba/ $ hist -s 2022-05-01

hist

Inspired by the Twitter user, @cramertracker, the final two features follow (CNBC Talking Head) Jim Cramer stock recommendations as satire that rings true.

() /stocks/ba/ $ jcdr

                         Jim Cramer Recommendations for 05/19                         
喇喇喇喇喇
 Company                 Symbol  Price   LastPrice  Change (%)  Recommendation 
﹦
 Apple                   AAPL    137.35  142.38     3.53        Buy            
潑潑潑潑潑
 AeroVironment           AVAV    85.35   85.49      0.16        Buy            
潑潑潑潑潑
 Alibaba                 BABA    87.69   87.04      -0.75       Sell           
潑潑潑潑潑
 Constellation Energy    CEG     57.23   56.92      -0.54       Buy            
潑潑潑潑潑
 Costco                  COST    422.93  427.93     1.17        Buy            
潑潑潑潑潑
 DraftKings              DKNG    14.15   13.89      -1.87       Buy            
潑潑潑潑潑
 Lockheed Martin         LMT     425.62  433.71     1.87        Buy            
潑潑潑潑潑
 Cloudflare              NET     58.00   56.92      -1.90       Buy            
潑潑潑潑潑
 Northrop Grumman        NOC     448.50  456.57     1.77        Buy            
潑潑潑潑潑
 NVIDIA                  NVDA    171.24  168.29     -1.75       Buy            
潑潑潑潑潑
 Palo Alto Networks      PANW    436.37  502.69     13.19       Buy            
潑潑潑潑潑
 PLBY Group              PLBY    9.06    9.26       2.16        Sell           
潑潑潑潑潑
 Raytheon Technologies   RTX     90.25   91.87      1.76        Buy            
潑潑潑潑潑
 SoFi Technologies       SOFI    7.75    7.30       -6.16       Buy            
氯氯氯氯氯

Jim Cramer historical recommendations for $DKNG