01 · UNDERGRADUATE RESEARCH (IQP), WPI · MAR 2025 – OCT 2026 · ADVISOR: PROF. EUGENE OKYERE-YEBOAH · REPORT UNDER EMBARGO · STILL TRADING LIVE

Automated equity trading system

$0 $500 $1,000 $1,500 JUL AUG SEP OCT +$1,736 $0 $500 $1,000 $1,500 AUG SEP OCT +$1,736
FIG. 1 · EVERY LIVE TRADE, JUL 15 TO OCT 28, 2026: CUMULATIVE NET PROFIT AFTER COMMISSIONS, AS RECORDED. POSITIONS WERE $150 TO $600, SO THE DOLLARS ARE SMALL ON PURPOSE
Overview

My IQP asked a plain question: can one student with retail-level tools build a trading system for premarket small-cap stocks that actually holds up, after real costs, real broker limits and real money, and not just in a flattering backtest? And what does trying it show about how that market treats the regular people who trade it?

The short answer is a qualified yes, but not the way I expected. Six machine-learning systems predicted which stocks would move and still lost money. What worked was a simple rule-based system that takes the other side of the retail buying those tools encourage. It passed two out-of-sample tests whose pass/fail bars I wrote down before looking at the data, and then traded real money at small size: 95 trades in the report window, landing within the range the model predicted, and 101 by the end of October.

The final report was submitted in October 2026 and is under embargo. I’m keeping the exact rules private, because publishing them would let anyone copy the system and use up its small capacity. Everything below is process and results. I’m happy to walk through the rest in an interview.

18 months6 ML systems, all lost money2 preregistered passes101 live trades
average net return per trade, after costs95% range+2% pass bar, set before testing
FIG. 2 · AVERAGE NET RETURN PER TRADE AFTER COSTS, WITH 95% RANGES. THE LIVE RANGE IS WIDER BECAUSE 95 TRADES IS A SMALLER SAMPLE, BUT IT STAYS ABOVE ZERO
Phase 1
Prediction

The first year went into predicting which premarket movers would keep rising. I built six systems in a row: gradient-boosted trees, random forests, a 13-model stacked ensemble, neural networks, AI agents reading the news, and a 14-billion-parameter language model fine-tuned on financial news. Some of them were genuinely good at predicting. The best one scored an AUC of 0.92, where 0.5 is a coin flip and 1.0 is perfect.

It still lost money: −1.38% per trade in testing. The reason turned out to be the same every time. On cheap, thin premarket stocks, just getting in and out costs 2 to 5 percent, and the signal the models could actually capture was only 1 to 3 percent. The models were also best at predicting things like a stock’s high of the day, which is easy to predict and impossible to trade. And the language model’s most confident picks were its worst trades.

News was the same story. I built a scraper and the language model read articles well, but 84% of articles arrived after the price had already started moving. Reading the news well doesn’t help if it shows up late.

The pivot

In June 2026 I turned the go/no-go call into a set of gates with pass bars written down in advance. The buy side failed. At that point my advisor suggested I look at the short side of the same trades, which I had deliberately avoided. The opposite trade was profitable in all four market periods I tested, with no machine learning at all.

The idea behind it comes from published research, not from searching data: when a burst of retail buying hits a small stock that is hard to short, the price tends to overshoot, and it comes back. So the final system was designed from that mechanism first, and every rule had to have a reason to exist.

Testing it
honestly

The biggest risk in trading research is fooling yourself, so most of the project was built around trying to break the result.

  • Pass/fail bars written down before each test
  • Test data locked in a file the analysis code wasn’t allowed to open
  • Uncertainty measured by resampling whole trading days
  • Every model raced against a twin trained on scrambled labels
  • A separate AI verifier re-did every headline number from raw data

The edge passed both preregistered out-of-sample tests: +2.79% per trade on 662 trades of untouched 2026 data, and +3.01% on 395 trades from 2021 to 2022, data from before the project even started. Pooled, that is about 4.7 standard errors above zero. Both tests cleared the bar on their averages, but their ranges dip below it and the edge gets close to zero if trading costs double, so I planned around a more conservative +1.5 to +2.5 percent.

I also tried 18 ways to improve how it trades, written down in advance, including three machine-learning models. None of them beat the simple rules, so the locked test data was never opened for them.

Predictions
in advance

