POLI, Matthew Alexavier Polii, home

Shoreline Investment Club

The public website and member portal of a student investing and trading club at Shoreline Community College.

04Trading education, risk and community

The home page of the club’s public website. On black, the headline reads Where knowledge meets opportunity, the second line in red, over the line Built for those willing to learn. The word Shoreline runs across the foot of the page, lit red from within. Links to Discord, the Member Portal and Register sit at the top right.
The club’s public website, live at shorelineinvestmentclub.com.

Project facts

Category
Community
Platform
Web
Status
Ongoing
When
June 2026 to now
Role
Designer and developer
Built with
Next.js, React, TypeScript, Tailwind CSS, Supabase, GSAP, Vitest, Vercel

What it does

I teach members to trade from zero. The public site sets out the club’s two learning paths; the member portal gives them a journal, backtesting, a Monte Carlo Risk Lab and a prop firm cost tracker.

  1. 01

    Club website

    The public site at shorelineinvestmentclub.com: the Investing and Trading learning paths, the curriculum and an FAQ, told through scroll-driven scenes, with an educational and risk disclaimer.

    The home page of the club’s public website. On black, the headline reads Where knowledge meets opportunity, the second line in red, over the line Built for those willing to learn. The word Shoreline runs across the foot of the page, lit red from within. Links to Discord, the Member Portal and Register sit at the top right.
    The club’s public website, live at shorelineinvestmentclub.com.
  2. 02

    Member dashboard

    A member's own trading on one screen, drawn from their journal: net P&L, win rate, today against a typical day, and a calendar of each day's result. The redesign shown here, not deployed yet, adds profit factor and detailed metrics.

    The Shoreline portal dashboard in its dark theme: a row of tiles for net P&L, win rate, profit factor, winning days and average win against loss, a strip of detailed metrics, a check of today's trading against a typical day, and an October calendar with green and red days.
    The member dashboard, from the portal redesign that is not deployed yet. Shown on the app's sample data.
  3. 03

    Risk Lab

    A Monte Carlo lab that replays a member's journal trades, backtests or stated assumptions thousands of times, then shows the range of outcomes, the odds of reaching a loss limit and how far to trust the inputs.

    Risk Lab results: tiles for the chance of hitting the loss limit and of reaching the target first, the median and average final balance, the typical worst drawdown and the longest losing streak, two notes on simulation precision and on how much to trust the inputs, and a fan chart of simulated equity paths whose white median line climbs past a green target line, well clear of a red loss limit.
    Risk Lab results for a set of journal trades, from the portal redesign that is not deployed yet. Shown on the app's sample data.
  4. 04

    Trading journal

    Members log trades with screenshots and review them through an overview with the equity curve, a P&L calendar, a trade list or gallery with CSV export, and analytics and psychology views.

    The trading journal overview: tabs for Overview, Trades, Calendar, Weekly review, Breakdown and Psychology, a large net P&L figure over an equity curve that climbs from July to October, and tiles for win rate, profit factor, expectancy and maximum drawdown.
    The trading journal, from the portal redesign that is not deployed yet. Shown on the app's sample data.
  5. 05

    Prop firm simulator

    The Risk Lab's prop firm tab models a firm's evaluation rules, from trailing drawdowns and daily loss limits to consistency rules and payouts, and reports the odds of passing, getting paid and coming out ahead after fees.

    Prop firm results in the Risk Lab: two notes on simulation precision and on how much to trust the inputs, tiles for the chance of passing and failing the first evaluation, the first payout, the average net result, coming out ahead and typical fees, and a breakdown of how the first evaluation ends.
    The Risk Lab's prop firm results for one evaluation's rules, from the portal redesign that is not deployed yet. Shown on the app's sample data.
  6. 06

    Prop Firm Tracker

    A cost ledger for a member's prop firm accounts and trading tools: what they cost, what they paid out, charges due soon and the monthly burn rate. Each member sees only their own rows.

    The Prop Firm Tracker dashboard: a reminder of two charges due within seven days, then tiles for total payouts, prop firm costs, trading infrastructure, total costs, true net profit, return, monthly burn rate and the next thirty days.
    The Prop Firm Tracker, with charges due soon at the top, from the portal redesign that is not deployed yet. Shown on the app's sample data.
  7. 07

    Investing research workspace

    The Investing page walks through researching one fictional company in five steps, from the business to a written thesis. Every figure comes from one data file, and a script checks the arithmetic.

    A research workspace on the club website for Driftnote, Inc., marked fictional. A list of five steps on the left, from understanding the business to forming a thesis, and panels for the company overview, revenue growth, profit margin and free cash flow.
    The Investing page's research workspace. Driftnote is a fictional company, and its figures are illustrative.
  • Backtesting

    Members record backtests with a screenshot each, compare strategies, browse them by year, month and market, and open the results in the Risk Lab.

