Visualization of given stock performance by months
Output 1 Example:
Output 2 Example:
Output 3 Example:
This project utilizes Yahoo Finance data to analyze the performance of a given stock (in this example, TUPRS). The analysis includes:
This block imports necessary libraries and modules for data fetching, analysis, and visualization.
StockPerformanceAnalyzer class provides tools to analyze the monthly and yearly performance of a given stock.
Initializes an instance of the StockPerformanceAnalyzer class with a stock symbol and start date. It also fetches and preprocesses stock performance data.
Plots a heatmap showcasing the monthly performance of the stock over years, with performance values color-coded.
These methods generate histogram plots to display the number of positive and negative performance months/years for the stock.
These methods generate histogram plots to display the number of positive and negative performance months/years for the stock.
The main execution block where an instance of the StockPerformanceAnalyzer class is created for the stock symbol "TUPRS.IS" starting from "2010-01-01". The program then calls methods to visualize the stock's monthly and yearly performance.