Independent market intelligence
Research over noise · Risk before return
Original strategy study

Bitcoin H4 EMA pullback strategy: an ATR exit backtest

Does waiting for a pullback improve a Bitcoin trend strategy? This historical test returned +59.97% after modeled costs, but the simpler trend-only control account earned more. The later Bitcoin sample lost money. The finding concerns exposure, execution and the limits of a plausible chart pattern.

About 26 minutes16 languages

The result in plain language

Under the strategy rules, a modeled Bitcoin position is opened after a bullish four-hour candle dips between two averages within an upward-trend filter and closes above the faster average. The exit rules include an ATR-based initial stop, a trailing stop and a slow-average exit. A completed signal can only be traded at the following open.

The main modeled account returned +59.97% after modeled costs, with a −15.57% maximum drawdown at four-hour closes. It won 28.00% of trades and held a position at 20.32% of sampled closes. The winning trades collectively outweighed the more frequent losses.

Removing the pullback requirements increased return to +208.34%; buy-and-hold returned +507.87% with a deeper drawdown. These approaches took different amounts of market exposure. There is no evidence here that waiting for this pullback improved profit, and no established claim about future profitability.

What was tested

Research assessed as of 2 November 2026. Binance spot BTCUSDT and ETHUSDT four-hour candles in UTC; test period 1 January 2018 through 30 September 2026, with 2017 indicator warmup. Each case starts with 10,000 USDT, no leverage and no cash yield. Returns are in USDT, whose value is not guaranteed to equal USD.

In this study
01

A pullback is a hypothesis, not an advantage

The attraction of a pullback is easy to understand: identify an upward trend, wait for price to retreat, then buy when it recovers. The retreat may begin a reversal, the recovery may be brief, and waiting may miss a strong move. A backtest becomes informative when rules govern those possibilities without seeing the next candle.

This study asks what a specified EMA pullback filter adds to a long-only trend framework with the same sizing and exits. Its 17 prespecified cases include five parameter configurations, two cost regimes, a trend-only control and five holding benchmarks. Rules were fixed before this study calculated returns. This is retrospective research, not a strategy preregistered before the historical period unfolded.

02

Data, dates and gaps remain part of the result

The input contains 220 official monthly archive ZIPs for both pairs, each checked against its published checksum. Each asset has 19,974 observed candles including warmup and 19,154 in the test. Raw archives are retained; millisecond or microsecond timestamps are normalized without changing prices. These checks identify the retrieved vintage and catch processing errors; they do not establish that every observation represents an executable market.

Each observed span contains 17 missing four-hour opens, of which 16 fall inside the test; none is interpolated. Eighteen test candles per asset have an early published close and are preserved. All source closes precede the next actual observed open. Equity is marked on the nominal H4 schedule using each published last close, so these are not uniformly four-hour observations. Indicators count observed bars; a new signal without an adjacent next bar is cancelled, while an existing position is checked at the next observed open. One position in the main BTC case spans a missing-bar interval on 4 July 2018; its unobserved path cannot be recovered from these candles.

03

The averages define direction; ATR defines distance

The baseline uses 20-bar and 50-bar exponential moving averages of closes. The faster must exceed the slower, and the slower must exceed its value three observed bars earlier. This defines the trend mechanically. EMA weighting favors recent prices but responds after prices change; it cannot certify continuation. The displayed formula specifies the weighting.

EMA_N(t) = α × close_t + (1 − α) × EMA_N(t−1); α = 2/(N+1)

TR_t = max(high_t−low_t, |high_t−close_(t−1)|, |low_t−close_(t−1)|)

ATR14_t = (13 × ATR14_(t−1) + TR_t)/14

ATR14 uses true range and Wilder's recursive smoothing. It measures recent price movement in USDT per coin, including the move from the previous observed close, and supplies the stop distance. A larger ATR therefore reduces the quantity bought for a fixed price-risk budget. EMAs are seeded with the first applicable simple average, and ATR with the first 14 true ranges; the first true range is high minus low. Warmup supplies those calculations without contributing trades to the test.

04

Six conditions must hold on a completed signal candle

The account must be flat, and every condition below must hold after the same signal candle closes. Its low is compared with the final averages for that candle. The test does not claim the low touched an average when that average had its closing value. A visual description of an intrabar touch must not become an execution assumption.

  • EMA20 is above EMA50 on the completed signal candle.
  • EMA50 is higher than its value three observed candles earlier.
  • The previous candle closed above its own EMA20.
  • The signal candle's low is at or above EMA50 and at or below EMA20, using completed signal-bar averages.
  • The signal candle closes above EMA20.
  • The signal candle closes above its open.