Screenshots

  • A page of the club website headed "Microstructure. Watch liquidity move." A price line runs across a red liquidity heatmap, with a depth ladder of red and white bars on the right and three short notes on the left: Heatmap, Depth and Reaction.
    The liquidity scene on the club website's Trading page. Shown on the site's generated sample data.

I want to be the personI needed when I was 16.

The problem

A student who wants to learn about markets runs into the same wall I did. Good data, a proper trading journal and education you can trust are hard to find, and the good versions are usually paid. A club can teach the ideas, but its members still need somewhere to practise them: to log a trade, test a setup and see what their own numbers say.

The club also needed a public face: one place that explains what it is, what it teaches and how to join, and a way for officers to let new members in.

Why I built it

I teach members how to trade from zero.

I build the tools I wished I had when I started learning. I trade the NASDAQ open every morning, I backtest and I keep a trading journal, so I know which of those tools I actually reach for and which ones cost too much for a student. I wanted the club's members to have them in one place, built for how students learn.

It was also the project where I wanted to go furthest on the hard part. A journal shows you what happened. I wanted members to see what could happen next, which is why the portal grew a Monte Carlo Risk Lab rather than another chart of past results.

Design

Both sites sit on a black ground, with one signal red for the club and its actions. The public site is set in Inter Tight and Inter. The portal's October redesign, which is still on a branch, rebuilt its screens on a reference recording of a funded trader's journal: dark panels one step lighter than the ground, uppercase mono labels and a filled P&L calendar. I kept the portal's own red, its type and the club's panels on top of that reference.

Green and rose only for money

In a trading tool, colour already means something. Green and rose are kept for profit and loss, and nothing else uses them: success messages, scores and chart series that are not money are neutral. When a member sees green, it is always a gain.

Every figure in one mono face

