This project is a Stock Price Prediction Web App built using Streamlit. The application allows users to select a stock from a predefined list, view historical stock data, and visualize actual vs. predicted prices. The model uses machine learning techniques to predict future stock prices and provides technical indicators like SMA, EMA, and Bollinger Bands.
- Stock Selection: Choose from a list of stocks like AAPL, GOOGL, AMZN, TSLA, etc.
- Data Visualization: Displays historical stock prices.
- Stock Price Prediction: Uses an LSTM model to predict future stock prices.
- Performance Metrics: Displays RMSE and R² scores to evaluate model accuracy.
- Technical Indicators:
- Simple Moving Average (SMA)
- Exponential Moving Average (EMA)
- Bollinger Bands
This stock prediction model is developed for educational purposes only. Predictions generated by this model are not financial advice. Stock markets are influenced by many factors, and no model can guarantee future performance.
To run the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/Elango001/sm/
-
Install dependencies:
pip install -r requirements.txt
-
Run the application:
streamlit run main.py
- Select a stock from the dropdown menu.
- View the loaded historical data.
- See actual vs. predicted stock prices.
- Analyze model performance (RMSE & R² score).
- View stock indicators (SMA, EMA, Bollinger Bands).
- Predict future stock prices for the next 10 days.
- The application loads stock data using
MODEL.py
. - Data is preprocessed by extracting features and normalizing values.
- A machine learning model is trained using LSTM (Long Short-Term Memory) networks.
- The model is evaluated using RMSE and R² scores.
- Predictions for future prices are displayed graphically.
Contributions are welcome! If you'd like to improve this project, feel free to fork the repository and submit a pull request.
For any questions or feedback, feel free to reach out!
- Email: [email protected]
- GitHub: https://github.com/Elango001
Enjoy predicting stock prices! 🚀