Stock Analysis PC is a desktop application built with Python and Tkinter that allows users to:
- Visualize historical stock price data fetched from Yahoo Finance.
- Analyze technical indicators.
- View future price predictions generated by an LSTM (Long Short-Term Memory) neural network model.
- Incorporate news sentiment analysis (using GDELT, Newspaper3k, VADER) to potentially adjust predictions.
- Interact with the plot.
- Save the generated plot as an image.
This tool is intended for educational and informational purposes.
- Fetches stock data using
yfinance
. - Calculates technical indicators (EMA, MACD, RSI, OBV, ATR, Bollinger Bands related).
- Trains an LSTM model on historical data (user-defined period) to predict future closing prices (fixed 10-day forecast).
- News sentiment fetching and analysis integration.
- Linear regression forecasting for future sentiment trends.
- Interactive Matplotlib plot embedded in a Tkinter GUI.
- Hover to see specific price/date details.
- Scroll wheel zooming.
- Toggle plot lines via legend click.
- Reset View button.
- Option to save the plot to PNG, JPG, or PDF.
- Bundled PDF documentation accessible from the application.
- Feedback form link integrated.
For Running the Executable (Windows Only):
- Windows 10/11 (or compatible Windows version).
- Internet connection (for fetching stock data and news).
- (No Python installation needed)
For Running from Source Code (Windows, macOS, Linux):
- Python 3.8+ recommended.
- Operating System: Windows, macOS, or Linux.
- Required Python packages (see
requirements.txt
). - Internet connection.
- Clone the repository:
git clone https://github.com/Desloo/Stock_Analyzer.git
- Navigate into the directory:
cd Stock_Analyzer
- (Recommended) Create and activate a virtual environment:
python -m venv venv # On Windows .\venv\Scripts\activate # On macOS/Linux source venv/bin/activate
- Install dependencies:
(Note: TensorFlow installation might require specific steps depending on your system/GPU).
pip install -r requirements.txt
- Run the application:
python stock_apk.py
Currently, a pre-built version is provided only for Windows (64-bit). This executable is packaged within a .zip
archive that contains all necessary files.
- Navigate to Releases: Go to the Releases page of this repository.
- Download the Archive: Find the latest release and download the
.zip
file listed under "Assets" (e.g.,StockAnalysisPC-v1.0-Windows.zip
). - Extract the Archive: Once downloaded, extract the entire contents of the
.zip
file to a new folder on your computer. Do not try to run the executable directly from within the zip file viewer. - Open the Extracted Folder: Navigate into the folder created during extraction (it will likely be named
Stock Analyzer
or similar, matching the folder inside the zip). - Run the Application: Inside this folder, find and double-click the executable file named
Stock Analyzer.exe
(or similar application name) to launch the program.
(This executable is built for Windows and will not run on macOS or Linux. To run on other platforms, please follow the "Running from Source Code" instructions.)
For detailed information on features, usage, and the model, please refer to the bundled documentation: Stock Analysis PC.pdf
Mathematical Model Breakdown: Model Details PDF
This software is for educational and informational purposes ONLY. It does NOT constitute financial advice. Stock market predictions are inherently uncertain. Past performance is not indicative of future results. Do not rely solely on this tool for making investment decisions. Use this software entirely at your own risk. The developers assume no responsibility for any financial losses incurred.
Copyright (c) 2025 Desloo. All Rights Reserved.
This project is NOT licensed under an open-source license. You may download and run the provided executable for personal, non-commercial evaluation and view the source code for personal educational understanding only.
Any other use, including but not limited to modification, redistribution, use in other projects (commercial or non-commercial), or use as educational material, is strictly prohibited without prior express written permission from Desloo.
Please see the COPYRIGHT.md file for full details and contact information for permissions.
- Feedback is welcome! Please use the "Feedback" button within the application or open an issue on GitHub.
- Check out the demo video on YouTube: https://youtu.be/c9qvytfMsK4