Files
OpenBB/gamestonk_terminal/comparison_analysis

COMPARISON ANALYSIS

This menu aims to compare a pre-loaded stock with similar companies, and the usage of the following commands along with an example will be exploited below.

  • get
    • get similar companies [Finviz, Finnhub, Polygon]
  • select
    • select similar companies
  • historical
    • historical data comparison [Yahoo Finance]
  • hcorr
    • historical correlation between similar companies [Yahoo Finance]
  • income
    • income financials comparison [Market Watch]
  • balance
    • balance financials comparison [Market Watch]
  • cashflow
    • cashflow financials comparison [Market Watch]
  • sentiment
    • sentiment analysis comparison [FinBrain]
  • scorr
    • sentiment correlation between similar companies [FinBrain]
  • overview
    • brief overview (e.g. Sector, Industry, Market Cap, Volume) [Finviz]
  • valuation
    • brief valuation (e.g. P/E, PEG, P/S, P/B, EPS this Y) [Finviz]
  • financial
    • brief financial (e.g. Dividend, ROA, ROE, ROI, Earnings) [Finviz]
  • ownership
    • brief ownership (e.g. Float, Insider Own, Short Ratio) [Finviz]
  • performance
    • brief performance (e.g. Perf Week, Perf YTD, Volatility M) [Finviz]
  • technical
    • brief technical (e.g. Beta, SMA50, 52W Low, RSI, Change) [Finviz]
  • > po
    • portfolio optimization for selected tickers

get

get [-s {polygon,finnhub,finviz}] [--nocountry]

Get similar companies to compare with. [Source: Finviz by default]

  • -s : source that provides similar companies. Default: polygon.
  • --nocountry : when getting similar companies from Finviz, we filter by same Industry, Sector and Country. However, if we don't want to filter by same country we can set this flag. For this flag to work, the -p flag can't be selected.
Captura de ecrã 2021-05-06, às 23 09 22

select

usage: select [-s L_SIMILAR]

Select similar companies, e.g. NIO,XPEV,LI

  • -s : similar companies to compare with

historical

usage: historical [-s L_SIMILAR] [-a L_ALSO] [-t TYPE_CANDLE]

Historical price comparison between similar companies [Source: Yahoo Finance]

  • -s : similar companies to compare with. Default pre-loaded ones.
  • -a : apart from loaded similar companies also compare with.
  • -t : type of candles: o-open, h-high, l-low, c-close, a-adjusted close. Default 'a'.

historical

hcorr

usage: hcorr [-s L_SIMILAR] [-a L_ALSO] [-t TYPE_CANDLE]

Historical price correlation between similar companies [Source: Yahoo Finance]

  • -s : similar companies to compare with. Default pre-loaded ones.
  • -a : apart from loaded similar companies also compare with.
  • -t : type of candles: o-open, h-high, l-low, c-close, a-adjusted close. Default 'a'.

corr

income

usage: income [-s L_SIMILAR] [-a L_ALSO] [-t 31-Dec-2020/2017] [-q]

Income financials comparison between similar companies [Source: Market Watch]

  • -s : similar companies to compare with. Default pre-loaded ones.
  • -a : apart from loaded similar companies also compare with.
  • -t : timeframe of earnings. Default: Last.
  • -q : quarterly data instead of yearly. Default: False.
Captura de ecrã 2021-03-20, às 09 10 02

balance

usage: balance [-s L_SIMILAR] [-a L_ALSO] [-t 31-Dec-2020/2017] [-q]

Balance financials comparison between similar companies [Source: Market Watch]

  • -s : similar companies to compare with. Default pre-loaded ones.
  • -a : apart from loaded similar companies also compare with.
  • -t : timeframe of earnings. Default: Last.
  • -q : quarterly data instead of yearly. Default: False.
Captura de ecrã 2021-03-20, às 09 10 53

cashflow

usage: cashflow [-s L_SIMILAR] [-a L_ALSO] [-t 31-Dec-2020/2017] [-q]

Cashflow financials comparison between similar companies [Source: Market Watch]

  • -s : similar companies to compare with. Default pre-loaded ones.
  • -a : apart from loaded similar companies also compare with.
  • -t : timeframe of earnings. Default: Last.
  • -q : quarterly data instead of yearly. Default: False.
Captura de ecrã 2021-03-20, às 09 12 59

sentiment

usage: sentiment [-s L_SIMILAR] [-a L_ALSO]

Sentiment analysis comparison [Source: FinBrain]

  • -s : similar companies to compare with. Default pre-loaded ones.
  • -a : apart from loaded similar companies also compare with.
Captura de ecrã 2021-03-20, às 15 57 06

scorr

usage: scorr [-s L_SIMILAR] [-a L_ALSO] [-t TYPE_CANDLE]

Sentiment correlation between similar companies [Source: FinBrain]

  • -s : similar companies to compare with. Default pre-loaded ones.
  • -a : apart from loaded similar companies also compare with.
Captura de ecrã 2021-03-20, às 15 57 01

overview

usage: overview [-s L_SIMILAR] [-a L_ALSO]

Prints screener data of similar companies. Some of the fields shown are: Sector, Industry, Market Cap, Volume. [Source: Finviz]

  • -s : similar companies to compare with. Default pre-loaded ones.
  • -a : apart from loaded similar companies also compare with.
overview

valuation

usage: valuation [-s L_SIMILAR] [-a L_ALSO]

Prints screener data of similar companies. Some of the fields shown are: P/E, PEG, P/S, P/B, EPS this Y. [Source: Finviz]

  • -s : similar companies to compare with. Default pre-loaded ones.
  • -a : apart from loaded similar companies also compare with.
valuation

financial

usage: financial [-s L_SIMILAR] [-a L_ALSO]

Prints screener data of similar companies. Some of the fields shown are: Dividend, ROA, ROE, ROI, Earnings. [Source: Finviz]

  • -s : similar companies to compare with. Default pre-loaded ones.
  • -a : apart from loaded similar companies also compare with.
financial

ownership

usage: ownership [-s L_SIMILAR] [-a L_ALSO]

Prints screener data of similar companies. Some of the fields shown are: Float, Insider Own, Short Ratio. [Source: Finviz]

  • -s : similar companies to compare with. Default pre-loaded ones.
  • -a : apart from loaded similar companies also compare with.
ownership

performance

usage: performance [-s L_SIMILAR] [-a L_ALSO]

Prints screener data of similar companies. Some of the fields shown are: Perf Week, Perf YTD, Volatility M. [Source: Finviz]

  • -s : similar companies to compare with. Default pre-loaded ones.
  • -a : apart from loaded similar companies also compare with.
performance

technical

usage: technical [-s L_SIMILAR] [-a L_ALSO]

Prints screener data of similar companies. Some of the fields shown are: Beta, SMA50, 52W Low, RSI, Change. [Source: Finviz]

  • -s : similar companies to compare with. Default pre-loaded ones.
  • -a : apart from loaded similar companies also compare with.
technical