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
-pflag can't be selected.
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'.
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'.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.

