π Predict future stock prices with AI! This project uses deep learning (LSTM) to analyze historical stock data and forecast future trends. With Streamlit & Yahoo Finance, you can interactively predict stock prices. Plus, it runs seamlessly on Google Colabβno powerful hardware needed! π―
β
Real-time stock data fetching from Yahoo Finance π
β
Deep Learning (LSTM) based stock price prediction π€
β
Interactive moving average (100, 200, 250 days) visualization π
β
Easy deployment & access with Streamlit π
β
Google Colab supportβrun it anywhere, no setup required! π»
Follow these steps to upload the required files:
- Open Google Colab (Click Here)
- Click on the folder icon π in the left sidebar
- Click the Upload button β¬οΈ and select these two files:
stock_price.ipynb
(Jupyter Notebook)web_stock_price_predictor.py
(Streamlit App)
Just click on Run All Cells in stock_price.ipynb
. The model will train, and the server will start.
Once the notebook runs successfully, youβll see a Streamlit App link in the last output cell. Click on it! π―
The app will ask for a password. Run the command below in Cell 2 of the notebook:
!wget -q -O - ipv4.icanhazip.com
Copy the output and enter it as your password.
Youβre in! Congrats! π
Go to Yahoo Finance π and search for a stock. Find the short form (ticker) inside parentheses:
- Example: Microsoft Corporation (MSFT), Apple (AAPL), Tesla (TSLA).
In the app, type the company code (e.g., MSFT for Microsoft) and hit Enter! π
Click on the three dots in the top-right corner of the app and select Print to save your predictions. π¨οΈ
Want to run it on your local machine instead of Google Colab? Follow these steps:
git clone https://github.com/your-username/stock-price-predictor.git
cd stock-price-predictor
pip install -r requirements.txt
streamlit run web_stock_price_predictor.py
- Python π
- Streamlit π
- Keras / TensorFlow π§
- Yahoo Finance API π
- Pandas, NumPy, Matplotlib π¬
Love this project? Fork it, improve it, and send a Pull Request! π
For questions or feedback, open a GitHub Issue or reach out via email. π
π― Start predicting stock trends with AI! Happy Trading! πΉπ