From observation to a possible fill

1 · Complete the signal

Wait for the bar to close. Calculate its final averages and ATR, then evaluate all six entry conditions while flat.

2 · Use the adjacent open

Enter only at the immediately following H4 open with adverse slippage. A missing adjacent bar cancels the pending entry.

3 · Manage known stops

Check the active stop and scheduled exit in order. A stop raised at this close becomes effective on the next bar.

The signal close informs the next decision. It is not a guaranteed transaction price; modeled purchases never occur retroactively at the pullback low.

Only one position is permitted, with no additions or new entry on a bar where a previous position exited. Nonpositive or nonfinite ATR, a nonpositive initial stop, or a stop at or above the raw next open cancels entry. Each slice starts flat without a pending warmup signal; its earliest possible strategy entry is the second included candle.

05

Exit order matters as much as the entry pattern

The initial stop sits two signal-bar ATRs below the entry fill. At every subsequent open, a gap at or below the active stop takes priority and exits at that open with adverse slippage. Otherwise, a slow-EMA exit scheduled at the previous close executes at the observed open. If neither applies, a candle low at or below the active stop triggers a stop sale. The entry candle’s low is also checked against the initial stop. There is no profit target.

At a completed close, the trailing candidate is three current ATRs below that close. The active stop can rise to this candidate but never fall, and the change takes effect only on the next candle. Testing a newly raised stop against the candle that created it would use information in the wrong order. A close below the configured slow EMA schedules an exit at the next observed open. Any position left at the sample boundary is liquidated at the final close with costs and labeled separately.

06

One percent price risk is not a one percent loss limit

Sizing targets 1% of current equity as the initial price risk between the filled entry and the initial stop. The formula also caps quantity at what available cash can buy after the entry fee, so this is a fully funded spot model. Quantities are continuous fractional units; historical minimum orders, lot steps and other venue filters are not reconstructed. The calculator isolates the sizing arithmetic using a hypothetical filled price of 100,000 USDT and equity of 10,000 USDT.

quantity = min(equity × risk_fraction / (2 × signal_ATR14), cash / (entry_fill × (1 + fee)))

Explore hypothetical size and modeled stop loss

1.00
2.00
BTC quantity
0.025000
Modeled loss at initial stop · USDT
106.10
Fixed equity: 10,000 USDT; entry price: an already filled 100,000 USDT; initial stop: two ATRs; fee: 0.10% per side; adverse exit slippage: 0.05%. Entry slippage is not charged twice. The loss output includes both fees and exit slippage; a gap can lose more. Fractional sizing is illustrative and does not reconstruct venue order filters.

At the default 2,000 USDT ATR and 1% risk setting, the quantity is 0.025000 BTC. The initial price-risk budget is 100 USDT, but the modeled stop loss is 106.10 USDT once both commissions and adverse exit slippage are included. A gap can increase the loss further. Changing ATR changes quantity as well as stop distance; a tighter stop can concentrate more notional exposure until the cash cap binds. The controls explain this relationship rather than specify an executable order.

07

Account returns and trade R answer different questions

The base model charges a 0.10% fee and 0.05% adverse slippage on each side. Entry commission is debited with the purchase, exit commission is deducted from sale proceeds, and net trade profit includes both. Open equity is cash plus coins valued at the raw candle close; a hypothetical future exit fee is not deducted before an exit occurs. Idle USDT earns nothing. Taxes, custody losses, borrowing and interest are outside the model.

A trade's net R divides its after-cost profit by its actual initial price risk after the cash cap, not whole-account equity. Profit factor divides total net winning-trade profit by the absolute total net losing-trade loss. CAGR uses elapsed UTC calendar time and 365.25-day years; net return covers the stated sample. Drawdown uses initial equity and H4 closing equity, so an intrabar account low can be worse than the reported maximum drawdown.

08

Two modeled trades show how the rules behave

The examples are selected deterministically: the first net winning trade and the first net losing trade in the main Bitcoin ledger. They are not the largest winner and loss. The first modeled winning position was opened at 10,504.11 USDT and closed at 10,582.31 USDT, for a net gain of +7.15 USDT or +0.07R after costs. The exit occurred through the active stop, which can protect a small gain after trailing upward. A stop exit is therefore not automatically a losing trade.

First net win and first net loss in chronological order, after modeled costs. Times are UTC bar-open labels; a stop exit's exact intrabar time is unknown.
ExampleEntry bar · UTCExit bar · UTCNet PnL · USDTNet RExit reason
First net win+7.15+0.07Active stop
First net loss−65.87−0.64Slow-EMA exit

