All projects

17 / Ventures & FinanceStock Market

Intraday Trading Research Platform

A research platform that tested whether short-term stock trading can beat its own costs · October 2026

Drawing of a jagged price line inside a bid and ask band
Overview

Research objective

The plan was a one-person trading system that adapts to each stock. Every evening it would screen for the most volatile US stocks, test which indicators and setups predict short-term moves on those names, and trade long-only scalps lasting seconds to minutes the next day.

I treated it as a research platform first and a trading system second. Patterns that look good in past data are easy to find, and the main risk is accepting a false one. The project was therefore built around gates: each stage had a pass mark written before it ran, and failing a gate meant stopping.

Every gate that mattered failed. The signals were real but worth 1 to 5 basis points a trade, against 12 to 24 basis points to get in and out. No trading system was built, because the research found nothing to trade. The outputs are a reusable data and evaluation toolkit.

Backtests only: nothing was traded, on paper or with real money.

Scope of work

Platform layers

  • Data

    Market-data platform

    Survivorship-free daily prices, 1-second bars, and a full-market best bid and offer that I had consolidated in-house from 15 separate exchange feeds.

  • Simulation

    1-second trading simulator

    An event-driven engine that fills orders against real quotes with latency, plus a daily open-and-close simulator, both with account risk limits.

  • Research

    Feature set and model

    Around 50 indicators expanded into 443 columns on 1-second data, scored for predictive power, then fed to a pooled LightGBM model and Optuna-fitted strategy templates.

  • Evaluation

    False-positive controls

    Random-entry nulls matched to every strategy, a log that counts every configuration tried, a deflated Sharpe test, doubled-cost stress and a locked hold-out year.

01 · First gate

Volatility persistence test

The cheapest test came first, using only daily data I already had. Each evening the screen ranks eligible stocks (common shares above $5 with at least $20 million traded a day) by how widely they ranged over the last ten sessions.

Across 1,509 evenings and 2.27 million stock-days, volatility persisted: the ten highest-ranked names ranged about 3.5 times as much as the median stock the next day, and the effect faded smoothly down the ranking. A separate test confirmed the screen never uses information from the future.

The gate passed, with its limit recorded beside it: a wide range does not show whether that range can be captured after costs.

Next-day trading range of screened stocks, as a multiple of the market median · by screen rank · 2019 – 2023
  • Ranks 1 – 103.53×
  • 11 – 202.83×
  • 21 – 302.61×
  • 31 – 502.37×
  • 51 – 752.18×
  • 76 – 1002.03×
  • 101 – 2001.79×

The thin line marks 1×, the median stock

02 · Data

Full-market quote consolidation

The accuracy of a scalping backtest depends on its bid and ask. The first quote feed I used was inexpensive and popular, but covers about three trading venues. At the simulated entries it showed an average spread of 157 basis points. Trade prints at the same moments spanned about 19.

I therefore bought the best-bid-and-offer feeds of 15 exchanges for 2023, about $125 of data, and had them consolidated into a full-market quote. The same entries then showed 33 basis points. Every intraday conclusion on this page rests on that rebuilt quote.

Checking the 1-second bars against official daily data found a second problem: the bar feed leaves out the closing auction, so its volume ran 6.7% low and its last trade matched the official close on only 37.6% of days.

Scale of the platform

Daily price rows, live and delisted stocks
22.9 million
Securities covered (6,214 delisted)
20,986
Stocks with 1-second bars
1,181
Exchange quote feeds consolidated
15
Feature columns per second, per stock
443
Data stored
164 GB
Strategy configurations logged
9,613
Automated tests passing
2,054
03 · Second gate

Baseline scalping results

Before any model, five standard scalping setups ran through the simulator on 192 sessions of 2023, each beside a null strategy making random entries on the same stocks and days. All five lost, between 23 and 68 basis points a trade. Their gross edge of 3 to 5 basis points was no better than the random entries, and the cost of crossing the spread was five to sixteen times larger.

Five scalp baselines · average per trade in basis points · 36,288 simulated trades, 192 sessions in 2023
  • Gross edge before costs
  • Cost of the round trip
  • High-of-day 8,871 trades2.825.9
  • Momentum 2,080 trades4.572.4
  • Opening range 2,856 trades4.935.0
  • Pullback 11,825 trades4.936.8
  • VWAP 10,656 trades4.142.6
Median price move by holding time, against the cost of crossing the spread · basis points · screened names, 2023
  • Median move
  • Median spread, 11.4 bps
  • 5 seconds0 bps
  • 30 seconds6 bps
  • 60 seconds10.6 bps
  • 2 minutes16 bps

The measurements give the reason. Over one minute, the typical price move is about the size of one spread, so even a perfect call on direction rarely pays. Latency, which the plan had named as the biggest risk, had little effect: going from a 1-second to a 3-second delay changed results by at most half a basis point.

04 · Signals and model

Feature and model results

