Skip to content

aiden1020/Stock-Dollar-Cost-Averaging-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dollar Cost Averaging Calculator

Overview

This is a simple Dollar Cost Averaging (DCA) calculator implemented using Python and the Tkinter library for the graphical user interface (GUI). The calculator allows users to input stock symbols, time intervals, and monthly investment amounts to visualize the performance of their investments over time.Stock data is fetched by yahoo finance api(yfinance).https://finance.yahoo.com

Features

  • Add Multiple Stocks: Users can add multiple stocks to the graph, and the application will display the combined performance.
  • Graphical Representation: The application uses Matplotlib to graphically represent the investment performance over time.
  • Dollar Cost Averaging Comparison: The graph compares the performance of Dollar Cost Averaging against normal saving over a specified time period.

Getting Started

  1. Clone File

    • Run
    • git clone https://github.com/aiden1020/Stock-Dollar-Cost-Averaging-Calculator.git
  2. Prerequisites:

    • Ensure you have Python installed on your system.
    • pip install -r requirement.txt
  3. Run the Application:

    • Execute the script using the command: python3 dollar_cost_avg_calculator.py
  4. Usage:

    • Input the stock symbol, time interval (1, 3, or 5 years), and monthly investment.
    • Click "Add to graph" to see the performance graph.
    • Use the "+" button to add more stocks for comparison.

Application Structure

Alt text

  • Frames:

    • StockSearchFrame: Frame for entering stock details and initiating graph creation.
    • CanvaFrame: Frame for displaying the Matplotlib graph.
    • TableFrame: Frame for displaying a summary table.
  • Graphical Representation:

    • Matplotlib is used to create a line graph representing the investment performance.
  • Table View:

    • The application includes a Treeview widget displaying a summary table of stocks, costs, profits, and return on investment (ROI).

Releases

No releases published

Packages

No packages published

Languages