How to trade a pullback to the 20-period moving average
The Gatilho Markets team · 28 October 2026 · 5 min read · How we write
In short
- A flat average means there is no trend to pull back into.
- Enter on the trigger close, not on the touch of the line.
- Pip value on yen pairs is not $10 per lot; calculate it.
"Buy the dip in an uptrend" is advice nobody can follow, because nobody agrees on where the dip ends. A moving average gives the pullback a place to finish and the setup a line to measure from. Here is a version with every rule written down, using the 20-period average.
Why the 20-period average
There is nothing magic about 20. It is popular because on most timeframes it follows the recent swing closely enough to be touched in a healthy trend, and loosely enough not to be crossed by every candle. Whether you use a simple or an exponential average matters less than using the same one every time.
The setup card
| Line | Rule (buy side) |
|---|---|
| Context | The 20-period average slopes up and price has made a higher high in the last 20 candles |
| Zone | Price pulls back to touch or slightly pierce the average |
| Trigger | A candle closes back above the high of the candle that touched the average |
| Stop | Below the lowest low of the pullback |
| Target | 2R, or the last swing high if it is closer |
| Skip | The average is flat, or price has closed below it twice in a row |
The "skip" line is as important as the others. A flat average means there is no trend to pull back into.
Measuring the trade
The stop is set by the pullback low, so its size changes from trade to trade. That is why size is the last thing you calculate: the lot size calculator takes your money at risk and the stop in pips and returns the lot. If you trade gold or an index instead of a currency pair, check the instrument's pip or point value with the pip value calculator first.
Worked example
USDJPY, H1, trending up. The 20-period average is at 151.40. Price pulls back to 151.36, and the touching candle's high is 151.58. The next candle closes at 151.63.
| Item | Value |
|---|---|
| Entry | 151.60 |
| Stop | 151.30 (30 pips, below the pullback low) |
| Target | 152.20 (60 pips, 2R) |
| Risk | $60 |
| Pip value | about $6.60 per standard lot at 151.60 (1,000 yen ÷ 151.60) |
| Size | 60 ÷ (30 × 6.60) = 0.30 lot |
Illustrative calculation, not an expectation of results.
Notice that the pip value on a yen pair is not $10. It moves with the exchange rate, which is exactly why the calculator exists.
When it goes wrong
- The pullback keeps going. Price slices through the average and closes beneath it. The stop is hit, and that is the cost of the setup working as written.
- Entering on the touch. Buying the moment price reaches the line skips the trigger and puts you in front of a falling market.
- Late in the move. After several touches the trend is older and weaker. Some traders only take the first or second pullback.
Related setups
A pullback that stalls exactly at an old breakout level is also a breakout and retest; when both agree, the card is stronger. Before trusting any version, run it through a 100-trade backtest. Trading involves risk, and most retail traders lose money.
Questions people also ask
Simple or exponential average?
Either can work. What matters is using the same one every time, so your backtest and live trades match.
Why 20 periods?
It is a common compromise that tends to be touched in a healthy trend without being crossed by every candle. It is not a special number.
How many pullbacks can I take in one trend?
Your card decides. Some traders only take the first or second touch, because later ones come in older, weaker trends.
Take the quiz and find your trader profile.
Take the quizTrading financial markets carries a high level of risk and can result in the loss of all the money you invest. Gatilho Markets content is for education only and is not investment advice. Past results do not guarantee future results.