Trend pullback strategy

INTERMEDIATE·15 min read·Reviewed 17 October 2026·Strategies

What you will learn

  • A complete, unambiguous rule set for a trend pullback strategy, so that two people applying it get the same trades.
  • How to compute the stop, target, position size and result of a trade in R, using real EUR/USD trades as examples.
  • What a 60/40 in-sample and out-of-sample test on five instruments showed, including the cost assumptions, with every number reported.
  • What the published research says about the profitability of rules like this, and why a backtest is only a first step.

The idea in plain words

Markets sometimes trend: a series of higher highs and higher lows, or the reverse. A pullback is a temporary move against the trend. The idea of a pullback strategy is to wait for the trend to pause and dip back towards its average, and to enter in the direction of the trend when the dip ends, with a stop below the dip. Compared with chasing a move, you get a closer stop and a better price. The risk is that the “dip” is the start of a reversal.

This lesson turns that idea into rules a computer can test, and reports what happened. It does not recommend the rules. It shows how a strategy lesson should read: the rules, the result, the weaknesses.

Research on technical trading rules is mixed. Brock, Lakonishok and LeBaron (Journal of Finance, 1992) tested moving-average and trading-range break rules on the Dow Jones index from 1897 to 1986 and reported strong support for them. Sullivan, Timmermann and White (Journal of Finance, 1999) re-examined the question over a much larger set of rules and 100 years of data, adjusting for data-snooping. A survey by Park and Irwin (Journal of Economic Surveys, 2007) counted, among 95 modern studies, 56 with positive results for technical trading strategies, 20 negative and 19 mixed, and noted that most were subject to problems such as data snooping, ex post selection of trading rules and difficulty estimating risk and transaction costs. Menkhoff and Taylor (Journal of Economic Literature, 2007) established that technical analysis is widespread in the foreign exchange market and that it may be profitable. None of these studies tested our particular rules, so they describe the debate and not our result.

How it works

The rules

We fixed these rules before looking at any results and did not change them afterwards.

Market and timeframe: EUR/USD, GBP/USD, USD/JPY, gold (XAU/USD) and Bitcoin (BTC/USD), on H4 and D1 candles.

Trend filter (long): the 20-period exponential moving average (EMA 20) is above the EMA 50, and the candle closes above the EMA 50. For shorts, the mirror image.

Pullback signal (long): on a candle, the low touches or goes below the EMA 20, the candle closes back above the EMA 20, and it is a bullish candle (close above open). For shorts, the mirror image.

Entry: at the open of the next candle.

Stop: 1.5 × ATR (14-period Wilder ATR on the signal candle) from the entry.

Target: 2R, which is 3 × ATR from the entry.

Time exit: if neither level is hit within 20 candles, close at that candle’s close.

Execution assumptions: if a candle’s range includes both stop and target, the stop is assumed to be hit first. If a candle opens beyond the stop or target (a gap), the trade fills at that open. Only one trade is open at a time per instrument. A round-trip cost of 0.10 ATR (spread and commission) is deducted from every trade. That cost is an assumption: real costs vary, and we show how the result changes at 0 and 0.2 ATR.

Data and split: the demo-feed candles of a broker demo account, the last 1,500 candles of each series, ending 15 October 2026. For D1 that is about 4 years of Bitcoin and 5.8 years of the currency pairs and gold (from January 2021 for EUR/USD). For H4 it is about 8 to 12 months (from late October 2025 for EUR/USD). The first 60% of each series is “in-sample” (IS) and the last 40% “out-of-sample” (OOS). Since the rules were fixed in advance, nothing was tuned on the in-sample part, so the split simply shows whether the two periods look alike.

Computing a trade in R

For a long trade: entry = next open; stop distance = 1.5 × ATR; stop price = entry − stop distance; target = entry + 2 × stop distance. The result in R is (exit − entry) ÷ stop distance. A target hit gives +2R and a stop hit gives −1R, before costs. Then subtract the cost in R: cost ÷ stop distance = 0.10 ATR ÷ 1.5 ATR = 0.067R. So a winning trade nets +1.933R and a losing trade nets −1.067R.

The break-even win rate before costs is 1 ÷ (1 + 2) = 33.3%. With the cost, it is the p for which p × 1.933 = (1 − p) × 1.067, which gives p = 1.067 ÷ 3.0 = 35.6%.

The results

Pooled across the five instruments (trades are not completely independent, because currencies and gold tend to move together at times):

The results
Timeframe Sample Trades Win rate Mean R Standard error Profit factor
D1 In-sample 189 43.9% +0.157 0.100 1.28
D1 Out-of-sample 127 41.7% +0.148 0.120 1.27
D1 All 316 43.0% +0.153 0.077 1.28
H4 In-sample 187 34.8% −0.110 0.097 0.84
H4 Out-of-sample 133 38.3% −0.072 0.111 0.88
H4 All 320 36.2% −0.094 0.073 0.86