First net winner: a small gain through the active stop

First net winner: a small gain through the active stop
  • EMA 20
  • EMA 50
  • BTCUSDT · H4 candles
  • S · Signal bar
  • E · Entry bar
  • X · Exit bar
  • -- · Active stop · dashed
Entry bar 2018-02-19T04:00:00Z; exit bar 2018-02-21T12:00:00Z. S marks the completed signal, E the entry bar and X the exit bar. EMA20 is gold, EMA50 blue and the active stop dashed. Times label bar opens; X locates a stop-triggering bar, not a known exact intrabar execution time.

First net loser: the trend exit arrives before recovery

First net loser: the trend exit arrives before recovery
  • EMA 20
  • EMA 50
  • BTCUSDT · H4 candles
  • S · Signal bar
  • E · Entry bar
  • X · Exit bar
  • -- · Active stop · dashed
Entry bar 2018-04-28T12:00:00Z; exit bar 2018-05-01T04:00:00Z. S marks the signal, E the entry and X the exit. EMA20 is gold, EMA50 blue and the active stop dashed. All times are UTC bar-open labels; this slow-EMA exit is scheduled by the preceding completed close and filled at the observed open with costs.

The first modeled losing position was opened at 9,223.18 USDT and closed at 8,934.03 USDT, with net PnL of −65.87 USDT or −0.64R after a slow-EMA exit. An upward-sloping average did not prevent the loss. Candles and ledger expose the event order: signal, following-open purchase, stop updates, then exit. Candle data locate a stop within its bar but cannot reveal its exact execution time.

09

The full-sample profit came with frequent losses

The main Bitcoin case produced +59.97% net return and +5.52% CAGR across 200 closed trades. Its net win rate was 28.00%, profit factor 1.42, and mean net outcome +0.27R. The longest consecutive losing run was 14 trades. These measures belong together: the positive account total alone obscures the frequency and persistence of losses.

Full BTC sample, 1 January 2018–30 September 2026. Same starting equity and base-cost assumptions; exposure and position sizing differ. Drawdown is measured at observed H4 closes.
CaseNet return · %CAGR · %Max drawdown · %Closed tradesHeld H4 closes · %
EMA pullback+59.97%+5.52%−15.57%20020.32%
Trend-only control+208.34%+13.74%−17.54%40840.17%
Buy-and-hold+507.87%+22.91%−81.42%199.99%

The trend-only control keeps the EMA direction filter and a close above the fast EMA, but removes the prior-close, low-zone and bullish-candle tests. The execution, sizing, exits and costs remain the same. It returned +208.34% over 408 trades, compared with the pullback rule's +59.97%. That comparison directly challenges the proposed benefit of waiting. It does not identify which removed condition caused the difference or isolate entry quality from the additional time invested.

10

Lower drawdown came with much less market exposure

The equity paths use the same dates and starting capital. Buy-and-hold returned +507.87% but experienced a −81.42% H4-close drawdown. The pullback rule's corresponding drawdown was −15.57%, and the trend-only control's was −17.54%. These differences are economically substantial within the model, but the accounts were not carrying equal risk. The buy-and-hold account committed its available capital to Bitcoin throughout the period; the accounts following the active rules frequently held cash and used position sizes based on stop distance.

Account equity and drawdown on the same history

Account equity and drawdown on the same history
  • EMA pullback
  • Trend-only control
  • Buy-and-hold
Upper panel: equity in USDT on a logarithmic scale; equal vertical distances represent equal proportional changes. Lower panel: drawdown from each account's running peak. All observed H4 closing points are used, including final liquidation; these are closing-equity paths, not intrabar risk measurements.

The main account held a position at 20.32% of H4 closes, versus 40.17% for the trend-only control. This is a snapshot count, not exact elapsed exposure or the proportion of capital invested. Lower exposure helps explain both the shallower drawdown and smaller gain. The chart shows that tradeoff without establishing matched-risk superiority or a future loss ceiling.

11

Later Bitcoin results weaken the broad profitability claim

The fixed split separates 2018–2023 from 1 January 2024 through 30 September 2026. Each slice restarts with 10,000 USDT and no position, while indicator history continues from preceding observations. The earlier Bitcoin slice returned +64.27%; the later slice returned −2.62%, with a −10.78% closing drawdown. These separate account starts mean the two percentage returns should not be added. The later period is a historical check selected for this retrospective study, not untouched or live validation.

