In simple terms
We buy Bitcoin after AO crosses above zero on a completed H4 candle and the close is above SMA200. We enter at the next scheduled opening. A fixed ATR stop, an AO exit or a time limit closes the position. This is a hypothetical cash-funded spot study.
On this page
The question and the frozen rules
Does a slow trend filter improve a simple momentum entry after costs? We froze the AO5/34, SMA200 and exit rules before calculating this strategy. The price history was already available and familiar from earlier research. We did not search parameter combinations, and the historical split is not a prospective unseen test.
Original observations and incomplete intervals
We verify 79 official Binance BTCUSDT H4 archives with 14,434 observations, including June 2019 warm-up. They contain 2 missing scheduled candles and 11 rows with nonstandard source-close timestamps. We retain those rows and disclose them. A missing or noncanonical interval resets the indicator history; it never becomes an invented candle.
AO compares midpoint averages, not closing averages
For each candle, midpoint M=(H+L)/2. AO is the five-period simple mean of M minus its 34-period simple mean. Its unit is USDT per BTC, not percent. An increasing histogram can remain below zero; green does not automatically mean a bullish zero-line crossing. We use the values at the scheduled H4 close, without rounding the comparison.
M_t = (H_t + L_t) / 2
AO_t = SMA5(M)_t − SMA34(M)_t
SMA200, ATR14 and the common eligibility gate
SMA200 averages 200 consecutive canonical closes. Wilder ATR14 seeds from the first 14 true ranges of a new segment, then updates with weight 1/14; the segment's first true range is H−L. Both the filtered and unfiltered accounts require the same 200-observation warm-up. Removing the SMA condition therefore changes only the price filter, not data eligibility.
SMA200_t = Σ(C_(t−199), …, C_t) / 200
ATR14_t = (13 × ATR14_(t−1) + TR_t) / 14
The completed-close entry and the next opening
When flat, require previous AO at or below zero, current AO strictly above zero and current close strictly above SMA200. Equality at the previous zero is deliberately included. Buy only at the immediately next scheduled H4 opening plus adverse slippage; cancel if that opening is missing or outside the period. Metadata learned at the entry candle's later close cannot censor its already available opening.
AO_(t−1) ≤ 0 < AO_t; C_t > SMA200_t
E_f = O_(t+1) × (1+s)
E_f: Entry fill after slippage · O_(t+1): Open
One protective stop and a scheduled AO exit
The fixed stop is the modeled entry fill after slippage minus 2×ATR14 from the completed signal candle. There is no profit target or trailing stop. Reject an entry if the stop is nonpositive or not below the raw opening. At an observed opening, check a stop gap first, then any queued AO exit, then an overdue time exit. Only after these opening decisions may the current candle's later low trigger its stop.
SL = E_f − 2 × ATR14_t
E_f: Entry fill after slippage
Holding deadlines, gaps and liquidation prices
A completed valid AO reading at or below zero queues an exit for the next scheduled opening. If that opening is absent, exit at the first observed opening with stop-gap priority. The entry interval counts as one; a surviving position exits at the 30th scheduled close or its account's period end. Intrabar stop checks precede a same-close time exit. A noncanonical close used for liquidation is flagged as a partial-price proxy, not a demonstrated executable fill.
Cash-funded size and what one R means
Each account starts with 10,000 USDT. Planned loss at the nominal stop, including modeled fees and slippage, is limited to 1% of pre-entry cash. Available cash can reduce quantity further. Net R divides realized net profit by that entry's planned monetary loss. Fractional quantities are allowed; historical exchange lot and minimum-notional rules are not reconstructed. An opening gap can exceed the planned loss.
L_unit = E_f(1+f) − SL(1−s)(1−f)
q = min[0.01 × B / L_unit, B / (E_f(1+f))]
R_net = P_net / (q × L_unit)
B: Cash · R_net: Net R · P_net: Net P&L · USDT
Costs are assumptions and complete reruns
Base costs are 0.10% fee and 0.05% adverse slippage on each side. The stress case uses 0.20% and 0.10%; the zero-cost case removes both. These are fixed research assumptions, not current venue quotes. Every scenario rebuilds fills, stops, size and subsequent cash. Changes in returns are not explained by subtracting fees from an otherwise fixed account path.
X_f = X_ref × (1−s)
P_net = q(X_f − E_f) − f × q(E_f + X_f)
X_f: Exit fill after slippage · X_ref: Exit reference · E_f: Entry fill after slippage · P_net: Net P&L · USDT
The predefined cost scenarios
| Account or scenario | Net return % | Fees · USDT | Entry slippage · USDT | Exit slippage · USDT | Traded notional / initial cash |
|---|---|---|---|---|---|
| AO + SMA200 · zero costs | +63.76 | 0.00 | 0.00 | 0.00 | 143.29 |
| AO + SMA200 | +35.20 | 1,167.48 | 290.55 | 293.19 | 116.75 |
| AO + SMA200 · higher costs | +15.65 | 1,962.23 | 488.30 | 492.81 | 98.11 |
Historical return, drawdown and exposure
The continuous filtered account returns +35.20% across 135 trades, with profit factor 1.45, 9.05% maximum sampled drawdown and 17.71% exposure by observed H4 intervals. Independently restarted early and later accounts return +16.53% and +16.02%. Fully invested buy-and-hold returns +1,114.49% over the full period, with 77.04% sampled drawdown and different market exposure.
The continuous accounts after costs
The SMA filter does not win every comparison
The unfiltered full account returns +26.15% with 22.72% sampled drawdown. In 2023–2025, however, its separately restarted account returns +26.41%, above the filtered +16.02%. The filtered later drawdown is 6.82%, versus 11.94% without SMA. Return, drawdown, turnover and exposure must be read together; one favorable full-period result does not establish a durable filter advantage.
| Account or scenario | Net return % | H4-close drawdown % | Trades | Profit factor | Exposure % |
|---|---|---|---|---|---|
| AO + SMA200 · Continuous 2020–2025 | +35.20 | 9.05 | 135 | 1.45 | 17.71 |
| AO without SMA filter · Continuous 2020–2025 | +26.15 | 22.72 | 261 | 1.19 | 32.13 |
| AO + SMA200 · Independent 2020–2022 | +16.53 | 8.49 | 53 | 1.61 | 15.12 |
| AO without SMA filter · Independent 2020–2022 | −0.20 | 20.95 | 110 | 1.00 | 27.67 |
| AO + SMA200 · Independent 2023–2025 | +16.02 | 6.82 | 82 | 1.37 | 20.30 |
| AO without SMA filter · Independent 2023–2025 | +26.41 | 11.94 | 151 | 1.32 | 36.59 |
| Buy and hold · base costs · Continuous 2020–2025 | +1,114.49 | 77.04 | — | — | 100.00 |
What gaps and data-quality flags leave uncertain
Trades crossing missing H4 intervals: 1; Trades exposed to noncanonical rows: 2; Delayed AO exits: 0; Partial-close liquidation proxies: 0. Available openings and ranges cannot reveal the missing price path. The original-quantity exclusion diagnostic is only a ledger sensitivity check, not an executable avoidance rule or a rebuilt account return.
| Account or scenario | Trades |
|---|---|
| Trades crossing missing H4 intervals | 1 |
| Trades exposed to noncanonical rows | 2 |
| Delayed AO exits | 0 |
| Partial-close liquidation proxies | 0 |
The first early and later trades
The first completed early trade enters at 2020-01-04 00:00 UTC and records +2.992 net R. The first completed later trade enters at 2023-01-20 12:00 UTC and records +2.391 net R. These examples are selected chronologically. The H4 panels show real OHLC, SMA200, AO and the fixed stop. S marks the signal candle, E the raw entry reference and X the exit reference interval; modeled fills separately include slippage.
First completed early trade
Select a candle with the chart, slider or arrow keys. Values are historical observations; opening time and signal availability are separate.
- Opening · UTC
- 2019-12-31 12:00 UTC
- Available · UTC
- 2019-12-31 16:00 UTC
- Open
- 7,243.64
- High
- 7,320.00
- Low
- 7,188.88
- Close
- 7,195.96
- AO · USDT per BTC
- −32.32
- SMA200 · USDT per BTC
- 7,271.99
- SL · fixed stop
- 7,136.82
| Opening · UTC | Entry fill after slippage | Exit fill after slippage | Net R |
|---|---|---|---|
| 2020-01-04 00:00 UTC | 7,348.67 | 8,051.95 | +2.992 |
First completed later trade
Select a candle with the chart, slider or arrow keys. Values are historical observations; opening time and signal availability are separate.
- Opening · UTC
- 2023-01-17 00:00 UTC
- Available · UTC
- 2023-01-17 04:00 UTC
- Open
- 21,185.65
- High
- 21,299.04
- Low
- 20,841.31
- Close
- 21,124.57
- AO · USDT per BTC
- 1,219.08
- SMA200 · USDT per BTC
- 17,367.71
- SL · fixed stop
- 20,368.88
| Opening · UTC | Entry fill after slippage | Exit fill after slippage | Net R |
|---|---|---|---|
| 2023-01-20 12:00 UTC | 20,973.82 | 22,587.17 | +2.391 |
An explicitly outcome-conditioned example
The third example is the first later trade with the opposite net-profit sign to the first later trade. It enters at 2023-02-02 00:00 UTC and records −1.000 net R. This selection depends on the outcome and is educational, not representative evidence. All three examples already belong to the account totals. An H4 stop marker identifies an interval, not an exact tick time or an actual fill.
First later trade with the opposite net result
Select a candle with the chart, slider or arrow keys. Values are historical observations; opening time and signal availability are separate.
- Opening · UTC
- 2023-01-29 12:00 UTC
- Available · UTC
- 2023-01-29 16:00 UTC
- Open
- 23,431.39
- High
- 23,666.00
- Low
- 23,350.47
- Close
- 23,525.09
- AO · USDT per BTC
- 274.88
- SMA200 · USDT per BTC
- 19,426.92
- SL · fixed stop
- 23,083.09
| Opening · UTC | Entry fill after slippage | Exit fill after slippage | Net R |
|---|---|---|---|
| 2023-02-02 00:00 UTC | 23,743.28 | 23,071.55 | −1.000 |
Yearly paths and sampled risk
Annual returns compare successive year-end equity values from the continuous account; they compound rather than add. Every H4-close equity point includes estimated selling fee and slippage on an open position. The initial cash is included in the opening peak. This sampled liquidation-value drawdown cannot show the worst movement inside each candle. Trade counts and a positive profit factor are not significance tests.
V_t = B + q × C_t × (1−s)(1−f)
V_t: Liquidation equity · B: Cash · C_t: Close
Year-by-year results of the continuous accounts
| Year | AO + SMA200 | AO without SMA filter |
|---|---|---|
| 2020 | +12.50 | +14.54 |
| 2021 | +6.56 | +2.56 |
| 2022 | −2.79 | −15.05 |
| 2023 | +2.60 | +4.43 |
| 2024 | +16.27 | +18.88 |
| 2025 | −2.75 | +1.83 |
Reproduce the account and interpret its scope
The downloads contain the frozen specification, verified source manifest, full candle evidence, all trade ledgers and standalone replay code. An independent Decimal implementation checks the calculation and account paths. The study covers one venue and a USDT quote asset, with no leverage or cash interest. Hypothetical fills, historical gains and fixed costs do not establish live execution quality or future returns.
Run the replay with the protocol and original monthly ZIPs with their checksum files. The independent checker can also compare the retained observations with those original ZIPs.
python3 btc-ao-replay.py --protocol btc-ao-protocol.json --raw-dir raw4h --output replay.json python3 btc-ao-independent-check.py --protocol btc-ao-protocol.json --evidence btc-ao-evidence.json --raw-dir raw4h
Frequently asked questions
Was this AO strategy profitable in the historical model?
Yes, under the stated assumptions: the filtered full account gains +35.20% and the separately restarted later account gains +16.02%. Higher assumed costs reduce the full result to +15.65%. These are hypothetical historical outcomes, not a promise; the unfiltered later account earns more.
Does a green AO bar mean buy?
No. AO's histogram colour describes whether its value increased or decreased from the previous bar. A green bar can still be negative. This study requires a completed zero-line crossing plus the stated SMA200 filter and eligibility rules.
Why does the no-SMA control still wait for 200 observations?
Both accounts use the same valid-data gate. The control removes only close>SMA200. Giving the control a shorter warm-up would change two things at once and weaken that particular comparison.
Is 2023–2025 an unseen test?
No. The history was already available and had been used in prior research. Restarting cash for that period checks retrospective consistency. It does not turn familiar past data into prospective validation.
How precise are the entry, exit and candle times?
All chart candle times are H4 openings in UTC. Signals become available four hours later. Opening and scheduled-close exits use their declared references; an intrabar stop identifies an H4 interval, not a tick timestamp. E and X show raw references, while account fills include adverse slippage.
Does a 1% risk size guarantee the maximum loss?
No. The 1% budget uses the modeled nominal stop including the scenario’s modeled costs at entry. Gaps, missing prices, liquidity and real execution can produce a different loss. The reported drawdown is sampled at H4 closes and is not a continuous worst-case risk limit.
Primary sources
Copying or republication without attribution and an active link to the original material is prohibited. Usage policy.
Scope and research limitations
One historical venue, a stablecoin quote, modeled costs and fractional quantities do not establish actual fills or future returns. Missing intervals and noncanonical source rows remain disclosed limitations. There is no prospective unseen-test claim.