Note: the win rate counts every trade with a positive result, including trades closed at the time exit, so the mean R is not simply wins × 1.933R minus losses × 1.067R.

Cost sensitivity (all trades, mean R): at zero cost D1 was +0.220 and H4 −0.027; at 0.2 ATR cost D1 was +0.087 and H4 −0.161.

As a reference, a random-direction baseline with the same stop, target and cost (5% of candles, a seeded random number generator) gave a mean R of −0.056 on D1 (268 trades) and −0.133 on H4 (249 trades). The negative values are the cost drag, which is about −0.067R per trade, plus noise.

By instrument on D1, the mean R in-sample and out-of-sample was: EUR/USD +0.265 and +0.141; GBP/USD +0.106 and +0.032; USD/JPY +0.396 and +0.235; gold +0.120 and +0.290; Bitcoin −0.052 and +0.058. All five had a standard error of 0.2 to 0.3 per sample, so none can be told apart from zero on its own.

What to make of it

  • On D1, the pooled mean R was +0.153 with a standard error of 0.077, about two standard errors from zero, and the in-sample and out-of-sample results were close (+0.157 and +0.148). That is consistent with a modest edge, and also consistent with luck.
  • On H4, the result was negative in both parts and was not distinguishable from the random baseline.
  • We tested several strategy variants in this series of lessons. When you test many things, some will look good by chance. A result near two standard errors in one of several tests is weak evidence.
  • Costs matter: at 0.2 ATR the D1 result halves, and on H4 the result is negative at every cost level we tried.
  • The D1 samples cover one historical period. A strategy that follows trends will do well when trends are present, and the years in the sample may have had more than the years ahead.

Worked examples

These are the last signals that the rules produced on EUR/USD D1 (demo feed).

Example 1: a winner on 21 January 2026

  1. Signal candle on 20 January 2026: EMA 20 above EMA 50, the low touched the EMA 20 and the candle closed back above it, bullish. ATR on that candle: 0.00560.
  2. Entry at the next open: 1.17205 (long).
  3. Stop distance: 1.5 × 0.00560 = 0.00840 (84 pips), so the stop is at 1.16365. Target: 1.17205 + 2 × 0.00840 = 1.18885.
  4. The target was reached within the 20-candle window.
  5. Result: +2R minus the cost of 0.10 × 0.00560 ÷ 0.00840 = 0.067R, so +1.933R.

Example 2: a loser on 6 January 2026

  1. Signal candle on 5 January 2026 with ATR 0.00501.
  2. Entry at the next open: 1.17179 (long). Stop distance: 1.5 × 0.00501 = 0.00752 (75.2 pips), so the stop is at 1.16427 and the target at 1.18683.
  3. The stop was hit first.
  4. Result: −1R minus 0.067R of cost = −1.067R.

Of the last eight EUR/USD D1 trades, two won and six lost, with results in R (oldest first, with the cost included) of −1.067, +1.933, −1.067, −1.067, −1.067, +1.933, −1.067, −1.067 (the other six followed the same rules). The sum is −2.5R. A set of eight trades says nothing about the strategy, and that is the lesson.

EUR/USD D1 candles for January 2026 with the EMA 20 and EMA 50, the 20 January pullback candle marked, and horizontal lines for entry 1.17205, stop 1.16365 and target 1.18885
What to notice: That the stop sits below the pullback and the target is twice as far away.

Example 3: position size from the stop

Using Example 1 on a $10,000 account risking 1% ($100): the stop is 84 pips away, so the pip value must be $100 ÷ 84 = $1.19 per pip, which is about 0.12 lots of EUR/USD (one lot is about $10 a pip). If the target is reached, the gross profit is $200 before costs.

A table of the eight most recent EUR/USD D1 trades with entry date, direction, stop distance in pips and result in R, and the running sum in R
What to notice: That the running sum falls even though the strategy’s long-run mean is positive.

How to apply it step by step

  1. Write the rules in full, as above, before looking at any chart. Anything vague is a place where hindsight will enter.
  2. Collect enough history: hundreds of trades, not dozens.
  3. Test on a part of the data and look at the rest only once, without changing rules after you look.
  4. Include costs and check how the result changes when costs are higher.
  5. Compare with a random baseline that uses the same stop and target.
  6. Check each instrument separately, and be suspicious if the edge exists only in one.
  7. Trade the strategy on a demo account first, with a journal, and compare the live results with the test.
  8. Size the position from the stop, and keep risk per trade small enough to survive the losing streaks you expect.
  9. Re-test periodically. Markets change.

