top of page

Create Your First Project

Start adding your projects to your portfolio. Click on "Manage Projects" to get started

Stock 20-day SMA visualizer

Project type

Data visualizer

Date

June 2025

#Fetching Financial data

Used yFinance to fetch financial data from Yahoo! Finance

#Matplotlib to plot the SMA 20 Data

20-day Simple Moving Average calculated by calculating the rolling mean of the closing stock prices over 20 days. Matplotlib plots the following data with AAPL in Blue in MSFT in Orange. The plot is equipped with a pointer to pop up whenever the graph line is clicked on

X axis spans the years. Y axis spans the SMA_20 prices.

#GUI to display financial data

GUI created using Tkinter is used to display historical stock data including Open prices, Close prices, High and Low prices, and Volume of stocks. This GUI features AAPL on the left side of the screen and MSFT on the right side, with both windows equipped with their own scrollbar.

#Running the program

Running the stock_prices.py file with simulatenously display the plotting interface along with the interface for the historical stock data. This is so because running this python file will run the data_GUI file along with it hence allowing for a more smooth user experience.

Feel free to connect and send me a message!

bottom of page