CoolFace
Apppublic

KasSims/Interactive_Business_Intelligence_Dashboard

sourceHugging Facemitupdated 10mo agoView on Hugging Face
0likes
App README

๐Ÿ“Š Interactive Business Intelligence Dashboard

A professional-grade financial analysis platform with real-time market data, AI-powered trading recommendations, and interactive visualizations.

๐Ÿš€ Live Demo

View Live Demo on Hugging Face Spaces

โœจ Features

Core Capabilities

  • โ€”๐Ÿ”ด Real-Time Market Data: Live stock prices from Yahoo Finance API
  • โ€”๐Ÿค– AI Trading Recommendations: Buy/Sell/Hold signals with confidence scores (0-100%)
  • โ€”๐Ÿ“ˆ Dynamic Trending Stocks: REAL trending stocks fetched from Yahoo Finance (not hardcoded)
  • โ€”๐Ÿ“Š TradingView Charts: Professional-grade interactive charts
  • โ€”๐Ÿ“ฐ News Sentiment Analysis: Integrated into trading recommendations
  • โ€”๐Ÿ’ผ Portfolio Analysis: Multi-stock portfolio evaluation and allocation

Advanced Features

  • โ€”Technical Indicators: RSI, MACD, Bollinger Bands, Moving Averages, Volume Analysis
  • โ€”Support/Resistance Detection: Automatic identification of key price levels
  • โ€”Momentum Analysis: Price momentum and trend strength evaluation
  • โ€”Smart Data Display: Toggle between latest snapshot or full historical data
  • โ€”Correlation Analysis: Cross-stock correlation heatmaps

๐Ÿ› ๏ธ Technology Stack

  • โ€”Frontend: Gradio 5.4.0
  • โ€”Data Processing: Pandas, NumPy
  • โ€”Visualizations: Plotly, Matplotlib, Seaborn
  • โ€”Statistical Analysis: SciPy
  • โ€”Design Patterns: Strategy Pattern for modular analysis approaches

๐Ÿ“ Project Structure

Interactive_Business_Intelligence_Dashboard/
โ”œโ”€โ”€ app.py                          # Main application entry point
โ”œโ”€โ”€ requirements.txt                # Python dependencies
โ”‚
โ”œโ”€โ”€ src/                           # Source code (organized by layer)
โ”‚   โ”œโ”€โ”€ core/                      # Data layer
โ”‚   โ”‚   โ”œโ”€โ”€ live_data.py          # Real-time data fetching
โ”‚   โ”‚   โ”œโ”€โ”€ data_processor.py     # Historical data processing
โ”‚   โ”‚   โ””โ”€โ”€ symbol_search.py      # Symbol lookup & validation
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ analysis/                  # Business logic layer
โ”‚   โ”‚   โ”œโ”€โ”€ stock_signals.py      # AI trading signals
โ”‚   โ”‚   โ”œโ”€โ”€ fundamental_analysis.py # Financial metrics
โ”‚   โ”‚   โ””โ”€โ”€ insights.py           # AI insights generation
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ visualization/             # Presentation layer
โ”‚   โ”‚   โ”œโ”€โ”€ visualizations.py     # Chart generation
โ”‚   โ”‚   โ”œโ”€โ”€ visualization_strategies.py # Strategy pattern
โ”‚   โ”‚   โ”œโ”€โ”€ tradingview_charts.py # TradingView charts
โ”‚   โ”‚   โ””โ”€โ”€ tradingview_widget.py # TradingView widgets
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€ utils.py                   # Shared utilities
โ”‚
โ”œโ”€โ”€ docs/                          # Comprehensive documentation
โ”‚   โ”œโ”€โ”€ ARCHITECTURE.md            # System design & architecture
โ”‚   โ”œโ”€โ”€ SETUP.md                   # Installation & setup guide
โ”‚   โ”œโ”€โ”€ FEATURES.md                # Feature documentation
โ”‚   โ”œโ”€โ”€ API_REFERENCE.md           # Developer API reference
โ”‚   โ””โ”€โ”€ PERFORMANCE_IMPROVEMENTS.md # Optimization details
โ”‚
โ”œโ”€โ”€ data/                          # Sample data
โ”‚   โ””โ”€โ”€ selected_portfolio.csv    # 20 stocks & ETFs dataset
โ”‚
โ”œโ”€โ”€ scripts/                       # Utility scripts
โ”‚   โ”œโ”€โ”€ generate_sample_data.py   # Data generation
โ”‚   โ””โ”€โ”€ prepare_selected_data.py  # Data preparation
โ”‚
โ”œโ”€โ”€ assets/                        # Static assets
โ”‚   โ”œโ”€โ”€ ARCHITECTURE_DIAGRAM.txt  # Visual architecture
โ”‚   โ””โ”€โ”€ screenshots/              # UI screenshots (for docs)
โ”‚
โ”œโ”€โ”€ exports/                       # Generated outputs
โ””โ”€โ”€ tests/                         # Test files

๐Ÿ“š Documentation

Comprehensive documentation is available in the docs/ directory:

DocumentDescription
**SETUP.md**Complete installation and setup guide for instructors and developers
**ARCHITECTURE.md**System architecture, design patterns, and data flow diagrams
**FEATURES.md**Detailed feature documentation with usage examples
**API_REFERENCE.md**Developer API reference for all modules and classes
**PERFORMANCE_IMPROVEMENTS.md**Performance optimizations (60% speed improvement)