Every number in the portal is set in JetBrains Mono, so columns of prices, percentages and R multiples line up and read as data. Words stay in Inter. A later pass moved the last money figures (billing, the Risk Lab's evidence, the leaderboard) into the same face.

Honest numbers in the Risk Lab

A simulation that looks confident can mislead a beginner. The Risk Lab keeps two kinds of uncertainty apart on screen: how precise the simulation is for these exact inputs, and how far the inputs themselves can be trusted. It states plainly that a profitable simulation does not prove an edge.

Sample data that says it is sample data

The public site shows the portal at work, so it needs figures. Its screenshots and figure cards are labelled as sample data, and the Investing page studies a company, Driftnote, that is fictional and says so on the page.

How it works

The club has two sites. The public website is a static page with scroll-driven Trading and Investing pages. Those pages are React bundles animated with GSAP, built ahead of time and loaded only when a visitor reaches them. Every figure on the Investing page comes from one data file about the fictional company, and a script checks that its arithmetic adds up.

The member portal is a Next.js app on Supabase. Supabase Auth handles sign-in, and each member's trades, backtests and prop firm records live in Postgres behind row-level security, so only that member can read them, unless they publish a trade to the public journal. Joining takes two steps: a student requests access, an officer approves the request, and only then can the student create an account, which the app checks against the approved request. Roles are student, officer and admin, and the officer pages sit behind a server-side guard.

The journal is the centre of the portal. A member logs a trade with its screenshots; the dashboard, the analytics and the calendar are all worked out from those same trades. A member can also publish a single trade to a public journal. The public feed returns only an allow-list of columns for published trades, and each screenshot goes through a route handler that checks again that the trade is still public before it serves the image.

The Risk Lab takes a member's journal trades, their backtests or a set of stated assumptions, and replays them thousands of times to show the spread of what could happen: the chance of reaching a loss limit or a target, the typical drawdown and the longest losing streak. Its tabs add stress tests that break the assumption that every trade is independent, position sizing for the NQ, MNQ, ES and MES futures contracts, and a prop firm tab that runs a firm's evaluation rules trade by trade and day by day. The simulations run on a pool of Web Workers in the browser, with progress and a cancel button. Here is the idea at a small scale, running in this page:

Try the idea behind the Risk LabA hundred trades, each risking the same share of the account. Set the numbers and see where 60 possible accounts end up.
Median account after 100 trades
$13,820
Paths that end below where they started
0%
Median worst drop from a high
7%

Simulated from the numbers you set, with a new random order of wins and losses for each path. Not anyone’s trading results.

Each simulated path has its own seeded random number stream, keyed by the seed, the path and the purpose of the draw. That makes a run give the same result whether it is split across four workers or run on one thread. The generator is xoshiro128**, published by David Blackman and Sebastiano Vigna; this is its step function as the portal writes it in TypeScript:

nextUint32(): number {
  const s0 = this.s0;
  const s1 = this.s1;
  const s2 = this.s2;
  const s3 = this.s3;
  const m = Math.imul(s1, 5);
  const result = Math.imul((m << 7) | (m >>> 25), 9) >>> 0;
  const t = s1 << 9;
  const n2 = s2 ^ s0;
  const n3 = s3 ^ s1;
  this.s1 = s1 ^ n2;
  this.s0 = s0 ^ n3;
  this.s2 = n2 ^ t;
  this.s3 = (n3 << 11) | (n3 >>> 21);
  return result;
}

Around the journal and the Risk Lab sit the other tools: backtesting, with a replay library that groups backtests by year, month and market and results that open in the Risk Lab; a Prop Firm Tracker that records what each prop firm account and trading tool costs and what it pays out; and a monthly Ranked competition in which officers review each submission with automatic red flags. The video library and the daily recap feed are built, but they still point at placeholder videos until the club's own recordings go in. Both sites are hosted on Vercel.

How I built it

I build with AI coding agents, mainly Claude Code, and almost every commit in both repositories carries an agent's name. My part is deciding what to build, setting the rules, checking the result and choosing what to change. The portal's instructions for the agents, written during the engineering audit, spell out those rules: production is live, migrations are applied by hand, row-level security is the security boundary, and tests, type checks and lint must pass before a commit.

The portal came first. Its first commit, on 29 June 2026, was a login page for what was then a day trading club, followed the next day by the Ranked competition and fixes to the access requests. In September came the first Monte Carlo tab, a prop firm simulator and the Prop Firm Tracker, and in October the public journal and the landing page. The public website followed in October, starting as a day-trading page and becoming the two-path club site, with its scroll-driven Trading and Investing pages, over three days.

The Risk Lab replaced both of the earlier simulators. I built it in layers: the simulation engine with analytic checks first, then the worker pool, then the strategy, stress, sizing and prop firm pages, each with its own tests. Database rules are tested on PGlite, an embedded Postgres, so a policy that lets the wrong member read a row fails a test instead of reaching the live site.

Much of the work was review. Separate reviews looked at the Risk Lab's maths, its design, the portal's security, its accessibility and the strength of its tests, and each one ended in a round of fixes. After them I redesigned the whole portal: a new shell with an icon rail, a light theme, a privacy mode that blurs money figures, and the journal's weekly review and breakdown tables. That redesign and the engineering audit before it are still on branches, not on the live site.

What was hard

Making the simulations reproducible. Splitting thousands of paths across workers is easy; getting the same answer however the work is split is not. The answer was to give every path, and every purpose within a path, its own random stream, and to mix each key before it seeds the generator, because xoshiro's state update is linear and streams with nearly equal keys stay correlated for a long time. A test now checks that neighbouring streams are uncorrelated.

A bug I would not have looked for. An independent review of the simulation engine found that equity landing exactly on a loss limit or a target could be missed, because the barrier was worked out in floating point: 25,000 × 1.1 comes out as 27,500.000000000004. On many whole-percent settings, fixed-dollar and contract runs under-reported the odds of reaching the target and the loss limit. Barriers now compare with a tiny tolerance, and regression tests cover every whole-percent barrier on common account sizes.

Lists that stop without saying so. Supabase returns a limited number of rows per request and gives no sign when it cuts a list short, so a member with a long history would see all-time statistics built from part of their trades. The engineering audit reads every list that feeds all-time figures page by page; that fix is on its branch and not deployed yet.

Smaller things took real time too: Vercel builds failed until the portal's fonts were loaded as variable fonts, and keeping private trades private in the public journal meant designing the feed around what it may return, not around what it hides.

Where it stands

Ongoing. Both sites are live: the club website and the member portal, where the landing page and the public journal are open to anyone and the portal itself needs an approved account. The Risk Lab, the journal, backtesting, the Prop Firm Tracker and the Ranked competition are all in the deployed portal. The video library and the recaps still hold placeholder content.

What comes next is not decided yet. Two pieces of work wait on branches: the engineering audit, which moves the sign-up checks and an admin-only role guard into database triggers and reads long lists page by page, and the portal redesign. The placeholder videos still need the club's own recordings.

As of October 2026.

What I learned

  • A simulation is only as useful as what it admits. Showing how far to trust the inputs next to the result changed how I think about every number a trading tool shows.
  • Floating point decides real outcomes. A barrier that is off by a few billionths of a dollar changed reported odds. It took an independent review to find it, and a test written for that exact case keeps it fixed.
  • Security belongs in the database. Row-level security and policy tests protect members' data whichever page, or whichever future bug, asks for it.
  • Working with AI coding agents works best when the rules live in the repository and the work is reviewed by something other than the agent that wrote it.

Let’s talk