Group I · Finance & markets · CSCI 455 / 555 · Spring 2026

Stock Investment AI

A comprehensive educational and paper-trading platform designed to demystify the stock market through real-time AI integration.

An interactive learning environment that pairs live OHLCV market data with on-demand generative-AI explanations. Beginners drop into a tutoring layer; experienced users get a paper-trading sandbox, a rule-based strategy builder, and a structured reader for market literacy — all in one unified dashboard.

React / ViteFastAPIAlpaca paper-tradinglightweight-chartsOpenRouter LLM

The brief.

Over 60% of American adults hold equities, yet a wide gap separates participation from proficiency. Most retail traders fail to beat the 10% annualized return offered by passive benchmarks like the S&P 500 — the barriers to trading have collapsed, but the barriers to financial literacy and strategic execution remain formidably high.

There is also a disconnect between how institutional players actually function and what ordinary people know about the stock market. The cultural flashpoints — meme stocks, The Big Short, public perception of figures like Warren Buffett — sensationalize the activity rather than teach it. The team set out to move users beyond vibe-based investing toward a high-fidelity sandbox where passive observers can transition into informed strategists.

Target: Newer traders — people just starting to learn the market, recent entrants to the workforce, and younger investors looking for a vertically integrated training ground that combines learning, analysis, and simulated execution in one place.

By integrating real-time market data with on-demand generative AI explanations, we allow users to deconstruct complex technical indicators and market movements as they occur.From the write-up

The landscape.

ToolApproachWeaknessOur edge
InvestopediaEditorial articles + paper-trading gameMixes educational content with ads and news; paper-trading game omits liquidity and order realismTutorials are first-class and ad-free; paper-trading runs on Alpaca for realism
Schwab / Robinhood explainersEmbedded learn-pages on broker sitesHidden inside the broker UI, separated from the chart the user is staring atExplanations sit one click away from the live chart — no context switch
Composer / NinjaTraderProfessional strategy buildersSubscription fees, steep learning curve, professional-grade complexityNo sign-up, no fee, fast iteration loop on rule-based strategies

The core differentiator is embedding generative AI directly into the interface. Clicking any on-screen element produces an immediate, context-aware explanation — turning a static dashboard into an active learning environment, and turning learning the stock market into something genuinely fun.

The system.

The platform is a browser-based dashboard with five user-facing areas: a home screen, an interactive charting workspace, a paper-trading workspace, a rule-based strategy builder, and an educational reader. The goal is to keep learning, market observation, strategy testing, and simulated execution in one interface so users can move from concept to test against real market data without switching tools.

Navigation is tabbed: Home, Charts, Paper, Strategy, Reader — plus light/dark theme control and a lightweight login form. Each tab acts as a focused tool while shared styling variables and API utilities keep the experience consistent across the platform.

The Charts tab is the core market-analysis workspace. It uses lightweight-charts to render a TradingView-style candlestick view with volume bars, crosshair interaction, dynamic history loading, and periodic background refreshes. A central feature is AI-assisted technical analysis: clicking AI Analyze captures only the currently visible chart window, computes summary metrics (start/end price, percent change, period high/low, volatility, average volume), and routes them through an OpenRouter-hosted LLM. The model is grounded in exactly the data the user is looking at — never asked to reason about an ambiguous ticker in isolation.

Stock Investment AI charts tab showing candlestick view, volume profile, and an inline AI explanation panel.
Figure 1 · Charts workspace · AI-assisted technical analysis grounded in the visible OHLCV window.

The implementation.

The system follows a clear front-end / back-end split. The React/Vite front-end owns the user interface, chart rendering, tab state, theme state, and client-side interaction. A FastAPI back-end centralizes the integrations: it pulls historical OHLCV data, talks to Alpaca for paper trading, runs the rule-based backtesting engine, and proxies LLM calls through OpenRouter.

The Strategy tab is a rule-based builder and backtester. Users assemble IF/THEN rules over indicators (SMA 20/50/200, EMA 20, RSI 14, MACD, Price) with conditions, comparison values, and actions (Buy, Sell, Close, Do Nothing). Submitting a backtest sends ticker, date range, starting capital, and rules to the FastAPI backend, which evaluates the rules in a pure-Python engine and returns performance metrics, an equity curve, and a trade log.

The Paper tab connects the analytical work to simulated order execution via Alpaca. The Reader tab provides the structured educational article surface — a table of contents with section-level navigation, with deep-link entry from the chart workspace so a beginner can jump from an unfamiliar concept in the chart back to its explanation in one click.

GET /ohlcvPOST /ai-analyzePOST /backtestGET /paper/accountPOST /paper/orderGET /reader/sections
Strategy builder UI with two trading rules, backtest results showing +65.44% strategy return and equity curve.
Figure 2 · Strategy builder · IF/THEN rule composer with backtest result KPIs.

The evidence.

+65.44%
Strategy return
Sample backtest, AAPL 2022–2024
+40.84%
Buy & hold baseline
Same period, same ticker
100%
Win rate
On the sample two-trade run
$16,544
Final equity
From $10k starting capital
Paper trading tab showing portfolio value, buying power, positions and recent orders panels.
Figure 3 · Paper-trading tab · Alpaca account state and live order entry.

Limits & next.

Limits

  • Volume-profile estimate falls back to a local approximation when Alpaca market data is unavailable.
  • Rule-based strategy builder currently supports a fixed indicator catalogue (SMA/EMA/RSI/MACD/Price).
  • Reader content is hand-curated; not yet auto-augmented from live filings.

Next

  • Expand the indicator library and let users compose custom indicator math.
  • Bring the LLM closer to the strategy builder so it can critique a draft rule set before backtest.
  • Wire the Reader so chart clicks deep-link into the matching tutorial section automatically.