For Instructors: Start with SETUP.md for quick installation, then see ARCHITECTURE.md for technical details.

For Developers: See API_REFERENCE.md for module documentation and extension points.

๐Ÿš€ Quick Start

Prerequisites

  • โ€”Python 3.8+
  • โ€”pip package manager

Installation

  1. 1.Put the project folder in your desired directory The instructions assume you have cloned or downloaded the project to your local machine.
  1. 1.Install dependencies
bash
pip install -r requirements.txt
  1. 1.Run the application
bash
python app.py
  1. 1.Open in browser Navigate to http://localhost:7860

โš ๏ธ Known Behavior

Time and Market Status Display:

  • โ€”When running on localhost, the time and market status may display "Loading..." or "Checking..." due to JavaScript execution limitations in local Gradio environments
  • โ€”The Hugging Face Spaces deployment properly updates the time and market status in real-time
  • โ€”This does not affect any core functionality of the dashboard

๐Ÿ“Š Dataset

The dashboard includes a curated portfolio of 20 major stocks and ETFs from 2013-2017:

Stocks

  • โ€”Tech Giants: AAPL, MSFT, GOOGL, AMZN, NVDA, TSLA, AMD
  • โ€”Financial: JPM, BAC, JNJ
  • โ€”Consumer: WMT
  • โ€”Energy: XOM

ETFs

  • โ€”Market Indices: SPY, QQQ, DIA, IWM
  • โ€”Sector ETFs: XLK, XLF, XLE, GLD

๐ŸŽฏ Usage Guide

1. Data Upload

  • โ€”Click "Load Sample Portfolio" to use the default dataset
  • โ€”Or upload your own CSV/Excel file with columns: Date, Open, High, Low, Close, Volume, Symbol

2. Data Exploration

  • โ€”Statistics Tab: View comprehensive statistics and data quality metrics
  • โ€”Filter & Explore Tab: Apply dynamic filters to focus on specific time periods or assets

3. Visualizations

Choose from multiple chart types:

  • โ€”Time Series with Moving Averages
  • โ€”Candlestick Charts with Volume
  • โ€”Distribution Histograms
  • โ€”Correlation Heatmaps
  • โ€”Scatter Plots with Trendlines
  • โ€”Performance Comparisons

4. Insights Generation

  • โ€”Click "Generate Insights" for automated analysis
  • โ€”View prioritized insights (High/Medium/Low)
  • โ€”Access key performance metrics

5. Export Results

  • โ€”Export filtered data as CSV
  • โ€”Generate comprehensive summary reports

๐Ÿ—๏ธ Architecture & Design

Strategy Pattern Implementation

The project demonstrates advanced software engineering principles through the Strategy Pattern:

python
# Example usage
from visualization_strategies import VisualizationContext

context = VisualizationContext()
context.set_strategy('technical')  # Switch to technical analysis
chart = context.create_visualization(df, params)

Available strategies:

  • โ€”Technical Analysis: Trading indicators and signals
  • โ€”Fundamental Analysis: Value metrics and comparisons
  • โ€”Risk Analysis: Portfolio risk assessment

๐Ÿ“ˆ Key Metrics Calculated

  • โ€”Returns: Daily, monthly, yearly returns
  • โ€”Volatility: Historical and rolling volatility
  • โ€”Sharpe Ratio: Risk-adjusted returns
  • โ€”Maximum Drawdown: Peak-to-trough decline
  • โ€”Value at Risk (VaR): Potential loss estimates
  • โ€”Correlation Matrix: Asset relationships

๐Ÿงช Testing

Run the application with sample data:

bash
python app.py

For custom data testing:

  1. 1.Ensure your CSV has required columns: Date, Open, High, Low, Close, Volume
  2. 2.Optional columns: Symbol (for multi-asset analysis)
  3. 3.Date format: YYYY-MM-DD

๐Ÿค AI Tools Usage

This project was developed with assistance from AI tools:

  • โ€”Code Generation: Initial boilerplate and function templates
  • โ€”Documentation: README structure and docstrings
  • โ€”Debugging: Error resolution and optimization suggestions

All AI-generated code was thoroughly reviewed, tested, and customized for the specific requirements.

๐Ÿ“ Future Enhancements

  • โ€”[ ] Real-time data integration via APIs
  • โ€”[ ] Portfolio optimization (Markowitz efficient frontier)
  • โ€”[ ] Monte Carlo simulation for risk assessment
  • โ€”[ ] Machine learning price predictions
  • โ€”[ ] News sentiment analysis integration
  • โ€”[ ] Custom indicator creation interface

๐Ÿ‘จโ€๐Ÿ’ป Author

Karim Semaan

  • โ€”Course: CS5130 - Applied Programming and Data Processing for AI
  • โ€”Institution: Northeastern University
  • โ€”Term: Fall 2025

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • โ€”Kaggle for the US Stocks & ETFs Dataset
  • โ€”Gradio team for the excellent framework
  • โ€”Course instructors for project guidance

๐Ÿ“ž Contact

For questions or feedback about this project, please contact:

  • โ€”Email: semaan.k@northeastern.edu
  • โ€”GitHub: karimsemaan

This project was created as part of the Business Intelligence course final project, demonstrating proficiency in data analysis, visualization, and application development.