This repository provides a tool to visualize stock trading levels using historical stock data from Yahoo Finance. The application plots candlestick charts along with support and resistance levels.
- Fetches historical stock data from Yahoo Finance.
- Plots candlestick charts using
mplfinance. - Identifies and displays support and resistance levels.
- Provides a simple GUI for user input using
Tkinter.
yfinancepandasnumpyscipymplfinancetkinter(Standard Python library)
Install dependencies using:
pip install -r requiremens.txtUpgrade dependencies
pip install --upgrade yfinanc- Clone the repository:
git clone https://github.com/Jenishh43/Trading_Levels.git
- Navigate to the project directory:
cd Trading_Levels - Run the Python script:
python trading_levels.py
- Enter the stock ticker symbol (e.g., AAPL, TSLA).
- Input the time period for data fetching (e.g., 1mo, 1d).
- Set the accuracy level for support/resistance detection.
- Click "Fetch Data" to visualize the candlestick chart with support and resistance levels.
- fetch_Data: Fetches stock data, calculates support and resistance levels, and plots the candlestick chart.
- on_submit: Handles user inputs from the GUI and calls
fetch_Data. - Tkinter GUI: Provides an interface for the user to input parameters and visualize stock data.
This project is licensed under the MIT License.

