An open API service indexing awesome lists of open source software.

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.

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**

![image](https://github.com/user-attachments/assets/d07415f3-59c2-4915-b59a-9b8b08ea7339)

## 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!**

![image](https://github.com/user-attachments/assets/0cf41a00-0abb-4223-a8f0-fd3b10bea6d5)

### 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...
}
```
![image](https://github.com/user-attachments/assets/dbb609f8-d745-41e0-8d75-c0b372acd14f)