Each row represents a separate account starting with 10,000 USDT. Later means 1 January 2024–30 September 2026, a retrospective historical check. Holding benchmarks use the same asset, dates and base costs.
Asset / periodStrategy return · %Hold return · %Strategy max DD · %Strategy trades
BTC · 2018–2023+64.27%+207.36%−15.57%130
BTC · 2024–Sep 2026−2.62%+97.18%−10.78%70
ETH · 2018–Sep 2026+116.80%+265.34%−14.50%205
ETH · 2024–Sep 2026+19.12%+17.36%−14.50%62

The unchanged configuration returned +116.80% on ETHUSDT over the full period and +19.12% in the later slice. The rule was not retuned to ETH outcomes, but ETH and BTC share crypto-market risk; this is not independent proof of an edge. Each holding benchmark shows what the same market delivered during the corresponding interval.

12

Neighboring settings test sensitivity, not an optimal recipe

Five configurations were specified before calculation. Alongside the 20/50 baseline with two-ATR initial and three-ATR trailing distances, the study tests 16/40 and 24/60 averages, plus tighter 1.5/2.5 and wider 2.5/3.5 ATR distances. Changed EMA periods apply throughout the signal, slope comparison, pullback zone and trend exit. This keeps each variant internally consistent instead of changing only the easiest part of the rule to notice on a chart.

All five fixed configurations on the full BTC sample with base costs. ATR columns give initial / trailing multiples. No row replaces the prespecified main configuration.
SettingFast / slow EMAInitial / trail ATRNet return · %Max drawdown · %Trades
Main20 / 502 / 3+59.97%−15.57%200
Faster averages16 / 402 / 3+71.11%−19.93%233
Slower averages24 / 602 / 3+44.37%−13.90%182
Tighter stops20 / 501.5 / 2.5+69.33%−15.96%228
Wider stops20 / 502.5 / 3.5+54.55%−11.81%187

All five configurations were profitable over the full Bitcoin sample, with different returns, drawdowns and trade counts. This discloses a small neighborhood of possibilities rather than a comprehensive robustness test. The baseline remains fixed even when another row shows a higher return. Selecting that row now would introduce an outcome-based choice requiring further evidence; these results do not identify a best EMA pair or ATR multiplier.

13

Higher execution costs reduce an already uneven result

The stress regime leaves commission at 10 basis points per side and raises adverse slippage from 5 to 15 basis points per side. One basis point is 0.01 percentage points. The full-period main return falls from +59.97% to +39.68%, with a −16.13% drawdown. In the later Bitcoin slice, the return falls from −2.62% to −7.70%. A profitable long sample therefore coexists with a recent historical interval that loses under both assumptions.

BTC main configuration under two modeled slippage assumptions. Commission remains 10 basis points per side. Fees are commissions in USDT; slippage is embedded separately in fills.
Sample / cost regimeSlippage · bps / sideNet return · %Max drawdown · %Fees · USDT
2018–Sep 2026 · Base costs5+59.97%−15.57%2,069.98
2018–Sep 2026 · Stressed slippage15+39.68%−16.13%1,918.27
2024–Sep 2026 · Base costs5−2.62%−10.78%612.13
2024–Sep 2026 · Stressed slippage15−7.70%−14.86%595.97

The main base-cost ledger records 2,069.98 USDT of commissions. That figure is not the entire execution drag: slippage is already embedded in entry and exit prices. Nor can the stressed account be obtained by subtracting a constant from the base account, because altered fills and equity can change sizes and exit events. Both regimes are research assumptions, not reconstructed historical commissions or actual fills. Holding benchmarks use base costs only, so a stress-to-hold comparison is not matched on costs.

14

A plausible mechanism still needs stronger evidence

The rule combines a trend filter, a recovery pattern, volatility sizing and exits. The full-sample gain cannot tell us which component deserves credit. The simpler control makes one important limitation visible: requiring the pullback reduced total profit in this dataset while reducing exposure. A more ambitious claim about improved entry quality would require an appropriate matched-exposure or matched-risk design, with its choices fixed before assessment. That additional experiment has not been performed here.

The sample covers one exchange, two related assets and one bar interval. Four-hour OHLC candles omit the order book and intrabar price sequence. Retained data improve auditability without resolving those economic limits. No confidence interval, statistical significance claim or live record is supplied. The losing later BTC slice narrows the conclusion; it is not a reason to change dates or suppress the result.

15

The practical lesson is a testable decision process

