In simple terms
We buy Bitcoin after a completed H4 close crosses above an upper-fractal level that was already confirmed by that candle’s opening. The main variant also requires bullish Alligator alignment and stated price conditions. Entry uses the next scheduled opening, a fixed ATR14 stop and defined exit priorities. This is a cash-funded spot strategy study, not a guide to a guaranteed signal.
On this page
One entry filter and a reproducible question
Does Alligator improve a close-confirmed fractal breakout after costs? We fixed the 13/8/5 smoothed averages, their 8/5/3 chart shifts, a strict five-candle upper fractal and one control before the first calculation. The control removes only the collective Alligator entry gate and keeps the same exit. This mechanical close-based adaptation is not the complete Bill Williams trading system or an intrabar pending-stop method. We did not optimize parameters; the historical sample was already familiar.
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.
Alligator uses smoothed median prices and positive chart shifts
For each completed candle, median price is (high+low)/2. Each SMMA starts with the mean of its first N medians and then updates with weight 1/N. Jaw uses N=13 and shift 8; Teeth N=8 and shift 5; Lips N=5 and shift 3. At chart position t, the visible values therefore come from raw SMMA at t−8, t−5 and t−3. Positive plotting shifts move an earlier calculation forward; they never authorize future prices. Jaw first appears at zero-based index 20, Teeth at 12 and Lips at 7.
M_t = (H_t + L_t) / 2
SMMA_N,t = [(N−1)×SMMA_N,prev + M_t] / N
Jaw_t = SMMA13,t−8; Teeth_t = SMMA8,t−5; Lips_t = SMMA5,t−3
Symbols: M is median price (H+L)/2; H/L/C are high, low and close. SMMA_N is the seeded smoothed average; Jaw/Teeth/Lips are its visible shifted values. F_t is the fractal level already known at candle t opening; c is the center candle. TR is true range and ATR14 its Wilder average. O is the next raw opening; E/X are modeled fills and X_ref the raw exit reference. B/B_free are cash before/after purchase, q is BTC quantity, f/s per-side fee/slippage, SL the fixed stop, L_unit planned unit loss, P_net net profit, R_net net R and V liquidation equity.
A fractal center is not its confirmation time
Use a strict five-candle peak: the middle high must exceed the two highs on each side. Ties reject the candidate; extended plateau variants are outside this study. A center candle opening at c becomes confirmed only after the second right-hand candle closes, at c+12 hours. Its level is locked for signals starting with the following candle opening. The current candle cannot use a fractal newly confirmed by its own close. The reader distinguishes the center opening from confirmation availability.
H_c > max(H_c−2,H_c−1,H_c+1,H_c+2)
t_confirm = t_open,c + 3×14 400 s
Five candles, two right-hand closes, then availability
Cross the same level that was known at the opening
All variants require 21 consecutive canonical observations, defined visible Jaw/Teeth/Lips, positive ATR14 and an active upper fractal confirmed by the prior close. Require the previous close at or below that locked level and the current close strictly above the same level. The primary account additionally needs Lips>Teeth>Jaw, current close>Lips and the fractal level>Teeth. The control omits these three entry conditions only. Keep the latest confirmed level until replacement or reset; repeat fresh crossings are allowed. A new fractal is not a license to compare two closes against different levels.
C_prev ≤ F_t < C_t
Lips_t > Teeth_t > Jaw_t; C_t > Lips_t; F_t > Teeth_t
The next scheduled opening and one fixed stop
When flat, schedule an entry at the immediately next scheduled H4 opening. Cancel the entry if that opening is missing or outside the account period; a later quote does not rescue it. Modeled fill E is the raw opening plus adverse slippage. Fix SL=E−2×signal ATR14 and reject unless 0<SL<the raw opening, with positive cash and quantity. Later close-time metadata cannot censor an already observed opening. Hold one cash-funded position, without a target, trailing stop, leverage or adding.
E = O × (1+s); SL = E − 2 × ATR14_signal
Lips/Teeth exits and explicit event priorities
When visible Lips and Teeth are defined on a completed canonical candle and Lips≤Teeth, we schedule an exit at the next observed opening. This is a level condition, not necessarily a new crossing. It needs neither Jaw, a known fractal, positive ATR nor the entry-only 21-observation gate. A queued exit survives gaps and indicator resets. At an observed opening, a stop gap has first priority, then a queued Lips/Teeth exit, then an overdue time limit. Only afterward can the current low trigger the fixed stop. Otherwise exit at the 30th scheduled H4 close or period end, with the stop checked first.
Lips_t ≤ Teeth_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)
Cost changes require complete reruns
Baseline assumptions are 0.10% fee and 0.05% adverse slippage on each side; higher costs use 0.20% and 0.10%. Full-period returns are +102.10% with zero costs, +57.62% with baseline costs and +28.28% with higher costs. Trade counts are 174, 174 and 175, respectively. Reruns change fills, fixed stops, quantities, holding paths and later cash, so subtracting fees from unchanged trades is not equivalent. These fixed assumptions are not current venue tariffs; liquidity and spread 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 |
|---|---|---|---|---|---|
| Alligator + Fractals · zero costs | +102.10 | 0.00 | 0.00 | 0.00 | 190.57 |
| Fractal breakout + Alligator entry gate | +57.62 | 1,499.67 | 372.92 | 376.92 | 149.97 |
| Alligator + Fractals · higher costs | +28.28 | 2,474.49 | 615.36 | 621.90 | 123.72 |
The filtered historical account has a positive cumulative result
The continuous primary account returns +57.62% across 174 trades: 65 wins and 109 losses. Profit factor is 1.50, sampled H4-close drawdown 7.95% and observed-interval position share 22.64%. Independently restarted 2020–2022 and 2023–2025 accounts return +16.08% and +35.79%. These are cumulative period returns, not annual yields. Fully invested buy-and-hold returns +1,114.49% with 77.04% sampled drawdown and very different market exposure. The paths are not equal-risk investments.
Continuous accounts after baseline costs
The entry gate improves this particular comparison
Removing only the Alligator entry gate gives +2.95% full-period return and 22.24% sampled drawdown. In the separately restarted later period, the control returns +5.69% with 19.44% drawdown, versus +35.79% and 5.55% with the gate. On this history, the fixed filter reduces trades and exposure while improving these return and drawdown comparisons. Both variants still use the Lips/Teeth exit; the control is not an entirely Alligator-free system. One familiar sample and one fixed comparison do not establish a universal indicator advantage.
| Account or scenario | Net return % | H4-close drawdown % | Trades | Profit factor | Observed intervals with position % |
|---|---|---|---|---|---|
| Fractal breakout + Alligator entry gate · Continuous 2020–2025 | +57.62 | 7.95 | 174 | 1.50 | 22.64 |
| Fractal breakout without the entry gate · Continuous 2020–2025 | +2.95 | 22.24 | 501 | 1.02 | 31.61 |
| Fractal breakout + Alligator entry gate · Independent 2020–2022 | +16.08 | 7.59 | 87 | 1.33 | 22.86 |
| Fractal breakout without the entry gate · Independent 2020–2022 | −2.59 | 22.17 | 246 | 0.97 | 31.92 |
| Fractal breakout + Alligator entry gate · Independent 2023–2025 | +35.79 | 5.55 | 87 | 1.63 | 22.41 |
| Fractal breakout without the entry gate · Independent 2023–2025 | +5.69 | 19.44 | 255 | 1.05 | 31.30 |
| Buy and hold · base costs · Continuous 2020–2025 | +1,114.49 | 77.04 | — | — | 100.00 |
Keep source defects and affected trades visible
The primary full-period ledger has 0 trades crossing missing intervals and 3 touching noncanonical source rows. There are 0 delayed indicator exits and 0 liquidation proxies using a noncanonical close. The control has 2 trades touching noncanonical rows. A position keeps its original stop through a reset. Excluding affected trades at their recorded quantities is a post-event diagnostic, not an executable avoidance rule or a recomputed return. A zero count in one category does not remove the source limitations.
| Account or scenario | Trades |
|---|---|
| Trades crossing missing H4 intervals | 0 |
| Trades touching noncanonical rows | 3 |
| Delayed Lips/Teeth exits | 0 |
| Noncanonical-close liquidation proxies | 0 |
Chronological examples, known fractals and real candles
The first completed early primary trade enters at 2020-01-05 04:00 UTC and records +1.510 net R; the first completed later trade enters at 2023-01-04 04:00 UTC and records +0.167 net R. Both are profitable here, but chronological selection does not make them typical. Charts show actual OHLC, the three displaced Alligator lines, each candle’s already-known fractal level and the fixed stop, with real elapsed UTC spacing. S is the completed signal candle; E and X are raw price references. Modeled fills include slippage separately. Historical context on the full chart is not a bar-by-bar forward simulation.
First completed early primary trade
Select a candle using the chart, slider or arrow keys. Prices use two decimals; rounded values do not select trades. H4 availability and the active fractal’s center/confirmation times are separate.
- Opening · UTC
- 2020-01-02 08:00 UTC
- Available · UTC
- 2020-01-02 12:00 UTC
- Open
- 7,110.98
- High
- 7,180.00
- Low
- 7,109.11
- Close
- 7,139.79
- Jaw · SMMA13 shifted 8
- 7,268.46
- Teeth · SMMA8 shifted 5
- 7,243.25
- Lips · SMMA5 shifted 3
- 7,224.11
- Protective ATR14 · USDT per BTC
- 70.68
- SL · fixed protective stop
- 7,286.84
- F · already-confirmed upper-fractal level
- 7,255.00
- Fractal center opening · UTC
- 2020-01-01 12:00 UTC
- Fractal confirmation available · UTC
- 2020-01-02 00:00 UTC
| Opening · UTC | Entry fill after slippage | Exit fill after slippage | Net R |
|---|---|---|---|
| 2020-01-05 04:00 UTC | 7,479.74 | 7,814.11 | +1.510 |
First completed later primary trade
Select a candle using the chart, slider or arrow keys. Prices use two decimals; rounded values do not select trades. H4 availability and the active fractal’s center/confirmation times are separate.
- Opening · UTC
- 2023-01-01 08:00 UTC
- Available · UTC
- 2023-01-01 12:00 UTC
- Open
- 16,525.70
- High
- 16,557.00
- Low
- 16,505.20
- Close
- 16,556.66
- Jaw · SMMA13 shifted 8
- 16,625.90
- Teeth · SMMA8 shifted 5
- 16,581.20
- Lips · SMMA5 shifted 3
- 16,562.81
- Protective ATR14 · USDT per BTC
- 87.48
- SL · fixed protective stop
- 16,677.00
- F · already-confirmed upper-fractal level
- 16,644.09
- Fractal center opening · UTC
- 2022-12-31 12:00 UTC
- Fractal confirmation available · UTC
- 2023-01-01 00:00 UTC
| Opening · UTC | Entry fill after slippage | Exit fill after slippage | Net R |
|---|---|---|---|
| 2023-01-04 04:00 UTC | 16,871.04 | 16,944.25 | +0.167 |
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-27 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; rounded values do not select trades. H4 availability and the active fractal’s center/confirmation times are separate.
- Opening · UTC
- 2023-01-25 00:00 UTC
- Available · UTC
- 2023-01-25 04:00 UTC
- Open
- 22,631.94
- High
- 22,715.06
- Low
- 22,300.00
- Close
- 22,643.61
- Jaw · SMMA13 shifted 8
- 22,354.95
- Teeth · SMMA8 shifted 5
- 22,761.60
- Lips · SMMA5 shifted 3
- 22,892.60
- Protective ATR14 · USDT per BTC
- 368.28
- SL · fixed protective stop
- 22,571.28
- F · already-confirmed upper-fractal level
- 23,162.20
- Fractal center opening · UTC
- 2023-01-24 04:00 UTC
- Fractal confirmation available · UTC
- 2023-01-24 16:00 UTC
| Opening · UTC | Entry fill after slippage | Exit fill after slippage | Net R |
|---|---|---|---|
| 2023-01-27 20:00 UTC | 23,264.69 | 22,560.00 | −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 | Fractal breakout + Alligator entry gate | Fractal breakout without the entry gate |
|---|---|---|
| 2020 | +13.71 | +14.92 |
| 2021 | +6.47 | −3.57 |
| 2022 | −4.12 | −12.10 |
| 2023 | +23.28 | +18.33 |
| 2024 | +9.17 | +2.00 |
| 2025 | +0.89 | −12.43 |
Reproduce the fixed rules and retain their limits
Downloads include the frozen protocol and source hashes, all observations and indicators, every account ledger, and standalone Python replay and independent-checker files. The replay uses Decimal40; the separate reconstruction uses Decimal50 and a scheduled opening/range/close clock. Obtain all 79 selected original ZIPs and matching checksum files. The gain after modeled costs is a historical result of this exact adaptation. One venue, USDT denomination, source defects, fractional hypothetical execution and sampled drawdown limit inference; the result is not proof of future profitability.
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-alligator-replay.py --protocol btc-alligator-protocol.json --raw-dir raw4h --output replay.json python3 btc-alligator-independent-check.py --protocol btc-alligator-protocol.json --evidence btc-alligator-evidence.json --raw-dir raw4h
Frequently asked questions
Was this Alligator/Fractals account profitable in the historical model?
Yes. The full account returns +57.62% after baseline costs and +28.28% under higher costs. Independently restarted early and later accounts return +16.08% and +35.79%. The control without the entry gate returns +2.95% over the full period. These are retrospective hypothetical results, not promised live returns.
Do the Alligator shifts use future prices?
No. A positive chart shift places an earlier SMMA value at a later chart position. At t, this study reads SMMA13 at t−8, SMMA8 at t−5 and SMMA5 at t−3. Reading t+8, t+5 or t+3 would introduce information unavailable at the decision time.
When is the upper fractal actually usable?
Only after two candles to the right of the center have closed. The center’s opening time and the confirmation timestamp are different. A new level confirmed at the current close is usable from the following opening; it cannot create that same candle’s breakout signal. If any of the four comparison highs equals the center high, the strict five-candle fractal candidate is rejected.
What does the no-entry-filter control remove?
Only Lips>Teeth>Jaw, close>Lips and the known fractal level>Teeth at entry. It keeps the same confirmed level, 21-observation eligibility, ATR stop, Lips≤Teeth exit, time limit, sizing and costs. Replacing the exit too would test a different question.
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
The positive historical result and higher-cost scenario are hypothetical. This one fixed entry gate improves its stated control on familiar history; it does not establish a general advantage or future profitability. Delayed fractal confirmation, source defects, modeled execution, unequal exposure and H4-close sampled drawdown remain explicit limits.