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.

Record the two decisions separately
| Date | Close / prior high (USD) | Volume / prior-five median | Result |
|---|---|---|---|
| Nov. 4 | $349.51 / $334.50 | 1.42× | Price only |
| Nov. 20 | $342.56 / $355.28 | 2.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

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