With the baselines failing, the research moved to signals: 443 features scored on 1-second data with a false-discovery correction, a pooled LightGBM model trained walk-forward, templates fitted with Optuna, and per-stock tuning. Each step worked as engineering and failed as trading, for the same reason: the predicted move was smaller than the cost of trading it.

  • Model

    Signal size against the spread

    The LightGBM model’s out-of-sample rank correlation with the next 60 seconds was +0.110, positive on all 148 test sessions. Its best tenth of predictions earned 3.9 bps, against a 21 bps spread.

  • Fitting

    Template fitting and spread caps

    Optuna-fitted templates cut losses from 24 – 63 bps to 10 – 20 bps a trade. 16 of 20 fits chose a spread cap of 5 or 10 bps: the gain was trading less, not timing better.

  • Per-stock tuning

    Per-ticker against pooled fit

    Per-ticker adjustments tied or lost against the pooled fit. The apparent in-sample gain came from choosing among 10 to 30 trades, which is noise.

  • Passive orders

    Limit orders resting at the bid

    Limit orders saved 0 to 4 bps of cost and lost about as much in edge. The orders that filled were the ones where the signal had already failed.

Out-of-sample sessions from May 31 to December 29, 2023. The model’s predictive power came from a single feature, the imbalance between bid and ask size. One family of features, distance from a fixed price level, scored well only because of a statistical artefact: a shuffled-path test showed 74 to 84% of its apparent signal was not real.

05 · Alternative paths

Alternative strategy paths

Instead of further tuning, I wrote down five alternatives and a pass mark for each. A candidate had to be profitable out of sample at doubled costs, beat its random-entry null, and clear a deflated Sharpe test, which asks whether the result is better than the best of that many random tries.

All results are backtests. bps = basis points per trade. “Doubled costs” means the modelled spread, slippage and fees, all multiplied by two.
PathTestResultVerdict
Longer intraday holds, 5 to 30 minutesMoves grow to 4 – 5 spreads by 15 minutesBest rule −13.8 bps a trade at doubled costs; the model’s signal faded with the horizonFailed
More liquid stocksExpected a 2 – 5 bps spreadMeasured 8.6 bps (16.5 at the open), so the cost gate failed before any strategy ranFailed
Overnight hold after a 7 – 10% up day626 trades, 2020 – 2023+131.6 bps a trade at doubled costs, but the median trade lost 11 bps and ten trades made 54% of the profitFailed the deflated Sharpe test
The same overnight rule, frozen, run once on 2024Pass mark set in advance: t-statistic of 1.0t-statistic 0.97 on 159 trades; one trade made 70% of the year’s profitNot validated
Weekly 12-month momentum, registered in advance4,114 trades, 2020 – 2023+130.3 bps at doubled costs, but random entries earned +64.6 and 2020 supplied 89% of the profitFailed the deflated Sharpe test

Daily strategies positive at doubled costs

Two daily strategies stayed positive at doubled costs. Neither held up on inspection. The overnight rule’s profit was a few extreme moves in 2020 and 2021, with a losing median trade. The momentum rule made nearly all of its money in one year, and random entries over the same period made about half as much from the market rising.

Line chart of cumulative backtest profit for the overnight setup at $1,000 a trade from 2020 to 2024, rising in steps to about $11,500, against a matched random null that stays near or below zero. A dashed line separates the 2020 to 2023 test years from the single 2024 run.
Overnight hold after a large up day, against random entries on the same evenings. The steps are a few extreme trades; right of the dashed line is the single 2024 run
Line chart of cumulative backtest profit for weekly momentum trades from 2020 to 2023, rising sharply in 2020, giving much of it back in 2021 and 2022, and ending near $53,000, with a matched random null ending near $24,000.
Weekly momentum against its random-entry null. Almost all of the gain is 2020, and the null rises with it

Conclusion. Scalping volatile stocks at retail trading costs has no edge in this data, and the evidence is consistent across every approach tried. The two daily results are, at best, a rare-event effect and the well-known momentum premium, neither established over a period this short. Nothing was built to trade them.

Verification

Evaluation toolkit

  • Nulls

    Matched random-entry nulls

    Every strategy was compared with random trades on the same stocks, days and holding times. They showed three times that an apparent edge was day selection or market drift.

  • Counting

    Automatic configuration logging

    Every configuration is logged automatically: a test fails if a research job does not record its trials. The count, 9,613, came from the log and not from memory, which made the deflated Sharpe correction unavoidable.

  • Gates

    Pass marks fixed in advance

    Each stage had its “done when” line and its pass bar fixed in advance. The 2024 validation missed its bar by 0.03 and was recorded as a failure.

  • Hold-out

    Locked hold-out year

    The data loaders refuse to read 2025 onward and keep an audit log. The locked year was never opened, and no result on this page uses it.

  • Look-ahead

    Look-ahead leak tests

    Truncation and shuffle tests confirm no feature uses future data, and a strategy that deliberately uses future data confirms the tests detect one that does.

  • Costs

    Doubled-cost stress test

    Every result was computed at doubled costs. Costs are half the spread plus slippage on each side and regulatory fees on sells. A candidate had to stay positive with all of that doubled.

Sequence

Project sequence

  1. Stage 1

    Repository, settings and logging. Daily data export and the eligible universe.

  2. Stage 2

    Screener and persistence study. First gate passed: volatility persists.

  3. Stage 3

    1-second bars, cost model, simulator, five baselines and their nulls.

  4. Stage 4

    Full-market quotes rebuilt from 15 feeds. Second gate: every baseline loses. Features, scoring and the model.

  5. Stage 5

    Scalping paused. Longer holds tested and failed. Daily setups begin.

  6. Stage 6

    Liquid universe, 2024 validation and momentum all fail. Research stops with nothing to trade.

The plan had 79 tasks. Every figure is a backtest. Past performance does not predict future results. Nothing here is investment advice.