To test the idea behind the system rather than just its returns, I wrote down four predictions about its history before running it on 2011 through 2020. For example: if the edge really comes from retail traders, it shouldn’t exist before zero-commission trading brought them into the premarket. All four held. Signals grew about twelvefold from 2018 to 2020, and the edge showed up only after 2020.

Control
experiments

Two checks caught things that looked like progress and weren’t. Early on, I took the labels on my ranking model, scrambled them so they no longer matched the data, and re-ran the whole evaluation. The model scored almost as well on nonsense as on the real thing, so the edge was coming from the rules underneath, and I cut the model.

Later, the AI verifier found a company-size field that secretly used that day’s closing price, information nobody has in the morning. It had made a filter look 94% better than it was. The same process also rejected a second strategy that looked strong at first (+6.19% per trade) and then failed its preregistered test at +0.41%. A pipeline that can say no is the only kind worth trusting when it says yes.

The same goes for my own rules. On one earlier strategy I set a bar in advance: at least 40 percent of the stocks it needed had to be tradeable. I measured 17, recorded the strategy as dead, and moved on instead of moving the line.

Live trading

From July 15 to October 9, 2026 the system traded my own money, deliberately small, fully automated on a home desktop through Interactive Brokers. It made money over the period: +4.3% per trade after commissions, with a 66% win rate. Even with only 95 trades, the 95% range runs from about +1.3% to +7.2%, so it stays above zero, and the result sits within one standard error of the model’s +3.25%.

That matters more than the live number on its own. Live trading landed where the backtest and both out-of-sample tests said it would, so all of the evidence points the same way, and that makes it much less likely the edge is really zero.

It kept running after the report window closed. Through October 28 the record is 101 trades, +$1,736 after commissions, +5.0% a trade on average and 68% winners, as recorded (Fig. 1).

Costs matched the model almost exactly: 1.16% per round trip live against 1.15% assumed, even though the individual pieces were different. Every trade in my ledger was matched against the broker’s statements, and that reconciliation found two trades the software had missed.

What broke

Most of the real risk came from software and the broker, not the strategy. I found and fixed about 23 production failures from the live logs, each one covered by a new automated test. The worst: during fast price spikes the broker cancelled protective stop orders almost instantly, leaving positions unprotected. Most of those trades still went my way, but I fixed it rather than count on that. A single bad trade print once triggered a stop on a winning trade. A partly filled order got held overnight because the software logged it as a timeout. None of these show up in a backtest.

Access

The limit on this system isn’t the edge, it’s access. At the moment of each live order, 42% of candidates couldn’t be borrowed, and the broker rejected 28% of submitted orders under a platform-wide restriction on small caps tied to fraud and risk concerns, which I confirmed with them through a support ticket. Two of the blocked stocks fell 43% and 17%. Total capacity is small no matter the account size, which is part of why an edge like this can survive at all.

Society

An IQP has to look at technology and society, and this project gave a clear answer. Someone buying at the point the system confirmed a surge lost about 4.4% on average over the following hours. That fits decades of research on retail traders chasing attention-grabbing stocks.

I don’t think profiting from that is ethically neutral. It’s legal and the system never induces anyone to buy, but the money comes mostly from less-informed people, and in pump-and-dump stocks part of it is effectively a share of a fraud’s proceeds. The report’s recommendations follow from that: brokers should warn customers about restricted, fraud-linked stocks before they buy, not only when someone tries to short, and investor education should teach the difference between predicting a move and making money on it.

Infrastructure

Along the way I built a research dataset with 23,260 delisted companies alongside 13,022 active ones, 6.68 million daily bars, because a backtest that only includes stocks still trading today quietly assumes you picked the survivors. I also learned market microstructure the hard way: some trades are reported to the tape late, so a trade from yesterday can show up stamped with this morning’s time and look like a volume spike that never happened. All later tests used the time each trade actually became public. The whole stack ran on about $250 a month of data and one desktop.

36,282 tickers23,260 delisted6.68M daily bars~$250/mo data
Since
the IQP

I’m still running it and still testing changes the same way. In November I tried a handful of improvements, each with its pass bar written down before it was scored on data the design work never touched. Most of what looked good on the design data shrank by a quarter or more on fresh data, and one idea that looked strong flipped sign entirely. That’s the whole reason the bars get written down first.

Lesson
Prediction is not profit. My best model was right about the direction and still lost money, because I hadn’t measured whether there was any money in being right. The habit I’m keeping is the process: decide what counts as a pass before you look, lock the test data away, and build checks whose job is to prove you wrong.
02 SHELF-PICK ROBOT →