WickCheck / Trading school / Blog

MACD Strategy on the 4 Hour Chart: What the Backtest Shows

21 November 2026 · 4 min read · tested on real data with costs

A MACD crossover with a 200-period moving average filter is one of the most common setups taught to new traders. The idea is simple: trade in the direction of the trend, and enter when momentum turns. The question is whether that idea holds up once you put real costs and a fixed risk per trade into the test.

The headline finding is that it was close to break-even on most markets and lost money on GBP/USD. Across four markets over ten years, the profit factor ranged from 0.96 to 1.17. Only XAU/USD and USD/JPY showed a clear positive result, and even those depended heavily on a handful of years.

The rules we tested

Buy when MACD crosses above the signal line and price is above the 200 EMA. Sell when MACD crosses below the signal line and price is below the 200 EMA. Stop at 1.5x ATR. Target 2R.

Results

MarketTradesWin rateProfit factorNetMax DDPeriod
GBP/USD 4h50133.3%0.96-16.6%-23.7%10y
EUR/USD 4h49835.9%1.09+25.9%-16.9%10y
XAU/USD 4h49637.9%1.17+61.2%-26.7%10y
USD/JPY 4h46537.6%1.16+51.7%-36.3%10y

1% risk per trade, spread and slippage included, entries at the next candle open, stop checked before target. Periods: GBP/USD 2016-11-20 to 2026-11-20 · EUR/USD 2016-11-20 to 2026-11-20 · XAU/USD 2016-11-20 to 2026-11-20 · USD/JPY 2016-11-20 to 2026-11-20.

0%+20%+40%+60%

Equity (% at 1% risk per trade) on XAU/USD 4h, 496 trades.

What was tested and why

The rules were tested on the 4 hour chart with the following logic. A long is taken when the MACD line crosses above the signal line and the close is above the 200 EMA. A short is taken when the MACD line crosses below the signal line and the close is below the 200 EMA. The stop sits at 1.5 times the 14-period ATR, and the target is 2R.

Entries are at the next candle open. Spread and slippage are included, and each trade risks 1% of the account. If the stop and target are both hit within the same candle, the stop is counted first, which is the conservative choice.

The test covered GBP/USD, EUR/USD, XAU/USD and USD/JPY, from 2016-11-20 to 2026-11-20. Each market produced between 465 and 501 trades, so the sample is large enough to look at year-by-year behaviour, though not large enough to settle the question on its own.

Results by market

GBP/USD was the weakest result. It produced 501 trades with a 33.3% win rate, a profit factor of 0.96, and an average R of -0.03. The net return at 1% risk was -16.6%, with a maximum drawdown of 23.7%. A profit factor under 1 means the strategy lost money after costs, and this market is no exception.

EUR/USD was slightly positive. It produced 498 trades, a 35.9% win rate, a profit factor of 1.09, and an average R of 0.06. The net return was 25.9% with a maximum drawdown of 16.9%. The margin over break-even is thin.

XAU/USD had the strongest headline numbers. It produced 496 trades, a 37.9% win rate, a profit factor of 1.17, and an average R of 0.11. The net return was 61.2%, with a maximum drawdown of 26.7%.

USD/JPY was similar. It produced 465 trades, a 37.6% win rate, a profit factor of 1.16, and an average R of 0.1. The net return was 51.7%, but the maximum drawdown was the deepest of the four at 36.3%.

What stands out: years and direction

The yearly figures are where the caveats live. On GBP/USD, 2023 contributed +10.9R and 2026 contributed -12.4R, which is a sign that results swing a lot from one year to the next. On XAU/USD, 2025 (+20.2R) and 2026 (+16.0R) did most of the work, while 2021 lost 13.5R.

USD/JPY shows the same pattern. 2022 (+29.0R) and 2023 (+26.2R) carried the total, while 2019 (-14.9R) and 2020 (-13.8R) were heavy losing years. A strategy whose positive return sits in two or three years is one you should test further before trusting.

Direction also varied. XAU/USD took 300 longs and 196 shorts, and USD/JPY took 266 longs and 199 shorts. GBP/USD was close to balanced at 267 longs and 234 shorts, and EUR/USD leaned short with 272 shorts against 226 longs. The data does not split results by direction, so it is not possible to say from this test whether longs or shorts drove the outcome.

Why it might behave this way

A MACD crossover is a lagging signal. By the time the lines cross, a good part of the move may already have happened. The 200 EMA filter reduces trades against the long-term trend, but it does not stop the crossover from firing in choppy ranges, and a 2R target needs a move to continue after entry.

The win rate in every market sits between 33% and 38%. With a 2R target, a win rate near 33% is roughly break-even before costs, so the edge depends almost entirely on how often the trend runs far enough. That is a thin margin, and small changes in spread or volatility can move a result from positive to negative.

Gold and yen pairs have had long directional phases over the test period. That may explain why the trend filter helped on those markets in some years. The data here does not prove that cause, so treat it as a guess to check rather than a conclusion.

What to try next

The most useful next step is to test the same rules over shorter windows, so you can see whether the good years and bad years cluster. Splitting the period into two halves and comparing them would show whether the edge is stable or just a few strong runs.

It would also help to test the stop and target separately. Changing the ATR multiple or the reward target, while keeping everything else the same, shows how sensitive the result is to those two choices. Adding a separate test for long-only and short-only versions would answer the direction question directly.

You can run the same test yourself on WickCheck, using the rules above or your own variation, and check the year-by-year breakdown for each market.

Takeaway. On this test, a MACD crossover with a 200 EMA filter did not produce a reliable edge. GBP/USD lost money after costs, EUR/USD was barely above break-even, and XAU/USD and USD/JPY looked better but leaned on a few strong years and carried deep drawdowns. The rules are simple enough to test in a few minutes, but the results suggest the signal alone is not enough to rely on without further testing.

Run this test yourself

Same rules on XAU/USD. Change any word, a market or the dates and see what moves.

Open in WickCheck

Terms used here

Profit factorBacktestTrendRangeMoving averageMACDStrategy library

Questions

Does the MACD strategy work on the 4 hour chart?
In this test, it was mixed. GBP/USD had a profit factor of 0.96, which means it lost money after costs. EUR/USD, XAU/USD and USD/JPY had profit factors between 1.09 and 1.17, but their results depended on a few strong years.
What is a good profit factor for a backtest?
A profit factor under 1 means the strategy lost money after costs. Values just above 1 leave little room for error once spread, slippage and real execution are considered. Consistency across years matters as much as the headline number.
Is 500 trades enough to trust a backtest?
Each market here produced roughly 465 to 501 trades, which is well above 30 per market. That makes the sample large enough to look at yearly patterns, but a single ten-year test still cannot show how the rules will behave in the future.

More tests

Equal Highs and Equal Lows on the Nasdaq: A Backtest

We backtested the equal highs and equal lows sweep, then FVG entry, on NQ, ES and gold over three years. Profit factors were all below 1.

Trading Around News: Does Skipping Red Days Help?

We backtested a New York session sweep-and-FVG model with red USD news days removed across NQ, EUR/USD, XAU/USD and GBP/USD. Results were mixed.

Donchian Channel Breakout on Gold and Oil: 10-Year Test

A 20-day Donchian breakout with a 200 SMA filter, tested on gold, crude oil, ES and EUR/USD from 2016 to 2026. Results by year, long vs short, and drawdown.

Follow WickCheck for a new strategy test every day: Instagram · TikTok · X

Past results, real or simulated, do not guarantee future results. Not investment advice.

One tested strategy a week

A popular strategy backtested on real data, with the honest numbers. Free, one email a week, unsubscribe any time.