Methodology
What the numbers mean
BILLIONS measures how unusual a stock's recent move is, then tests whether its past returns show any edge. It describes data. It doesn't tell you what to do.
How outliers are found
The scan starts from every common stock listed on NASDAQ, about 4,000 names. It keeps stocks that trade at least a set dollar amount a day (the median of the last 20 sessions) and cost at least $3. Then it keeps the 1,000 most traded.
Each strategy compares two windows, counted in trading days:
- Scalp
- 1 week (5 days) and 1 month (21 days). Liquidity floor $25M a day.
- Swing
- 1 month (21 days) and 3 months (63 days). Liquidity floor $15M a day.
- Long-term
- 6 months (126 days) and 1 year (252 days). Liquidity floor $50M a day.
For each window, every stock's return is turned into a z-score: how many standard deviations it sits from the average stock. A stock is an outlier when either z-score is above 2 or below −2.
The score is the distance from the center of the group on both windows together: √(z₁² + z₂²). A higher score means a more unusual move. Direction is up or down from the window that crossed the line, or mixed when the two windows disagree.
The scan runs every 30 minutes while the market is open and once after the close. The page checks for new data every 5 minutes.
How a stock is analyzed
The analysis uses about two years of daily closing prices. Returns are log returns, ln(today ÷ yesterday). They add up over time and treat up and down moves the same way.
- Expected value (EV)
- The average result of following the sign of a forecast for one day: the win rate times the average win, minus the loss rate times the average loss. Positive EV is the minimum for any edge.
- Sharpe ratio
- Average daily return divided by its standard deviation, scaled to a year (× √252). It measures return per unit of risk.
- Regime (AR(1))
- A one-line model, next return = w × today's return + b. If w is below zero, moves tend to reverse (mean reversion). If w is above zero, moves tend to continue (momentum).
- Models
- Four forecasts of the next day's return: the AR(1) line, a small decision-tree model (XGBoost, depth 3) on weekday and recent-direction features, an online model that updates one day at a time (Passive-Aggressive), and a stacked model that blends the others with non-negative weights.
- Signal strength
- The stacked forecast for the next day, divided by one tenth of the stock's typical daily move, then passed through tanh. It runs from −1 to +1. A forecast worth a tenth of a normal day's move scores 0.76. Below 0.15 either way counts as neutral.
- Cost check
- Every trade pays a round-trip cost (spread plus fees). The page compares the average size of the stacked forecast, per day, with an assumed cost of 10 basis points (0.10%). You can change the cost. If the forecast move is smaller than the cost, any edge is used up by trading costs.
No look-ahead. Every feature for day t uses data up to day t−1 only. Rolling averages are shifted by one day before they are computed. A unit test checks this.
How the models are checked
- Time-ordered split. The oldest 75% of days train the models. The newest 25% test them. The days are never shuffled.
- Walk-forward. The models are re-fit many times, once with a growing (expanding) window and once with a fixed-length (rolling) window. Each fit is tested only on the days that come after it.
- Random baseline. The model's test return is compared with 1,000 strategies that pick up or down at random. If the model doesn't beat most of them, the page says there is no edge.
- Out-of-sample first. Headline numbers come from the test days only. Anything measured on the training days is labeled in-sample.
How the Quant page works
- Any interval. The same models run on 1-minute, 1-hour, 4-hour or daily bars. Intraday bars use the time of the session in place of the weekday. The 1-minute strategy holds nothing overnight.
- Sizing. Position = tanh(forecast ÷ (0.1 × a typical bar's move)), a share of your maximum from −1 (fully short) to +1 (fully long). Each change in position pays half a round-trip cost.
- Checks. The action is flat unless the model beats 95% of random strategies, holds up in walk-forward, makes money after costs, still makes money when you act one bar late, has at least 100 scored live signals that aren't failing, and has a clear lean.
- Timing. The backtest scores each signal from the close of the bar it was made on. No one can trade at that price, so a second check acts on every signal one bar late, after costs. Both must make money.
- Is it working? Every signal is saved when its bar closes and scored when the next bar closes. The live hit rate is compared with the range the backtest predicts for that many signals. Below that range, the page says “Not working”. Before 100 scored signals it says it's too early to tell, and the action stays flat. With 20 signals, luck alone can land anywhere from about 28% to 72% right. With 100, it stays within about 40% to 60%.
How lead-lag is measured
Lead-lag asks whether one stock or ETF tends to move first and another follows. It uses minute bars from Polygon or Alpaca, over the last 60 trading days by default. Each day is handled on its own, so no result crosses the overnight gap.
- Leader and lag
- We compare the leader's return in each minute with the follower's return 1, 2, 3, or more minutes later (cross-correlation). The lag is where that match is strongest, if it clears the noise level. A lag of one bar can also come from stale prices on a thin feed, so we treat it as a warning, not proof.
- Lead strength
- The average correlation when the leader comes first, minus the average when the follower comes first. Above zero means the leader's moves tend to come first.
- Direction hit rate
- An event is each time the leader moves at least the threshold (0.3% by default) within the lookback. A hit is when the follower moves the same way by the end of the max wait. Events never overlap. It counts direction from the bar the leader moved, before any cost, so it isn't profit.
- In sample and out of sample
- Which ticker leads is decided on the oldest 70% of days. The newest 30% then test it. If the other ticker leads on the newest days, the direction flipped, and the pair can't be trusted.
- P-value and correction
- The p-value is the chance that coin flips would match at least this many directions on the newest days. A scan tests about 45 pairs, so a few look significant by luck. We correct across every pair in the same run with the Benjamini-Hochberg method at q = 0.10. Among the pairs that pass, about 1 in 10 or fewer is expected to be luck.
- Net per trade, one bar late
- We replay the paper bot's own rules on the bars. We skip the event if the follower already moved 0.1%. We enter one bar after the signal, because you can't trade on the bar the research saw. We exit at a 0.3% take profit, a 0.2% stop loss, or the max wait. Then we subtract the round-trip cost: the live IEX spread when we have quotes, else 0.10%. The 95% interval is the range the true average per trade most likely sits in.
- Verdict
- Every pair gets one of three verdicts. Too early to tell means fewer than 30 events, or fewer than 30 paper trades on the newest days. Not significant after costs means at least one check failed: the direction flipped, the lag is one bar or missing, the 95% interval includes zero, or the pair doesn't pass the correction. Paper test only means every check passed. Only then does the guide link to the Bot page, and only for paper trades. A pair you analyze on its own isn't part of a scan run, so it can't be corrected and never gets Paper test only. The verdict replaces the older Strong and Moderate labels, which didn't count costs, the entry delay, or the many pairs tested.
A take profit counts at exactly the target. A stop counts at the minute close where it was crossed, which can be worse than the stop, as a real exit can be. We check trades at minute closes, while the bot watches every trade, so its fills can differ in both directions.
How slow bad news is tested
The idea: people don't like to believe bad news, so they underreact when it arrives a little at a time. A stock that falls on many small down days may keep falling behind, while one that drops on a few big days gets noticed and priced faster. This follows a published finding called “frog in the pan” (Da, Gurun, and Warachka, 2014).
We test it on 10 years of free daily closes from Yahoo for every stock listed on NASDAQ today, against SPY. The rules were set before we looked at the data, and the main test is the 3-month slow slide. The run repeats once a week after the close.
- Losers and screens
- On each formation day, we take stocks that cost at least $3, trade a median of at least $15M a day over 20 sessions, and have no gaps in the window. The losers are the bottom 20% by return over the lookback (3 or 6 months), and only those that actually fell.
- Slide score
- For a falling stock, the share of up days minus the share of down days over the lookback. A stock that fell on many small down days scores low. The half of the losers with the lowest score is the slow slide group. The other half is the sudden drop group.
- Timing
- Each group is entered at the close one trading day after the formation day, so nothing uses a price you couldn't have seen. It's held 21 trading days, about one month. Months never overlap, so each one is an independent test. A stock with missing prices keeps its last close.
- Hedged paper-short and costs
- The test shorts the group in equal dollars and buys SPY for the same total, so a market move mostly cancels out. Each month pays 0.10% for the stock's round trip, 0.02% for SPY's, and borrow at 0.5% a year, about 0.16% in all. The avoid-list result is the same gap before any cost: what skipping the group would have saved.
- Older and newest months
- The oldest 70% of the months are a first look. The newest 30% judge. We need at least 20 newest months before we judge at all.
- Honesty checks
- On the newest months, the average after costs must be above zero, and its 95% interval must not include zero. The older months must not have lost money, so the result is steady. The group must do worse than at least 95% of 1,000 random groups of the same size drawn from the same stocks. Last, it must pass after we correct for the 6 versions we tested (2 lookbacks times 3 groups) with the Benjamini-Hochberg method at q = 0.10.
- Verdict
- Too early to tell means fewer than 20 newest months. Not significant after costs means at least one check failed, and the page lists which. Paper test only means every check passed. The page leads with the main test, not with whichever version looks best.
The page offers the list two ways. The default is an avoid list: stocks to skip before you paper-buy. The hedged paper-short is opt-in. Neither links to the Bot page. You place any paper order yourself, and nothing here places a real one.
Limits of the data
- Prices come from Yahoo Finance through an unofficial library. They can be delayed, missing or wrong, and there is no service guarantee.
- Order book data is top of book only: the best bid and ask, from Alpaca's free IEX feed when API keys are set. IEX is one exchange, so its spread is usually wider than the whole market's. Mid-price, spread and imbalance use those best prices only; deeper levels are not shown. Without keys these measures are shown as unavailable rather than estimated.
- The analysis page uses daily bars, so its forecast horizon is one trading day. The Quant page also uses Yahoo's 1-minute bars (last 7 sessions, up to a minute late) and hourly bars (last 2 years).
- Z-scores use the plain mean and standard deviation. A few very large moves widen the spread, which makes smaller moves look less unusual.
- About 125 test days is a small sample. A good-looking result can still be luck. The page warns you when the sample is small or the model doesn't beat random.
- The outlier table is replaced on every scan, so we keep no history of past outliers to test against. The universe is today's NASDAQ listings, so stocks that were delisted are missing (survivorship). For both reasons, we haven't measured whether following or fading an outlier makes money.
- Slow bad news uses today's NASDAQ list for all 10 years, so stocks delisted since then are missing. Some fell further before they left, and some were bought out at a premium, so the bias can go either way. Borrow fees for hard-to-borrow stocks can be far above the 0.5% a year we assume.
- Lead-lag uses minute bars. The free Alpaca feed shows IEX trades only, a small share of all volume, so a price can trail the whole market by a bar or more.
- Past returns don't predict future returns reliably. Nothing here is a recommendation.