A visual setup becomes a research object when its timing, sizing, exits and accounting are explicit enough for another implementation to challenge. Here, waiting until the signal closes, paying the next-open cost, delaying trailing-stop changes and reporting a losing slice are central to the result. A different implementation that assumes purchases at the touch or trailing-stop updates within the completed candle is testing a different strategy, even if its chart uses the same EMA and ATR labels.

Extensions should state a new question and preserve this result before changing markets, intervals or execution assumptions. Further historical variants add selection opportunities. Forward observation can supply different evidence while facing costs and operational errors. This study supplies a specified historical comparison in which the pullback story did not improve total profit over its simpler control.

16

Audit the assumptions before interpreting the curve

Audit the path from source observations to decisions and account equity. The checklist identifies assumptions that can change a result’s meaning, and separates recorded events from model protections. A gap rule remains necessary even when a case records no gap-stop exits.

  • Data: retain source archives and checksums; disclose missing opens and early closes instead of fabricating continuous candles.
  • Timing: evaluate completed candles, buy only at the next adjacent open and activate trailing changes from the following bar.
  • Risk: apply the cash cap, charge both commissions and distinguish the initial price-risk budget from the possible realized loss.
  • Accounting: reconcile trade PnL, net R and closing equity; treat dataset-end liquidation as a boundary event.
  • Comparison: retain the simpler control, holding benchmarks and every fixed variant, including losing periods and stressed costs.
  • Inference: disclose retrospective choices, unequal exposure and correlated assets; reserve future-performance claims for evidence this study does not provide.

The account following these exact rules made money over the full BTC sample after stated costs, but lost in the later BTC slice and earned less overall than the simpler trend-only control. Its shallower drawdown relative to holding accompanied lower market exposure. Those observations warrant transparent further testing, not a claim of a durable trading advantage.

Questions about the test

Was this Bitcoin EMA pullback strategy profitable?

The main version returned +59.97% after modeled costs over 1 January 2018–30 September 2026. Its later Bitcoin slice returned −2.62%. The full-sample gain therefore coexists with a losing interval and does not establish future profitability.

Did waiting for the pullback improve the result?

The trend-only control account earned +208.34% over the full BTC sample, more than the pullback account. It also traded more and spent more closing snapshots in a position. This test gives no evidence that the extra pullback requirements improved total profit; a matched-exposure comparison would be a separate experiment.

Why can the loss exceed one percent with a one percent risk setting?

The setting budgets the entry-to-stop price distance before commissions and adverse exit slippage. Those costs increase a realized loss, and a gap below the stop can increase it further. In the calculator's default example, a 100 USDT price-risk budget produces a modeled stop loss of 106.10 USDT.

Can I reproduce this by buying whenever price touches EMA20?

A touch alone is a different rule. This test requires all six completed-candle conditions, with entry at the next adjacent open. It also defines EMA and ATR initialization, gap handling, stop timing, costs and sizing. Changing those choices can change both the trades and the account result.

Are the later period and Ethereum independent validation?

The later period is a retrospective historical check, not an untouched holdout or live record. The fixed rule is applied to Ethereum as another asset, but BTC and ETH share risks. These checks reveal instability and transfer behavior without independent confirmation of a durable advantage.

Does the shallower drawdown make this safer than holding Bitcoin?

The modeled H4-close drawdown was shallower, alongside much lower market exposure and different position sizing. That comparison describes these account paths, not a guaranteed safety ranking. Intrabar losses, future gaps, actual execution, USDT value and custody outcomes can differ from what the backtest measures.

Methodology and reproducibility

Original MyProfitFactor calculations use retained Binance spot archives, a fixed protocol and separate ledgers for all 17 cases. Parameters, costs, slices and example-selection rules were fixed before return calculation. Outputs are hypothetical and denominated in USDT. The design retains the main setting, discloses losses and distinguishes calendar-time CAGR from total return.

What the model cannot promise

This is research about specified historical rules, not personalized investment advice or an offer to execute them. Candle-based fills and fixed costs cannot reproduce order-book liquidity, venue failures or an individual's taxes and custody arrangements. No leverage is modeled, yet spot positions and idle USDT still carry risks. A profitable historical account and a trailing stop do not guarantee future gains or a maximum loss.

Sources and study basis

The official archive documentation establishes the data source; MetaQuotes and Fidelity explain the indicator concepts. Entry rules, execution assumptions and reported results belong to this original study. Indicator documentation is not evidence that this combination is profitable. The retained protocol, provenance records and ledgers provide the basis for auditing the calculations.

Created by the MyProfitFactor editorial team.

Copying or republication without attribution and an active link to the original material is prohibited. Usage policy.