Trading_Dashboard / README.md
jetpackjules's picture
Force Hugging Face rebuild - sync to latest commit with enhanced Reddit search and logging
055eea7

A newer version of the Gradio SDK is available: 6.3.0

Upgrade
metadata
title: Premium Trading Dashboard
app_file: app.py
sdk: gradio
sdk_version: 5.35.0

πŸš€ Premium Trading Dashboard

A comprehensive real-time trading dashboard with automated IPO discovery, sentiment analysis, and backtesting capabilities.

✨ Features

πŸ“Š Portfolio Overview

  • Real-time account monitoring (portfolio value, buying power, cash)
  • Interactive portfolio performance charts
  • Day change tracking with visual indicators

πŸ” IPO Discoveries

  • Automated IPO detection and classification
  • Investment decision analytics
  • Recent discoveries with detailed breakdowns

πŸ’° Investment Performance

  • Complete P&L analysis for all IPO investments
  • Advanced trading statistics and metrics
  • Risk analysis and performance breakdowns

πŸ”¬ NEW: Backtesting Analysis

  • Sentiment-based IPO prediction backtesting
  • Tests sentiment analysis on every actual IPO investment
  • Uses news from 12 hours before each investment
  • Multi-source analysis: Reddit (WSB) + Google News
  • VADER + TextBlob sentiment engines
  • No data leakage - purely historical validation

πŸ’» VM Terminal

  • Remote command execution on trading VM
  • Real-time log monitoring
  • File system navigation and analysis

πŸ“‹ System Logs

  • Parsed trading bot activity logs
  • Raw cron job outputs
  • Color-coded error tracking

🧠 Sentiment Analysis Engine

The backtesting feature implements a sophisticated sentiment analysis system:

  • Data Sources: Reddit (including WallStreetBets), Google News
  • Analysis Window: 12 hours before each actual investment
  • Sentiment Engines: VADER + TextBlob with engagement weighting
  • Target: First-hour stock performance prediction
  • Validation: Compares predictions vs actual market performance

Methodology

  1. Historical News Gathering: Retrieves news from 12 hours before investment
  2. Multi-source Sentiment: Analyzes Reddit posts and Google News articles
  3. Weighted Scoring: Engagement-based weighting for Reddit content
  4. Prediction Generation: Converts sentiment to percentage change predictions
  5. Performance Validation: Compares against actual first-hour stock performance

πŸ”§ Technical Stack

  • Frontend: Gradio with custom CSS styling
  • Backend: Flask API integration with VM
  • Trading API: Alpaca Markets (Paper Trading)
  • Data Sources: Reddit API, Google News RSS, Yahoo Finance
  • Sentiment Analysis: VADER, TextBlob
  • Charts: Plotly for interactive visualizations

πŸš€ Recent Updates

  • βœ… Added IPO Sentiment Analysis Backtesting
  • βœ… WallStreetBets integration for Reddit sentiment
  • βœ… Historical performance validation
  • βœ… Multi-source sentiment aggregation
  • βœ… Direction accuracy metrics

πŸ“ˆ Performance Metrics

The backtesting system tracks:

  • Direction Accuracy: % of correct up/down predictions
  • Mean Absolute Error: Average prediction error
  • Source Breakdown: Performance by news source
  • Confidence Scoring: Multi-source agreement analysis

Built with ❀️ for automated IPO trading and sentiment analysis

Last updated: 2025-07-29 - Enhanced logging and Reddit search improvements - Force sync