US stock historical data API: Does a volume-confirmed breakout hold across trading days?

TickDB Research ·

US stock historical data API: Does a volume-confirmed breakout hold across trading days?

A volume-confirmed breakout has two conditions: price and volume. We checked 16 AAPL trading dates using TickDB historical bars. Three passed the price check alone and two passed the volume check alone. None passed both. Use the same check on your own bars to see which condition each date failed.

On November 4, Apple closed at $349.51, or $15.01 above the previous session's high. The daily volume field showed about 89.64 million. The breakout still did not qualify under our rule. The median over the previous five sessions was about 63.16 million, so the day's volume was 1.42 times the baseline, below the 1.5 threshold.

November 20 gave the opposite result. Volume was 2.02 times its five-session median, and the close was below the previous day's high. Each date passed a different check.

Define both checks before looking at new dates

The close must be strictly above the previous session's high. Daily volume must be at least 1.5 times the median of the previous five sessions. Keep today's volume out of that baseline. Otherwise a particularly active day changes the level you are using to judge it. We chose 1.5 as an example before pulling the data.

We aligned the unadjusted AAPL bars with 21 regular New York trading sessions from October 26 through November 23, 2026. The first five sessions initialized the baseline. We checked November 2–13 first and set aside November 16–23 for a later comparison under the same rule. The range query omitted November 23. A one-day query recovered that bar.

AAPL passed the price check on November 4 and the volume check on November 20. Neither day passed both

Record the two decisions separately

DateClose / prior high (USD)Volume / prior-five medianResult
Nov. 4$349.51 / $334.501.42×Price only
Nov. 20$342.56 / $355.282.02×Volume only

In the first 10 dates, three passed price only, one passed volume only and six passed neither. In the six later dates, one passed volume only and five passed neither. The rule produced no closing signals across the 16 dates. That result shows why logging both checks matters. A price breakout can occur on volume below the chosen baseline. High volume can occur with the close below the price line.

If both conditions pass in a future test, keep the original threshold and check the next session's open against it. This sample contains no signal that reached that step. It did not test orders, fills or returns. A short window for one stock can show how the rule handles these inputs. It cannot establish how the rule performs on other stocks or dates.

Run the comparison on your own bars

Fetch daily bars through TickDB using a consistent instrument and adjustment setting. We used adjust=none. Take the prior high, current close and volume from the same daily series. Reconcile the dates against the trading calendar before building the rolling baseline. Keep volume on the daily field's basis when comparing dates. TickDB US Stock Market Data API

from decimal import Decimal as D
from statistics import median

def check_breakout(sessions, bars):
    results = []
    for i in range(5, len(sessions)):
        day = sessions[i]
        window = sessions[i - 5:i + 1]
        if any(d not in bars for d in window):
            results.append((day, None, None, None))
            continue
        line = D(bars[sessions[i - 1]]["high"])
        baseline = median(D(bars[d]["volume"]) for d in window[:-1])
        price_ok = D(bars[day]["close"]) > line
        volume_ok = D(bars[day]["volume"]) >= D("1.5") * baseline
        next_ok = None
        if price_ok and volume_ok and i + 1 < len(sessions):
            next_bar = bars.get(sessions[i + 1])
            if next_bar is not None:
                next_ok = D(next_bar["open"]) > line
        results.append((day, price_ok, volume_ok, next_ok))
    return results

Pass the ordered trading dates as sessions. Key bars by date and include high, close, volume and open. Each result contains the date, the price check, the volume check and the next-open check. The last field stays empty if the close produced no signal. When the current bar or any of the prior five bars is missing, fill the data gap before classifying the signal.

FAQ

Should I lower the threshold when neither period produces a signal? Use the reader's original screening task to decide what counts as unusually high volume. If you want to compare thresholds, write down the alternative and reserve another window for the comparison. Treat these dates as research input, especially if you chose the new threshold after seeing them.

References

  • TickDB Docs, Kline API, interval, adjustment and response fields.
  • TickDB AAPL.US unadjusted daily bars and US trading calendar, October 26 to November 23, 2026. See the archived responses and session-by-session calculations in the evidence pack.

This week's offer

Original TickDB Black Friday banner

TickDB Black Friday Subscription Week runs November 23–29, 2026, ending at 11:59 p.m. Beijing time. Save 15% on semiannual billing and get half a month extra, or save 20% on annual billing and get one month extra. The offer applies to new paid subscriptions and renewals. The extra time is added automatically after payment.

7 markets · 42,688 symbols

US stocks
14,386
Hong Kong market
3,354
China stocks, ETFs & bonds
7,576
Forex & metals
1,228
Indices
13,960
Futures
1,172
Crypto
1,012
11/25/2026

Related articles

A-share market data API: Why a 300-stock report still needs a trading-date check

An after-close job can receive all 300 quotes and still contain a quote from the wrong day. In a local replay of a real CSI 300 sample, complete input updated the date in the reader file to November 20. Removing a row or changing one quote to an older date left the file on November 19. The file contained the date and row count only.

TickDB Research ·

US stock kline API: How to check batch downloads for missing and duplicate bars

How do you verify coverage after downloading US daily bars in batches? A complete AAPL response contained 15 bars. The same window with limit=2 returned the final two. Splitting the 15 bars offline produced either an extra row or a missing date at the boundary. Here is how to distinguish those cases and check your downloaded batches against a trading calendar.

TickDB Research ·

Financial data in a backtest: When can you use earnings reported after the close?

If your stock screen runs at 4 p.m. New York time, when can it use Apple's latest quarterly net income? Using EDGAR acceptance as a proxy, the July 31 screen cannot use the figure, while the August 1 screen can. We verify the amount against TickDB's response and the SEC exhibit, then show a cutoff check you can run on your own records.

TickDB Research ·

US stock minute data API: Where to look first in a post-session watchlist review

Two watchlist entries gained about 1% from the open to the final one-minute close. Which part of the session should you review first? In two archived TickDB samples, AAPL ended 0.20% below its intraday high and NVDA ended 0.82% below its high. Record the minute containing the high alongside those two percentages to find where to start.

TickDB Research ·