Application for marketing analysis and comparison between companies on the stock.
- José Maria Marlet
- 14 de out. de 2023
- 2 min de leitura
Atualizado: 29 de out. de 2023
This application collects marketing data from several companies, operating on stock exchanges, which may or may not be in different countries.
Based on this data, a marketing analysis is carried out, based on the following parameters:
1. Evolution of the value of long-term shares (5 years).
2. Evolution of the value of short-term shares (30 days).
3. Delivery of dividends. 4. Company size. 5. Volatility relative to the market (Beta). 6. Share price/earnings ratio. 7. Earnings per share. 8. Recommendation trends. 9. Recommendation rating.
10. Revenue growth.
11. Earnings growth.
These parameters, for the various companies under analysis, are tabulated in a rating system that allows comparison and assessment of the attractiveness of the share in terms of investment.
There is also a graphical module that allows you to trace the evolution of the action over time, as well as establish a prediction curve based on historical data.
This application was developed in Python and its libraries based on information available on Yahoo Finance (https://finance.yahoo.com), using Pycharm as an IDE.
It is interesting to note that companies can be operated in different countries. As an example, we will compare the companies Enbridge Inc., a Canadian company in the energy sector and operated on the Toronto/Canada stock exchange, and the Vale S.A. company, a Brazilian company in the mining sector and operated on the São Paulo/Brazil stock exchange.
Companies: - Enbridge Inc. (ENB.TO)
- Vale S.A. (VALE3.SA)
Comparative table between companies:

Long-term and short-term evolution of Enbridge Inc. shares:

Evolution of Vale S.A. shares in the long and short term:

In these curves “y” and “Close” are the closing values of the action and “yhat” is the value predicted by the model.
Based on the comparative table and short-term graphs, the company Enbridge Inc. is more attractive than the company Vale S.A.
It is important to always emphasize that investments on stock exchanges always carry a high risk due to many other parameters that are not taken into account in this application. The author assumes no responsibility for the use of this information by third parties.

Comentários