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.
- 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.
- https://youtu.be/XT7dJP-SdvE
- 34.80.70.215
The easiest way to run the DCA Simulator is using Docker. Follow these steps:
- Clone the repository:
git clone https://github.com/JingSyue/Stock_DCA_simulator.git
- Navigate to the project directory:
cd Stock_DCA_simulator
- Build the Docker image:
docker build -t dca-simulator .
- Run the Docker container:
docker run -p 80:80 dca-simulator
To set up the DCA Simulator without Docker, follow these steps:
- Clone the repository:
git clone https://github.com/JingSyue/Stock_DCA_simulator.git
- Navigate to the project directory:
cd Stock_DCA_simulator
- Install the required dependencies (if applicable):
pip install -r requirements.txt
To run the DCA Simulator:
- Start the Flask server:
python app.py
- Open your web browser and navigate to:
http://localhost:80
- Enter the stock symbols, monthly investment amount, start date, and end date.
- Click 'Simulate' to view the investment results.
Contributions to the DCA Simulator are welcome. Please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License - see the LICENSE.md file for details.