https://github.com/lnshuti/energy
Visualize energy stock with technical indicators ( Simple Moving Average -- SMA, Moving Average Convergence Divergence -- MACD, Relative Strength Index -- RSI, and Bollinger Bands) with just a few clicks.
https://github.com/lnshuti/energy
gradio huggingface python stocks yfinance
Last synced: 6 months ago
JSON representation
Visualize energy stock with technical indicators ( Simple Moving Average -- SMA, Moving Average Convergence Divergence -- MACD, Relative Strength Index -- RSI, and Bollinger Bands) with just a few clicks.
- Host: GitHub
- URL: https://github.com/lnshuti/energy
- Owner: LNshuti
- Created: 2024-10-08T15:46:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-14T01:57:35.000Z (11 months ago)
- Last Synced: 2025-03-28T05:22:35.915Z (7 months ago)
- Topics: gradio, huggingface, python, stocks, yfinance
- Language: Python
- Homepage: https://leoncensh-energy.hf.space
- Size: 169 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# U.S. Energy Equities Market Technical Indicator Visualization
This Python [application](https://leoncensh-energy.hf.space) allows users to visualize stock data and technical indicators **(SMA, MACD, RSI, Bollinger Bands)** for selected companies. The app fetches historical stock data using Yahoo Finance, computes various technical indicators, and displays the plots interactively through a Gradio interface.
This tool provides an intuitive way for business users and analysts to quickly visualize key technical indicators without needing deep expertise in coding or data processing, making stock analysis more accessible and engaging.
**Exhibit 1. Hess Corporation -- Simple Moving Average**

## Customize this Application with your own Stock List
### Clone this Repository
```bash
git clone https://github.com/LNshuti/energy.git
```### Setup your Environment
```bash
conda env create --file=environment.yaml
```### Activate your Environment
```bash
conda activate stock-data
```### Install Dependencies
```bash
pip install -r requirements.txt
```### Run the **app.py** to Launch the Gradio Application
```bash
python src/main.py
```**If you found the app useful, please make sure to give us a star!**

### Customize the Ticker List
You can modify the `COMPANY_TICKERS` dictionary in the Python file to add or remove companies based on your needs.```python
COMPANY_TICKERS = {
'Constellation Energy Corp': 'CEG',
'Chevron Corporation': 'CVX',
'Total Energies': 'TTE',
'Exxon Mobil': 'XOM',
'BP': 'BP',
'Royal Dutch Shell': 'SHEL',
'ConocoPhillips': 'COP',
# Add more companies here...
}
```
