Hollywood Stocker
Creating a Real-Time Stock Market Sim for Hollywood Actors
Case Study
If you played Hollywood Stock Exchange in the early 2000s, you know what's up. It was awesome. "The Town" podcast also does a HSX segment every year, so the last time they did it, it got me all fired up to invest in some actors. I went to revisit the OG HSX recently and, honestly, the site was kind of a mess. So I vibe coded my own with Cursor!
Hollywood Stocker is a sophisticated stock market simulation that treats Hollywood actors as tradable assets. I directed AI agents to assemble a fully functional trading platform where an actor’s StarScore (aka share price) is calculated from real Wikipedia page views, TMDb popularity scores, and acting credits. The market updates automatically twice daily (12am and 12pm) with fresh data, creating an authentic trading experience with realistic market dynamics, professional analytics, and advanced sell strategies straight from real trading playbooks.
Timeline and Development Process
Initial Concept & StarScore Formula
June 2025
Trading System & Portfolio Management
Summer 2025
Sell Strategy Analysis & Advanced Features
Fall 2025
Daily Automation & Ghostnet Integration
Present Day (October 2025)
Goals
Fun
Build a fun, casual idle game that can be played on desktop and mobile.
Dynamic
Build a dynamic stock sim using real industry data from multiple APIs.
Beautiful
Create a fun and beautiful UI & UX with optimized visual hierarchy per device.
Professional
Create professional-grade trading analytics and sell strategy analysis systems.
Automated
Develop an automated data pipeline with daily cron jobs and batch processing.
Integrated
Integrate seamlessly with the existing Ghostnet blockchain ecosystem.
What I Learned
I knew exactly what I wanted to create when I started Hollywood Stocker. As the backend evolved, I refined the frontend—and when new ideas hit the frontend, I’d circle back to the backend. It was a true iterative process that taught me how to direct something from the ground up.
When things broke, I had my Cursor agents investigate, but I quickly realized that most of the real breakthroughs came from me. Even as a beginner, I was the one diagnosing the core issues, defining what needed fixing, and steering the AI in the right direction.
I didn’t learn how to code every detail—like parsing “Lupita Nyong’o” vs. “Lupita Nyong%27o”—but I learned how to spot those problems and communicate exactly what needed to be solved.
I wanted market movements that felt organic, not random. I didn’t code the 30-day rolling window for Wikipedia views myself, but I figured out that it was the key to creating realistic bull runs and corrections—and directed Cursor to wire the logic around that.
Eventually, when the cron job kept failing, I ran a full system audit with multiple agents. They all agreed we needed file locking, stale lock detection, progress tracking, graceful error recovery, and batch processing with rate-limit delays. At first, I didn’t fully grasp those terms—but now I understand exactly how they work together to keep the system stable.
Hollywood Stocker is designed to be beautiful, fun and engaging on any device.
What I Directed
StarScore Calculation System
The heart of Hollywood Stocker is the StarScore — a weighted formula combining three real-world data sources with scaling factors to normalize the data into a tradable price:
StarScore = (Wikipedia/1000 × 0.60) + (TMDb/10 × 0.25) + (Credits/10 × 0.15)
Is this the most perfect formula to gauge an actor's real-world market value? Absolutely not. But it's incredibly accurate for three open source APIs that are updated daily.
Breaking Down the Formula:
- Wikipedia Page Views (60% weight): 30-day rolling total divided by 1,000 to scale down massive view counts into manageable numbers. A viral actor with 100,000 views contributes 60 points to their StarScore.
- TMDb Popularity (25% weight): Movie database popularity score (0-100 scale) divided by 10, then weighted. An A-lister with TMDb 85 contributes 2.125 points.
- Acting Credits (15% weight): Total professional roles divided by 10 to prevent veterans with 200+ credits from skewing the market. An actor with 45 credits contributes 0.675 points.
Real Example:
An established star with 50,000 Wikipedia views, TMDb score of 85, and 45 acting credits:
- Wikipedia: (50,000 / 1,000) × 0.60 = 50 × 0.60 = 30.0
- TMDb: (85 / 10) × 0.25 = 8.5 × 0.25 = 2.125
- Credits: (45 / 10) × 0.15 = 4.5 × 0.15 = 0.675
- Final StarScore: $32.80 per share
Actor Classification System
Every actor gets classified into stock categories with visual indicators:
Stock Categories
- 🔵 Blue-Chip ($80+): A-list superstars with decades of reliable performance
- 🟢 Green-Chip ($30-79): Established stars with proven track records
- 🟡 Mid-Cap ($5-29): Rising stars on a steady climb
- 🔴 Penny Stock ($0-4.99): Unknown newcomers or character actors
Performance Classifications
The system also tracks performance patterns to identify trading opportunities:
🚀 Rocket Ships
100%+ growth from start or minimum — explosive momentum
🎢 Volatile Climbers
20-99% growth with 15%+ spikes — high risk, high reward
💪 Rebound
Previous -20% decline followed by 30%+ recovery — comeback stories
📈 Steady Climbers
5-99% growth with consistent upward trend — reliable gainers
⛰️ Peaked
Previous 20%+ growth now showing -30%+ decline — sell signals
📉 Steady Sinkers
-20% to -50% decline — avoid or short candidates
🪨 Dead Weight
Less than 5% change with low volatility — stagnant positions.
➡️ Steady
No change in StarScore — completely flat. Usually upcoming actors without wikipedia page views or TMDb popularity.
🔥 All Time High
Current StarScore is at record levels — to the moon!
Actor Card: Each actor you purchase is displayed in a card format with their name, photo, stats, and trading information.
Full Trading Platform
The system supports complete portfolio management: buy shares at current prices, sell partial or full positions, automatic weighted-average cost calculation for multiple purchases, and a complete transaction history stored in the Ghostnet ledger. Cash management is unified across my entire site ecosystem — dollars spent here affect your balance everywhere.
Cash Balance: Detailed financial analytics for your portfolio's history.
Sell Strategy Analysis
I directed the rollout of ten professional trading strategies that analyze every position in real-time. Each strategy shows color-coded status indicators (✅ SELL, ⚠️ WATCH, ❌ HOLD, 🎯 COMPLETE) telling you exactly when to take action:
- Partial Profit Rule: Sell 50% when you're up 25%+ and momentum declines
- Double & Dump: Exit when your investment doubles
- Trailing Stop Loss: Sell if price drops 10% from peak
- Wikipedia Spike Exhaustion: Sell when viral moments roll out of the 30-day window
- RSI Fade, Moving Average Crossover, Support Break, and three others covering momentum indicators, technical analysis, and divergence patterns
Sell Strategy Analysis: Professional sell strategy analysis for every position.
Portfolio Features
Breakdown
At-a-glance view of holdings analyzed by gender distribution, actor categories (Blue-Chip vs Penny Stocks), and performance classifications (Rocket Ships, Peaked actors, Dead Weight)
Market Meter
Overall sentiment indicator for your current portfolio — bullish when most positions are rising, bearish when the market's declining
Stock Ticker
Scrolling stock ticker showing real-time performance of your holdings with live price updates. Just like those awful stock tickers on CNBC!
Chart.js Candlesticks
Interactive candlestick charts for every actor with custom date ranges and technical indicators
Trading Statistics
Complete performance tracking with wins, losses, biggest movers, and average returns across all positions
Average Change Trend
See if your portfolio has been trending up or down over time with visual trend indicators
Portfolio analytics like the Market Meter and Average Change Trend give the user vital performance metrics.
Automated Data Pipeline
The system currently runs twice daily at 12:01 AM and 12:01 PM, keeping prices fresh. The update process is sophisticated and bulletproof.
Data Processing
Batch Processing
Processes 5 actors per batch with 0.5-second delays between batches to respect API rate limits
Lock File System
Prevents concurrent executions with stale lock detection (auto-removes locks older than 30 minutes)
Rate Limiting
Built-in 0.2-second delays between Wikipedia API calls to prevent overwhelming their servers
Intelligent Fallbacks
Wikipedia Name Variations
When an actor's page isn't found, tries multiple variations automatically — special character handling (O'Brien vs O%27Brien), disambiguation suffixes (_(actor), _(actress)), and even last name fallback
File Validation & Recovery
Checks permissions, validates JSON integrity, and auto-fixes file permissions if needed
Sold Actor Tracking
Continues tracking actors even after they're fully sold by parsing the Ghostnet ledger transaction history allowing the user to track and even buy back in if they want to.
Monitoring & Logging
The whole system runs itself — I wake up to fresh market data, check prices again in the afternoon, and if something goes wrong, the comprehensive logging makes debugging straightforward.
Color-Coded Logs
Track every API call, success, warning, and error with timestamps for easy debugging
Web Monitoring Interface
Real-time progress tracking accessible via browser during updates
Completion Reports
Saves detailed completion data to JSON for monitoring dashboard integration
Real-time monitoring interface showing batch processing progress and color-coded logs
The Tech Stack
Frontend
- 13,757 Lines of Vanilla JavaScript: ChatGPT is obsessd with putting the number of lines of code in these case studies, so HERE YOU GO! No frameworks — data loading, rendering, analytics calculations, chart building, search system, and backup functionality
- Chart.js + Financial Extension: Interactive line and candlestick charts with custom date range pickers and time range filters. One of the main reasons I created this project was so I could have some kick ass candlestick charts
The codebase is modular and scalable — adding new features is straightforward because everything is organized into clean, reusable functions, with exhaustive markdown documentation.
When something breaks, I give Cursor the markdown file and the error message, hit enter, and about 15 minutes later (after quite a bit of back and forth - and some cursing), not only is the code fixed, but I usually receive a huge system upgrade that requires me to make changes to this very page.
Backend & APIs
- PHP Backend: Trading endpoints (buy/sell), data validation, and JSON file-based storage for portfolio, history, and transaction ledger
- TMDb API: Actor search, popularity scores, filmography data, and profile photos
- Wikipedia Pageviews API: 30-day rolling page view totals with historical data access and intelligent fallback system
Automation & Integration
The cron system runs autonomously with zero intervention — batch processing respects rate limits, lock files prevent conflicts, and comprehensive logging catches every edge case. Ghostnet integration means Hollywood Stocker isn't standalone — it's part of a unified financial ecosystem across the entire site.
Why It Rocks
The market dynamics are real. Once the game launched, I had no idea if the StarScore or API data would be accurate or even make sense. But it turns out, it's pretty damn accurate! Here are a few examples of the market dynamics in action:
When Happy Gilmore 2 somewhat surprisingly became the movie of the summer in 2025, nearly everyone who saw the cameo-filled celebfest had one question: "Who the hell played Frank Manatee?!" As a significant portion of Netflix's user base searched Benny Safdie's name on Wikipedia, his StarScore skyrocketed from $71.34 with a 1.0658 TMDb rating and 11,803 Wikipedia views to $414.32, a 7.8234 TMDb rating, and 689,388 Wikipedia views in three weeks!
This was very exciting news because I had 20 shares of Benny that I bought for $636.20 at $31.81 per share. According to the Ghostnet Ledger, on August 2, I sold just 2 shares at $349.32 to recoup my investment thanks to my sell strategy analysis. On August 25, I made my largest sale in a single transaction by selling 10 of my 20 Benny shares for just under $4,000. All in all, I made a profit of $5,024.34 or 790.03% on my investment! Thanks, Benny!
When Charli XCX went viral on TikTok for serving incredible cinematic suggestions through her Letterboxd reviews, her StarScore saw a significant bump. Interestingly, it wasn't from Wikipedia views, but from TMDb users giving her props for her reviews in the form of her TMDb rating. Her rating jumped from 2.3316 to 8.678 in just three days!
As a card-carrying XCX stan who owns 1,000 shares—and partly started this game to invest in her (she has like eight movies coming out in 2026!)—I was excited to see this happen. But I didn't sell anything. Charli and I are going to the moon.
Any pop culture event can have a significant impact on a StarScore. When the surging LA Dodgers were in the hunt for a late season playoff push, a normally meaningless series against the putrid Colorado Rockies suddenly became a must-watch event for all Dodger fans. So when Rachel Sennott threw a solid pitch in an adorable Dodgers outfit and heels to boot, her StarScore noticeably rose from $30.71 to $42.66 in 10 days.
I still hold all 100 of my Rachel shares, though. I'm waiting for I Love LA to sweep the Emmy's and Golden Globes.
Additional Challenges
- API Rate Limiting: TMDb has strict limits — learned to batch requests, implement smart caching, and use exponential backoff. The asset cache alone saves thousands of calls.
- State Management Complexity: 13K+ lines managing portfolio data, history arrays, ledgers, chart states, and UI updates taught me why frameworks exist — but doing it in vanilla JS taught me how state actually works.
- Tracking Sold Actors: Originally, sold actors stopped updating. Built a system that parses the Ghostnet ledger to continue tracking their StarScore for historical comparison.
- Mobile Responsiveness: Making complex financial charts, expandable actor cards, and strategy panels work smoothly on mobile took serious CSS and JS work. This will be the process of Hollywood Stocker I will continue to iterate on until I die.
Future Enhancements
Platform Expansion
- Build a native mobile app version with push notifications for sell strategy alerts
- Integrate real-time price updates using websockets instead of page refreshes
- Add social features: leaderboards, shared portfolios, and competition modes
Feature Depth
- Expand charting with advanced technical indicators (Bollinger Bands, MACD, Fibonacci retracements)
- Integrate dynamic LLM sell strategy analysis for each position
- Explore machine learning models to predict StarScore trajectories based on release schedules and trending patterns
Final Word
The Hollywood Stock Exchange has a special place in my heart. I used to play it with my mom, and I've wanted to make my own version of it for years. Hollywood Stocker was a fun and challenging project that taught me that, in the age of "vibe coding," if you can dream it, it's possible to direct an AI tool to make it.