In simple terms
We buy Bitcoin after a completed H4 close crosses above the upper Keltner band and ADX14 is at least 25. The next scheduled opening is the entry reference. We use a fixed ATR14 stop, a close at or below EMA20 to schedule an exit, and a maximum holding time. This is a hypothetical cash-funded spot account.
On this page
A channel breakout and one clearly isolated question
Does requiring trend strength improve a Keltner breakout after costs? We fixed one mechanical variant before its first calculation: EMA20, channel ATR10 with multiplier two, and ADX14 at or above 25. The control removes only that ADX threshold. We did not search combinations or change the rules after seeing this result. The source history was already familiar from previous research; these historical periods are retrospective checks, not an unseen prospective test.
Original archives, source clocks and retained gaps
We verify 79 retained Binance BTCUSDT H4 ZIPs and their checksum files, spanning June 2019 through December 2025. They contain 14,434 unique observations, 2 missing scheduled intervals and 11 noncanonical source-close rows. Millisecond and microsecond timestamps are normalized to integer UTC seconds; a canonical source close equals its opening plus four hours minus one source timestamp unit. Missing or noncanonical intervals reset every indicator. We retain the raw observations and never invent candles; these are pinned earlier source bytes, not a new download.
The modern Keltner band is not a Bollinger band
The basis is EMA20 of closing prices; upper and lower bands are that basis plus and minus 2×Wilder ATR10. The EMA starts with the mean of the first 20 canonical closes and then uses weight 2/21. ATR10 starts with the mean of the first ten true ranges and then uses weight 1/10. The first range in a new segment is high minus low; later ranges also include the previous close. Keltner uses range-based volatility, not the standard deviation of closes. The lower band is shown for context; it is not a separate entry or exit rule in this long-only variant.
EMA20_t = EMA20_prev + (C_t − EMA20_prev) × 2 / 21
U_t = EMA20_t + 2 × ATR10_t; LB_t = EMA20_t − 2 × ATR10_t
Symbols: H/L/C are the observed high, low and close; O is the next scheduled raw opening; prev means the preceding canonical bar. U/LB are the upper/lower Keltner bands; TR is true range; DM is directional movement; smooth_TR and smooth_DM are the stated Wilder sums. DI_plus/DI_minus are the directional components and DX their normalized absolute difference; ATR10 and ATR14 are the separately seeded Wilder ranges. E and X are modeled fills, distinct from chart references; X_ref is the raw exit reference and O_next_observed the first observed opening when an exit is due. The fractions f and s are per-side fee and slippage. B is pre-entry cash in USDT, B_free is free cash after any funded purchase, q is BTC quantity, SL the fixed stop and L_unit the planned loss in USDT per BTC. P_net is realized net profit in USDT, R_net is net R, and V is liquidation equity.
ADX measures strength, not a bullish direction
For each transition, upward movement is the change in highs and downward movement is the opposite change in lows. Only the larger positive movement contributes to its directional component; a tie sets both to zero. Wilder sums begin with transitions 1 through 14, giving the first directional readings at zero-based index 14. If the smoothed true-range sum is zero, both DI components are zero. DX compares the absolute difference of the two DI components with their sum; if that DI sum is zero, DX is zero. The first ADX is the mean of 14 DX readings at indices 14 through 27, then uses weight 1/14. ADX alone has no bullish or bearish sign. We do not add a DI-direction or rising-ADX condition.
DI_plus = 100 × smooth_DM_plus / smooth_TR
DI_minus = 100 × smooth_DM_minus / smooth_TR
DX = 100 × |DI_plus − DI_minus| / (DI_plus + DI_minus)
ADX14_t = (13 × ADX14_prev + DX_t) / 14
Shared warm-up and a completed upper-band crossing
Both accounts require 200 consecutive canonical observations and a positive, defined protective ATR14. That fixed initialization buffer is distinct from the first available ADX at index 27; it was not selected from performance. At adjacent completed H4 closes, require the previous close at or below its own previous upper band and the current close strictly above its own current upper band. Equality is included only on the previous side. The primary account additionally requires current ADX14≥25; the control keeps the same data gate but omits this threshold. Bands include only information available at their respective completed closes.
C_prev ≤ U_prev; C_t > U_t; ADX14_t ≥ 25
Next opening, cash and one fixed protective stop
When flat, queue the immediately next scheduled H4 opening. Cancel a missing opening or an entry outside the account period; a later observation does not rescue it. Entry fill E is the raw opening plus modeled adverse percentage slippage. Fix SL=E−2×ATR14 from the completed signal, using a separate ATR14 rather than the channel ATR10. Reject unless 0<SL<the raw entry opening, and cash and quantity are positive. Later close-time metadata cannot censor an already observed opening. There is one position, no leverage, no adding, no target and no trailing stop.
E = O × (1+s); SL = E − 2 × ATR14_signal
Basis exits, missing openings and explicit priorities
A canonical completed close at or below a defined EMA20 schedules an exit at the next opening; a fresh crossing is unnecessary. This exit does not require the entry-only 200-observation gate, ADX threshold or positive ATR after a reset. An already queued exit survives missing observations and later indicator resets. At an observed opening, a gap through the fixed stop has priority, followed by a queued basis exit, then an overdue time limit. Only afterward can the current H4 low touch the stop. A surviving position closes at its 30th scheduled H4 close or the account period end, whichever comes first; the intrabar stop precedes a same-close time exit.
C_t ≤ EMA20_t → X_ref = O_next_observed
Nominal one-percent sizing and exact cash accounting
Every account starts with 10,000 USDT. We size the planned stop loss, including entry and stop-exit fees and slippage, to at most 1% of cash, then cap quantity by the fully funded purchase cost. This cap does not reduce the quantity of any primary full-period entry; that observation does not remove its rule. Buy cost and fee leave cash immediately; net sale proceeds return at exit. Fractional quantities are allowed, and historical exchange lot or minimum-notional filters are not reconstructed. Net R is realized net profit divided by the entry's planned monetary loss. Gaps can exceed this nominal budget.
L_unit = E(1+f) − SL(1−s)(1−f)
q = min[0.01 × B / L_unit, B / (E(1+f))]
R_net = P_net / (q × L_unit)
Percentage costs require complete account reruns
Baseline assumptions are 0.10% fee and 0.05% adverse slippage on each side. Higher costs use 0.20% and 0.10%; zero costs remove both. Each scenario recalculates fills, fixed stops, quantities and later cash. The full-period results are +35.75% without costs, +16.98% with baseline costs and +5.67% with higher costs. The zero-cost account has 88 trades versus 89 in the baseline account, so this is not a fee subtraction from unchanged trades. These fixed assumptions are not current exchange quotes; spread, order-book impact and liquidity are not separately reconstructed.
X = X_ref × (1−s)
P_net = q × [X(1−f) − E(1+f)]
The fixed cost scenarios
| Account or scenario | Net return % | Fees · USDT | Entry slippage · USDT | Exit slippage · USDT | Traded notional / initial cash |
|---|---|---|---|---|---|
| Keltner + ADX · zero costs | +35.75 | 0.00 | 0.00 | 0.00 | 76.60 |
| Keltner + ADX14≥25 | +16.98 | 652.88 | 162.55 | 163.89 | 65.29 |
| Keltner + ADX · higher costs | +5.67 | 1,134.74 | 282.55 | 284.82 | 56.74 |
A positive total with a losing early account
The continuous primary account returns +16.98% across 89 trades, with profit factor 1.31 and 10.14% maximum sampled drawdown. Its observed-interval position share is 10.06%. Independently restarted 2020–2022 and 2023–2025 accounts return −2.68% and +20.21%. These are cumulative period returns, not annual yields. Fully invested buy-and-hold returns +1,114.49% with 77.04% sampled drawdown over the full period; its much larger market exposure prevents an equal-risk interpretation.
Continuous accounts after baseline costs
The ADX gate underperforms this particular control
With only the ADX threshold removed, the full account returns +54.06% with 8.23% sampled drawdown. In the separately restarted later period it returns +40.31%, versus +20.21% with ADX; later sampled drawdown is 8.23% without ADX and 10.14% with it. The threshold reduces trades and time in positions, but in these comparisons it also reduces return and does not reduce maximum sampled drawdown. This result does not prove that every ADX rule fails. It does not establish a benefit for this fixed gate on this history either.
| Account or scenario | Net return % | H4-close drawdown % | Trades | Profit factor | Observed intervals with position % |
|---|---|---|---|---|---|
| Keltner + ADX14≥25 · Continuous 2020–2025 | +16.98 | 10.14 | 89 | 1.31 | 10.06 |
| Keltner without ADX gate · Continuous 2020–2025 | +54.06 | 8.23 | 142 | 1.58 | 17.36 |
| Keltner + ADX14≥25 · Independent 2020–2022 | −2.68 | 7.61 | 33 | 0.86 | 7.04 |
| Keltner without ADX gate · Independent 2020–2022 | +9.80 | 6.34 | 58 | 1.31 | 13.98 |
| Keltner + ADX14≥25 · Independent 2023–2025 | +20.21 | 10.14 | 56 | 1.55 | 13.08 |
| Keltner without ADX gate · Independent 2023–2025 | +40.31 | 8.23 | 84 | 1.72 | 20.74 |
| Buy and hold · base costs · Continuous 2020–2025 | +1,114.49 | 77.04 | — | — | 100.00 |
Quality flags remain relevant even when counts are zero
In the primary full-period account, 0 trades cross missing H4 intervals and 0 touch noncanonical rows; 0 basis exits are delayed and 0 time or period liquidations use a noncanonical close proxy. The control has 2 trades touching noncanonical rows. Zero primary flags do not mean the source has no defects or prove actual execution. A position keeps its stop across gaps. An exclusion using original quantities is only a post-event ledger diagnostic, not a live avoidance filter or a recalculated account return.
| Account or scenario | Trades |
|---|---|
| Trades crossing missing H4 intervals | 0 |
| Trades touching noncanonical rows | 0 |
| Delayed basis exits | 0 |
| Noncanonical-close liquidation proxies | 0 |
Chronological examples and real elapsed UTC time
The first completed early primary trade enters at 2020-01-07 00:00 UTC and records +0.404 net R. The first completed later primary trade enters at 2023-01-09 00:00 UTC and records +12.573 net R. They are selected chronologically, not because they look typical. Charts show observed OHLC, all three Keltner lines, ADX and the fixed stop; horizontal distances reflect real elapsed UTC time. S marks the completed signal candle, E the raw opening reference and X the raw exit-reference interval or declared close. Modeled fills include slippage separately. ADX's threshold line indicates strength eligibility, not a guaranteed trade.
First completed early primary trade
Select a candle using the chart, slider or arrow keys. Prices use two decimals and ADX three; rounded values never determine decisions. Opening and signal availability are separate.
- Opening · UTC
- 2020-01-04 04:00 UTC
- Available · UTC
- 2020-01-04 08:00 UTC
- Open
- 7,333.14
- High
- 7,369.28
- Low
- 7,312.65
- Close
- 7,348.11
- EMA20 · USDT per BTC
- 7,234.42
- Channel ATR10 · USDT per BTC
- 104.03
- Upper band · USDT per BTC
- 7,442.48
- Lower band · USDT per BTC
- 7,026.36
- ADX14 · strength, 0–100
- 20.081
- Protective ATR14 · USDT per BTC
- 99.97
- SL · fixed protective stop
- 7,545.32
| Opening · UTC | Entry fill after slippage | Exit fill after slippage | Net R |
|---|---|---|---|
| 2020-01-07 00:00 UTC | 7,762.78 | 7,874.08 | +0.404 |
First completed later primary trade
Select a candle using the chart, slider or arrow keys. Prices use two decimals and ADX three; rounded values never determine decisions. Opening and signal availability are separate.
- Opening · UTC
- 2023-01-06 04:00 UTC
- Available · UTC
- 2023-01-06 08:00 UTC
- Open
- 16,833.56
- High
- 16,837.87
- Low
- 16,779.96
- Close
- 16,794.06
- EMA20 · USDT per BTC
- 16,792.72
- Channel ATR10 · USDT per BTC
- 85.80
- Upper band · USDT per BTC
- 16,964.32
- Lower band · USDT per BTC
- 16,621.11
- ADX14 · strength, 0–100
- 27.517
- Protective ATR14 · USDT per BTC
- 88.13
- SL · fixed protective stop
- 16,960.52
| Opening · UTC | Entry fill after slippage | Exit fill after slippage | Net R |
|---|---|---|---|
| 2023-01-09 00:00 UTC | 17,136.39 | 19,920.04 | +12.573 |
The first opposite-sign example is intentionally conditional
The third example is the first later primary trade with a strictly opposite nonzero net-profit sign to the first later trade. It enters at 2023-01-16 20:00 UTC and records −1.000 net R. Zero is neither sign. This outcome-conditioned selection explains the mechanism and is not representative evidence. All examples already belong to the account totals. An intrabar stop identifies only its H4 interval, not an exact tick timestamp or demonstrated execution; an opening or scheduled-close event uses its stated model time.
First later primary trade with the opposite net result
Select a candle using the chart, slider or arrow keys. Prices use two decimals and ADX three; rounded values never determine decisions. Opening and signal availability are separate.
- Opening · UTC
- 2023-01-14 00:00 UTC
- Available · UTC
- 2023-01-14 04:00 UTC
- Open
- 19,930.01
- High
- 21,258.00
- Low
- 19,888.05
- Close
- 20,967.23
- EMA20 · USDT per BTC
- 18,717.39
- Channel ATR10 · USDT per BTC
- 438.41
- Upper band · USDT per BTC
- 19,594.21
- Lower band · USDT per BTC
- 17,840.56
- ADX14 · strength, 0–100
- 61.910
- Protective ATR14 · USDT per BTC
- 371.11
- SL · fixed protective stop
- 20,549.19
| Opening · UTC | Entry fill after slippage | Exit fill after slippage | Net R |
|---|---|---|---|
| 2023-01-16 20:00 UTC | 21,317.94 | 20,538.91 | −1.000 |
Restarted accounts, yearly returns and sampled exposure
Each account window includes its start and excludes its end. Cash and positions restart, while the same valid pre-period indicator history is retained. A signal completed exactly at the start boundary may enter the newly flat account at that opening; no order is carried from another account. Annual returns compare consecutive year-end liquidation equities and compound rather than add. H4-close equity values deduct modeled exit fee and slippage for open holdings. Position share counts observed intervals with holding duration after opening decisions, so a position closed exactly at a new opening does not occupy that interval; it is not exact wall-clock exposure or continuous maximum risk.
V = B_free + q × C_t × (1−s)(1−f)
Year-by-year results of the continuous accounts
| Year | Keltner + ADX14≥25 | Keltner without ADX gate |
|---|---|---|
| 2020 | −1.03 | +12.21 |
| 2021 | +0.79 | −0.09 |
| 2022 | −2.44 | −2.05 |
| 2023 | +26.71 | +29.52 |
| 2024 | −5.52 | +8.11 |
| 2025 | +0.41 | +0.20 |
Reproduce the fixed variant and keep its limits
Downloads contain the frozen protocol with selected source hashes, all H4 indicators, every account ledger and standalone Python replay and independent-checker files. The replay uses Decimal40 and the separate reconstruction Decimal50; no display rounding or sign tolerance determines a trade. Realized per-unit net profit is evaluated before multiplication by quantity, preserving mathematically zero trades without a classification epsilon. Obtain the 79 selected original ZIPs and matching checksums. One venue, a USDT quote, fixed cost assumptions and hypothetical fractional fills limit inference. The historical gain and positive stress result do not demonstrate future profitability or a benefit from ADX.
Run the replay and independent checker with the frozen protocol and 79 selected original ZIPs plus matching checksum files. Both scripts use Python's standard library and require no repository modules.
python3 btc-keltner-replay.py --protocol btc-keltner-protocol.json --raw-dir raw4h --output replay.json python3 btc-keltner-independent-check.py --protocol btc-keltner-protocol.json --evidence btc-keltner-evidence.json --raw-dir raw4h
Frequently asked questions
Was the Keltner-plus-ADX account profitable in this historical model?
The full account returns +16.98% after baseline costs and +5.67% under higher costs, but its independently restarted early account returns −2.68%. The no-ADX control earns more over the full and later periods. These are retrospective hypothetical outcomes, not promised live returns.
Does a high ADX mean that Bitcoin must rise?
No. ADX measures trend strength without direction. A falling market can also have a high ADX. In this study the completed upper-band crossing determines the long direction; ADX≥25 is only the additional entry gate.
Why are ATR10 and ATR14 both present?
ATR10 sets the width of the Keltner channel. A separately calculated ATR14 fixes the protective stop at entry. They have different periods and jobs; neither is a trailing stop in this variant.
Does the control remove the shared warm-up?
No. Both accounts wait for 200 consecutive canonical observations and compute the same indicators. The control removes only ADX≥25 at entry. Giving it a shorter warm-up would change the data gate as well as the filter.
How precise are the signal, entry and stop times?
Candle labels are UTC H4 openings; signals become available at the scheduled close four hours later. E is the exact observed opening reference in the model, while a stop inside a candle identifies only an H4 interval. Opening and scheduled-close exits use their declared model times. Slippage-adjusted fills remain distinct from chart references.
Does one-percent planned risk guarantee a one-percent maximum loss?
No. Sizing uses the fixed modeled stop including the scenario's nominal fees and slippage. Gaps, missing paths, liquidity and actual order execution can change the loss. H4-close drawdown is sampled and cannot measure every adverse move inside a candle.
Primary sources
Copying or republication without attribution and an active link to the original material is prohibited. Usage policy.
Scope and research limitations
A positive cumulative historical result and a positive higher-cost scenario do not establish live execution or future profit. The fixed ADX gate underperforms its stated control on this history; the early account's return is negative. Known data, source defects, hypothetical costs and sampled drawdown remain explicit limits.