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
- 15Exchange quote feeds consolidated into one full-market best bid and offer
- 36,288Simulated scalp trades in the baseline test, second by second
- 9,613Strategy configurations tried, every one counted automatically
- 0 of 5Research paths that passed criteria written down in advance
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.
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.
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.
- 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
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
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.
- 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 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.
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.
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.
| Path | Test | Result | Verdict |
|---|---|---|---|
| Longer intraday holds, 5 to 30 minutes | Moves grow to 4 – 5 spreads by 15 minutes | Best rule −13.8 bps a trade at doubled costs; the model’s signal faded with the horizon | Failed |
| More liquid stocks | Expected a 2 – 5 bps spread | Measured 8.6 bps (16.5 at the open), so the cost gate failed before any strategy ran | Failed |
| Overnight hold after a 7 – 10% up day | 626 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 profit | Failed the deflated Sharpe test |
| The same overnight rule, frozen, run once on 2024 | Pass mark set in advance: t-statistic of 1.0 | t-statistic 0.97 on 159 trades; one trade made 70% of the year’s profit | Not validated |
| Weekly 12-month momentum, registered in advance | 4,114 trades, 2020 – 2023 | +130.3 bps at doubled costs, but random entries earned +64.6 and 2020 supplied 89% of the profit | Failed 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.
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.
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.
Project sequence
- Stage 1
Repository, settings and logging. Daily data export and the eligible universe.
- Stage 2
Screener and persistence study. First gate passed: volatility persists.
- Stage 3
1-second bars, cost model, simulator, five baselines and their nulls.
- Stage 4
Full-market quotes rebuilt from 15 feeds. Second gate: every baseline loses. Features, scoring and the model.
- Stage 5
Scalping paused. Longer holds tested and failed. Daily setups begin.
- 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.