Common mistakes

  • Treating a backtest as a promise. Our best result is about two standard errors from zero.
  • Optimising the numbers. If we had searched for the EMA lengths that looked best, the in-sample result would have been better and the future worse.
  • Ignoring costs. At 0.2 ATR the D1 result halves.
  • Using too little data. The H4 sample is under one year.
  • Entering without a trend filter. The idea needs a trend to pull back from.
  • Moving the stop after entry. It breaks the arithmetic of R.
  • Judging by a handful of trades. The last eight EUR/USD trades summed to −2.5R in a strategy whose pooled mean in the test was positive.

When it works and when it does not

A pullback strategy tends to fit markets that trend in clean waves and punishes markets that chop sideways, where every dip to the EMA 20 is followed by another dip. The EMA trend filter has a lag, so a trend that has already ended can still pass the filter. Entering at the end of a pullback also means you cannot know whether it is a pullback or a reversal.

Our test is limited. It covers one feed, up to six years on D1 and under a year on H4, five instruments that are partly correlated, a fixed set of rules and an assumed cost. The sample is large enough to see big effects, not small ones. The out-of-sample part is not a true forward test, since we had seen the data used in earlier lessons. A positive result in a test like this tells you the idea is worth testing further, not that it will make money.

Practice exercise

A long signal appears with ATR = 0.0060 on EUR/USD and the next open is 1.1000. Rules: stop 1.5 ATR, target 2R, cost 0.10 ATR.

  1. What are the stop and target prices?
  2. What is the net R of a winner and of a loser?
  3. What is the break-even win rate with costs?
  4. With a $5,000 account risking 1%, what pip value fits this stop, and roughly what lot size?

Answers:
1. Stop distance 0.0090, so the stop is 1.0910 and the target is 1.1000 + 0.0180 = 1.1180.
2. Cost in R = 0.10 × 0.0060 ÷ 0.0090 = 0.067R. A winner is +1.933R and a loser is −1.067R.
3. 1.067 ÷ (1.933 + 1.067) = 35.6%.
4. Risk is $50 and the stop is 90 pips, so the pip value is $50 ÷ 90 = $0.56, about 0.06 lots.

Key terms

Pullback – a temporary move against the prevailing trend.
EMA – exponential moving average, which weights recent prices more.
ATR – average true range, a measure of typical candle size.
In-sample / out-of-sample – the data used to design a rule and the data held back to check it.
R – the amount risked on a trade.
Profit factor – total winning R divided by total losing R.
Standard error – the typical sampling error of an average.
Baseline – a simple comparison, such as random entries, with the same stops and costs.

Frequently asked questions

What is a pullback strategy?

A strategy that waits for a trend to dip back towards its average and enters in the trend’s direction when the dip ends, with a stop beyond the dip.

Does the pullback strategy work?

In our test, the daily version had a pooled mean of +0.153R per trade (316 trades, standard error 0.077) and the H4 version was negative. The daily result is promising and not conclusive.

What are the exact rules?

EMA 20 above EMA 50 and a close above EMA 50; a candle that touches the EMA 20 and closes back above it as a bullish candle; entry at the next open; stop 1.5 ATR; target 2R; exit after 20 candles. Shorts mirror these.

How much do costs matter?

A lot. The round trip cost of 0.10 ATR is 0.067R per trade here, and at 0.2 ATR the D1 mean fell from +0.153R to +0.087R.

Why does the H4 version perform worse?

We do not know. Possible reasons include shorter trends relative to costs and a sample under a year, but our data cannot separate those explanations from chance.

Can I use this strategy live?

We do not recommend it. Treat it as a worked example of how to specify and test a rule, and test your own version with your own costs on a demo account first.

Key takeaways

  • A strategy needs rules that two people would apply identically.
  • Results come in R, after costs, against a random baseline.
  • Our D1 pullback test gave +0.153R per trade, about two standard errors from zero; the H4 test was negative.
  • Costs and sample size decide whether a small edge survives.
  • A backtest is a starting point, not a promise.

Quick quiz

Q1. A long entry at 1.2000 has ATR 0.0050. Where are the stop and target with a 1.5 ATR stop and 2R target?
A: The stop distance is 0.0075, so the stop is at 1.1925 and the target at 1.2150.

Q2. What is the break-even win rate for a 2R target before costs?
A: 1 ÷ (1 + 2) = 33.3%.

Q3. What does a mean of +0.153R with a standard error of 0.077 tell you?
A: The average is about two standard errors above zero, which is suggestive but could be chance.

Q4. Why compare with a random baseline?
A: To see what the stops, targets and costs alone produce, so you know whether the entry rule adds anything.

Q5. Why were no parameters tuned?
A: So that the in-sample and out-of-sample parts both act as honest checks.

Q6. What does the H4 result suggest?
A: That the same rules did not show an edge on H4 in this sample.

Going deeper

Educational content only, not financial advice. Trading involves substantial risk of loss.