Welcome to the Discounted Cash Flow (DCF) Model, a powerful tool built with Flask that allows you to project the intrinsic value of a stock based on its future cash flows. This project provides a simple yet effective way to assess whether a stock is overvalued or undervalued using financial modeling.
🚀 Key Features:
- Stock Ticker Input: Enter the stock ticker of the company you're interested in.
- Projection Years: Specify the number of years you want to project for.
- Predictions & Insights: Receive a detailed analysis of the company's future cash flows, along with a prediction of the intrinsic stock price.
- Interactive Flask App: The model runs on a Flask-based web app where users can input data and see results in real-time.
Clone the repository to your local machine:
git clone https://github.com/Jack-0ut/dcf.git
cd dcf-modelSet up and activate your virtual environment:
python -m venv venv
# For Windows
venv\Scripts\activate
# For macOS/Linux
source venv/bin/activateInstall all necessary dependencies:
pip install -r requirements.txtStart the Flask server:
python app.pyThe app will be available at http://127.0.0.1:5000/ in your web browser.
Open the app in your browser. Enter the stock ticker (e.g., AAPL for Apple, MSFT for Microsoft). Specify the number of years to project the future cash flows. Click on Submit to see the model’s prediction and detailed data on the intrinsic stock price.
Flask: Lightweight web framework for creating the interactive application. yFinance: Fetching real-time stock data for valuation. NumPy & Pandas: Data handling and calculations. Matplotlib & Plotly: Visualization of data and trends.
This project is licensed under the MIT License.
Contributions are welcome! If you would like to improve or add features to this project, feel free to fork the repository and create a pull request. You can also open issues for any bugs or suggestions.