Skip to content

JingSyue/Stock_DCA_simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DCA Simulator

Project Description

The DCA Simulator is a web-based stock investment simulator designed to demonstrate and analyze the long-term performance of a dollar-cost averaging investment strategy. It allows users to input multiple stock symbols, along with a monthly investment amount, start date, and end date, and then displays the Return on Investment (ROI) for each stock.

Features

  • Analyze multiple stocks simultaneously.
  • User-friendly interface for inputting stock symbols, investment amount, and date range.
  • Visualization of investment growth over time.
  • Calculation of ROI for each stock.

Demo

Installation Using Docker

The easiest way to run the DCA Simulator is using Docker. Follow these steps:

  1. Clone the repository:
    git clone https://github.com/JingSyue/Stock_DCA_simulator.git
  1. Navigate to the project directory:
    cd Stock_DCA_simulator
  1. Build the Docker image:
    docker build -t dca-simulator .
  1. Run the Docker container:
    docker run -p 80:80 dca-simulator

Installation without Docker

To set up the DCA Simulator without Docker, follow these steps:

  1. Clone the repository:
    git clone https://github.com/JingSyue/Stock_DCA_simulator.git
  1. Navigate to the project directory:
    cd Stock_DCA_simulator
  1. Install the required dependencies (if applicable):
    pip install -r requirements.txt

Usage

To run the DCA Simulator:

  1. Start the Flask server:
    python app.py
  1. Open your web browser and navigate to:
    http://localhost:80
  1. Enter the stock symbols, monthly investment amount, start date, and end date.
  2. Click 'Simulate' to view the investment results.

Contributing

Contributions to the DCA Simulator are welcome. Please fork the repository and submit a pull request with your changes.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

Dollar cost averaging simulator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published