Strategies we backtested supply and demand zone strategy

Tested by BacktestingMax

Supply and demand zone strategy backtest

Do supply and demand zones work?

No, not in our backtest after trading costs. We ran 30 tests: 8 currency pairs, gold and silver, on 15-minute, 1-hour and 4-hour charts, from 2007 to 2025. A demand zone is a base of 1 to 3 small candles followed by a fast move up. A supply zone is a base followed by a fast move down. Our standard rules put a limit order (an order that waits at a set price) at the near edge of each zone, for the first time price came back. R is the money each trade is sized to risk: 1% of the account. The stop-loss went 1 pip beyond the far edge, and the take-profit was at 2R, twice the stop-loss's distance from the entry. 29 of the 30 tests lost money. Gold's 4-hour test made 0.8%, but only because of wrong prices on one day in our data. Without them, all 30 lost money. With no trading costs, the trades made about as much as they lost. With costs, they lost: small candles make narrow zones, so the stop-loss sat close to the entry, and the trading costs were large next to each trade's risk. A stop-loss further from the zone lost about a third less per trade, but still lost money.

30 backtests 2007–2025 Trading costs included Tested 16 November 2026

Where it worked 30 backtests
Made money
1
of 30 tests, with the standard rules
Made money in both periods
0
2007–2019 and again 2020–2025
Best backtest
+0.8%
Gold, 4-hour chart: account growth 2007–2025
With a 200 EMA trend filter
0
tests made money in both periods, compared with 0 with the standard rules

Lost money on every market

  • 15-minute charts
  • 1-hour charts

The results

Results on every market

Each box shows one backtest of the supply and demand zone strategy with the standard rules, from 2007 to 2025, after trading costs: the % result, and a small chart of the account balance. The solid line is the account balance and the dashed line is the starting balance. Green results made money; red results lost money. Under each result: whether it made money in both 2007–2019 and 2020–2025, or passed all four of our checks (see "How a test passes" further down).

Market 15-minute 1-hour 4-hour
EUR/USD −78% Lost money −15% Lost money −16% Lost money
GBP/USD −90% Lost money. Account down 90% by Dec 2025 −28% Lost money −26% Lost money
USD/JPY −74% Lost money −1% Lost money −14% Too few trades
AUD/USD −85% Lost money −59% Lost money −5% Too few trades
USD/CAD −90% Lost money −46% Lost money −5% Lost money
USD/CHF −98% Lost money. Account down 90% by Jun 2018 −44% Lost money −23% Lost money
EUR/JPY −83% Lost money −20% Lost money −2% Lost money
GBP/JPY −94% Lost money. Account down 90% by Dec 2022 −46% Lost money −26% Lost money
Gold −98% Lost money. Account down 90% by Oct 2015 −63% Lost money +0.8% Made money overall, lost in one period
Silver −100% Lost money. Account down 90% by Nov 2014 −60% Lost money −7% Lost money
All the numbers, test by test
Market Chart Trades Win rate Profit factor Result Max drawdown 2007–2019 2020–2025 Monte Carlo drawdown Trading costs
EUR/USD 15-minute 718 27.6% 0.74 −77.6% −77.6% −60.0% −44.0% −80.8% $2,474
EUR/USD 1-hour 225 33.3% 0.89 −15.0% −34.0% −15.2% +0.2% −34.8% $724
EUR/USD 4-hour 168 30.4% 0.85 −16.4% −22.5% −8.6% −8.5% −31.2% $295
GBP/USD 15-minute 985 26.8% 0.70 −90.0% −90.2% −79.1% −52.3% −91.4% $2,886
GBP/USD 1-hour 257 30.4% 0.84 −27.9% −38.8% −5.2% −24.0% −41.4% $1,168
GBP/USD 4-hour 204 29.4% 0.81 −25.8% −41.4% −10.7% −16.9% −38.6% $429
USD/JPY 15-minute 1,085 30.9% 0.83 −74.3% −77.3% −60.5% −34.8% −80.4% $4,225
USD/JPY 1-hour 279 34.8% 0.99 −1.1% −17.3% +1.6% −2.7% −32.6% $1,094
USD/JPY 4-hour 99 29.3% 0.80 −13.5% −21.1% −6.7% −7.3% −25.1% $197
AUD/USD 15-minute 990 29.6% 0.79 −85.3% −86.1% −65.8% −56.9% −88.1% $4,431
AUD/USD 1-hour 252 23% 0.60 −59.4% −59.4% −32.9% −39.5% −63.2% $974
AUD/USD 4-hour 82 32.9% 0.92 −4.5% −12.3% −5.5% +1.1% −19.7% $198
USD/CAD 15-minute 948 27.7% 0.73 −89.5% −90.6% −81.5% −43.2% −91.0% $4,237
USD/CAD 1-hour 183 24.6% 0.60 −45.9% −48.0% −24.4% −28.4% −51.8% $904
USD/CAD 4-hour 126 33.3% 0.95 −4.5% −20.6% +5.8% −9.8% −23.4% $393
USD/CHF 15-minute 996 23.4% 0.58 −98.2% −98.3% −94.2% −68.4% −98.3% $3,523
USD/CHF 1-hour 242 28.5% 0.70 −43.9% −49.8% −37.7% −9.9% −51.9% $1,525
USD/CHF 4-hour 180 30% 0.79 −23.0% −27.0% −22.5% −0.7% −36.0% $585
EUR/JPY 15-minute 795 28.4% 0.73 −83.3% −83.5% −61.1% −57.1% −85.9% $3,312
EUR/JPY 1-hour 266 32.3% 0.89 −19.5% −31.7% −7.8% −12.7% −38.5% $1,136
EUR/JPY 4-hour 103 34% 0.98 −1.7% −11.5% +8.1% −9.0% −20.9% $247
GBP/JPY 15-minute 727 24.5% 0.62 −93.6% −93.9% −84.4% −58.8% −94.2% $3,192
GBP/JPY 1-hour 244 27.5% 0.70 −45.7% −45.8% −30.7% −21.7% −53.2% $1,359
GBP/JPY 4-hour 122 26.2% 0.67 −26.2% −30.8% −14.9% −13.3% −34.5% $356
Gold 15-minute 866 22.3% 0.49 −98.1% −98.1% −96.9% −38.9% −98.2% $3,670
Gold 1-hour 274 24.1% 0.52 −62.6% −64.0% −55.5% −15.9% −66.2% $1,255
Gold 4-hour 173 34.7% 1.01 +0.8% −19.2% −13.4% +16.4% −25.0% $554
Silver 15-minute 539 16% 0.48 −99.5% −99.6% −99.5% −1.7% −99.5% $5,574
Silver 1-hour 219 26.5% 0.55 −60.1% −62.3% −50.3% −19.8% −64.0% $3,119
Silver 4-hour 131 34.4% 0.93 −7.2% −26.4% −10.8% +4.1% −26.9% $1,254

Profit factor is the money won divided by the money lost. Above 1 means the test made money. Max drawdown is the biggest fall from the highest balance. 2007–2019 and 2020–2025 show the result in each period on its own. Monte Carlo drawdown: we shuffled the trades into a random order 1,000 times; in 95% of those runs, the worst drawdown was this number or less. Result is the change in the account, with the risk of each trade set to 1% of the account at that time.

The account balance

The best test and the middle test

Best test Gold, 4-hour chart +0.8% from 2007 to 2025
Middle test (median): half of the 30 did better, half did worse USD/CHF, 1-hour chart −43.9% from 2007 to 2025

What we found

What the 30 backtests show

  1. With the standard rules, 29 of the 30 tests lost money from 2007 to 2025, after trading costs. All 10 tests on 15-minute charts lost most of the account: from 74.3% on USD/JPY to 99.5% on silver. All 10 tests on 1-hour charts lost money too, from 1.1% on USD/JPY to 62.6% on gold. On 4-hour charts, 9 of the 10 tests lost money. Gold's 4-hour test made 0.8% with 173 trades, but only because of wrong prices on 3 April 2015 in our data. Without them, it lost 0.6% (see 'What the wrong prices changed' under 'The strategy'). No test made money in both 2007–2019 and 2020–2025. On average, a trade lost 0.304R on 15-minute charts, 0.208R on 1-hour charts and 0.088R on 4-hour charts. So the bigger the chart, the less each trade lost, but every chart lost money.

  2. Narrow zones made the trading costs large. The only cost in our test is the spread: the gap between the buy price and the sell price. A base is made of small candles, so our zones were narrow, and the stop-loss sat close to the entry. In 3,647 out of 12,478 trades, the stop-loss was less than 3 spreads from the entry. On EUR/USD, 3 spreads are 2.4 pips. Those trades lost 0.501R each on average (see 'Narrow zones' below). We also ran the 30 tests with no spread at all. Then the trades made about as much as they lost: 33.6% reached the take-profit. A win pays 2R and a loss costs 1R, so 1 trade in 3 (33.3%) breaks even. 16 of the 30 tests made money with no spread, 9 of them in both periods. The average trade made +0.014R, close to zero. With the spread, only 27.3% of the trades reached the take-profit.

  3. A retest is a time price comes back to a zone. Trades at a zone's second or third retest did about as well as trades at its first. Many teachers say only the first retest is worth trading, because each retest fills some of the orders waiting there. To check, we also traded every retest, until price reached the zone's stop-loss level (the version 'Every retest, not only the first' below). In that version, 27.2% of the trades on a first retest reached the take-profit: 3,376 out of 12,404. On a second retest, 27.0% did: 659 out of 2,445. On a third retest, 31.1% of 576 trades did, and on later retests 23.4% of only 209. With no spread, the first three retests reached the take-profit 33.5%, 30.9% and 34.9% of the time. So the zones did not get steadily weaker with each retest. Trading every retest made money in 1 of the 30 tests, the same number as trading only the first retest.

  4. A bigger move away from the zone (the fast move after the base) did not make the trades better, and neither did a shorter base. Teachers use checks like these, which they call odds enhancers, to pick the zones most likely to work. To compare kinds of zones, we ran the 30 tests again with looser rules. A base could have up to 6 small candles, and the move away only had to reach 1 ATR instead of 2. ATR is the average height of a candle over the last 14 candles. With no spread, 34.6% of the trades at zones with a move away of 3 ATR or more reached the take-profit. At zones with a move of only 1 to 1.5 ATR, 34.5% reached it. Bases of 1 candle reached it 34.3% of the time, and bases of 4 to 6 candles 35.1%. Reversal zones, where the candle before the base went the other way, reached it 34.6% of the time. Continuation zones, where it went the same way, reached it 34.0% (see 'Kinds of zones' below). We also looked at zones that passed all three checks at once: a move of 2 ATR or more, a base of 1 or 2 candles, and a reversal. They reached it 34.2% of the time. Every group lost money after costs.

  5. Two of the four changes cut the loss per trade by about a third: a wider stop-loss, and waiting for a candle to close back out of the zone. Neither made money in most tests. With the stop-loss half an ATR beyond the zone, instead of 1 pip, the stop-loss was further from the entry. So the spread was a smaller part of each trade's risk. 29.6% of the trades reached the take-profit, and the average trade lost 0.166R, against 0.262R with the standard rules. With no spread, the wider stop-loss did about as well as the standard rules: +0.023R per trade against +0.014R. So the difference came from the trading costs. Waiting for a close back out of the zone did about the same: the average trade lost 0.167R, and 32.4% of the trades reached the take-profit. But it took only 6,336 trades, about half as many as the 12,478 with the standard rules. Each of these two changes made money in 3 of the 30 tests from 2007 to 2025, and none of those made money in both periods.

Narrow zones

The closer the stop-loss was to the entry, the more the spread cost

This table shows all 12,478 trades of the 30 tests with the standard rules, from 2007 to 2025. It groups them by how far the stop-loss was from the entry, counted in spreads. For example, the spread on EUR/USD is 0.8 pips, so a stop-loss 4 pips from the entry is 5 spreads away. We also ran the 30 tests with no spread at all. 'Reached the take-profit' is the share of trades that reached 2R before the stop-loss. 'Average trade' is the result of the average trade, in R. For example, −0.228R means that the average trade lost 22.8% of the money it risked.

Stop-loss distance Trades Reached the take-profit, no spread Reached the take-profit, with the spread Average trade, no spread Average trade, with the spread
Less than 3 spreads 3,647 33.6% 21.5% +0.019R −0.501R
3 to less than 5 spreads 3,631 34.0% 28.3% +0.024R −0.228R
5 to less than 10 spreads 3,391 32.7% 29.5% −0.011R −0.163R
10 to less than 20 spreads 1,438 33.5% 31.7% +0.012R −0.068R
20 spreads or more 371 37.5% 37.2% +0.126R +0.106R
All trades 12,478 33.6% 27.3% +0.014R −0.262R

The Trades column is for the run with the spread. With no spread, every limit order filled as soon as price touched it, so that run had a few more trades: 12,628. Most of the narrow zones were on 15-minute charts. For half of the trades there, the stop-loss was less than 3.5 spreads from the entry. On 1-hour charts, that figure was 6.5 spreads, and on 4-hour charts 13.0. 291 of the 371 trades with the stop-loss 20 or more spreads away were on 4-hour charts. They made money on average, but they are too few to rely on, and we did not test a rule that trades only them. Every R figure on this page is a trade's result in money divided by 1% of the account at the time of the trade. Some trades risked less than 1% (see 'Trade size limits' under 'The strategy'), which pulls their R figures closer to zero.

Kinds of zones

Every kind of zone reached the take-profit about as often

For this table, we ran the 30 tests again with looser rules, to get more zones. A base could have up to 6 small candles, and the move away only had to reach 1 ATR instead of 2. Then we grouped the trades by the zone they came from. The move away is the farthest close beyond the zone within the 3 candles after the base, in ATR. Here, a zone's kind depends on the candle just before its base. A drop-base-rally is a demand zone whose base follows a down candle, and a rally-base-rally one whose base follows an up candle. A rally-base-drop is a supply zone whose base follows an up candle, and a drop-base-drop one whose base follows a down candle.

Kind of zone Trades, no spread Reached the take-profit, no spread Average trade, no spread Reached the take-profit, with the spread
All zones 62,323 34.4% +0.036R 29.3%
Move away of 1 to 1.5 ATR 35,432 34.5% +0.039R 29.3%
Move away of 1.5 to 2 ATR 14,246 34.5% +0.039R 29.6%
Move away of 2 to 3 ATR 9,199 33.6% +0.016R 28.8%
Move away of 3 ATR or more 3,446 34.6% +0.049R 29.2%
Base of 1 candle 44,004 34.3% +0.036R 29.0%
Base of 2 candles 11,536 34.5% +0.039R 30.1%
Base of 3 candles 4,157 33.7% +0.019R 29.7%
Base of 4 to 6 candles 2,626 35.1% +0.064R 31.2%
Reversal: drop-base-rally or rally-base-drop 31,417 34.6% +0.043R 29.6%
Continuation: rally-base-rally or drop-base-drop 30,157 34.0% +0.029R 29.0%
All three: a move of 2 ATR or more, a base of 1 or 2 candles, a reversal 5,575 34.2% +0.031R 29.0%

749 trades came from bases whose previous candle closed where it opened, so the reversal and continuation rows add up to 61,574. With the spread, the 15-minute accounts lost almost all of their money. After that, many trades would have been smaller than the smallest trade size, so the test skipped them, and the run with the spread had only 44,570 trades. That is why the table shows only how often those trades reached the take-profit, not their average result. With no spread, the looser rules made a little more per trade than the standard rules: +0.036R against +0.014R. With the spread, every group lost money.

Stock indices

On stock indices, 13 of the 15 tests lost money from 2019 to 2025

We ran the standard rules on 5 stock indices, on 15-minute, 1-hour and 4-hour charts, from 2019 to 2025. Each cell shows the backtest's result after trading costs, with its number of trades. These tests are not part of the 30 tests in the rest of this page, because they cover fewer years. We do not trust our index data before mid-2018 (see 'Price data' under 'The strategy'). For the indices, we split the years into 2019–2022 and 2023–2025.

Market 15-minute 1-hour 4-hour
S&P 500 −67.5% (266 trades) −22.9% (121) −6.5% (69)
Nasdaq 100 −51.8% (251 trades) −29.1% (122) +5.8% (92)
Dow Jones −17.2% (219 trades) −1.0% (98) +4.7% (86)
DAX −58.8% (406 trades) −10.9% (156) −24.5% (86)
FTSE 100 −40.2% (342 trades) −30.1% (131) −8.8% (67)

Spreads: 0.4 points on the S&P 500, 1.5 on the Nasdaq 100, 2.0 on the Dow Jones, and 1.0 on the DAX and the FTSE 100. Over the 15 tests, 28.4% of the 2,512 trades reached the take-profit, and the average trade lost 0.184R. The two tests that made money were both on 4-hour charts. The Nasdaq 100 lost 3.2% in 2019–2022 and made 9.3% in 2023–2025. The Dow Jones made 4.6% in 2019–2022, then almost nothing in 2023–2025: $1.39 in 3 years. Our DAX and FTSE 100 data has some wrong prices (see 'Wrong prices in our data' under 'The strategy'). Without them, the DAX's 1-hour test made 6.9% instead of losing 10.9%, so 12 of the 15 tests lost money. The DAX's 15-minute and 4-hour tests changed by less than 1.5 percentage points.

The strategy

What the supply and demand zone strategy is

Supply and demand zones are areas on a chart where price paused for a short time and then moved away fast. Traders mark them by hand. A demand zone is an area where price paused before a fast move up. The idea is that big buyers did not fill all their orders while price paused. Those orders may still be waiting there, so price may turn up again when it comes back. A supply zone is the opposite: an area where price paused before a fast move down, where sellers may still be waiting. When price comes back to a demand zone, traders buy. When it comes back to a supply zone, they sell short (sell first, to profit if price falls). Many put the stop-loss just beyond the far edge of the zone. The method is often linked to Sam Seiden, who taught it for many years at Online Trading Academy, and many YouTube courses teach it today. Teachers judge a zone with a few checks they call odds enhancers. Did price leave the zone fast and far? Did it spend only a few candles there? Is the zone fresh, which means price has not come back to it yet? Teachers also name a zone by the moves into and out of it. A demand zone can be a drop-base-rally (price fell, paused, then rose) or a rally-base-rally (price rose, paused, then rose again). A supply zone can be a rally-base-drop (price rose, paused, then fell) or a drop-base-drop (price fell, paused, then fell again). Teachers call drop-base-rally and rally-base-drop zones reversal zones, and the other two continuation zones. Every trader draws zones a little differently, so we used fixed rules to find them. With fixed rules, the same chart always gives the same zones.

Small candle
No taller than half the ATR(14) of the 14 candles before it, measured from its high to its low. ATR(14) is the average height of a candle over 14 candles. Some teachers judge base candles by their bodies instead of their full height
Base
1 to 3 small candles in a row
Move away from the base
Teachers call it the leg-out. The rules need a close at least 2 × ATR(14) beyond the base within the 3 candles after it. No candle may go past the other side of the base first. This ATR covers the 14 candles up to and including the base's last candle
Zone
From the base's lowest price to its highest price, wicks (the thin lines above and below the candle bodies) included. Many teachers draw the near edge at the candle bodies and the far edge at the wicks. That makes the zone narrower and puts the stop-loss closer to the entry. We used the whole range
Entry
A limit order at the near edge: the top of a demand zone (a buy) or the bottom of a supply zone (a sell). It fills only where a real order would (see 'How orders pay the spread'). If price touches it without filling it, the order keeps waiting
Stop-loss
1 pip beyond the far edge of the zone: below its bottom for a buy, above its top for a sell. In this test, 1 pip means 0.0001 on EUR/USD, GBP/USD, AUD/USD, USD/CAD and USD/CHF, and 0.01 on USD/JPY, EUR/JPY and GBP/JPY. It means $0.01 on gold, $0.001 on silver and 0.1 point on the indices
Take-profit
Twice the distance from the entry to the stop-loss (2R), as a limit order. We used the same 2-to-1 ratio in every test, so that all tests are judged the same way. Many teachers aim for 3 to 1 or more, or for the next opposing zone. We also ran the 30 tests with the take-profit at 3R. With no spread, 25.5% of the trades reached it, and at 3R, 1 trade in 4 (25%) breaks even. With the spread, 21.0% reached it, and the average trade lost 0.249R, about as much as at 2R. 28 of the 30 tests lost money, and none made money in both periods
Zone valid for
500 candles after the candle whose close completed the move away: about 1 week on 15-minute charts, 1 month on 1-hour charts and 4 months on 4-hour charts. On the 30 tests, the standard rules found 14,691 zones. 1,616 of them (11.0%) ran out after 500 candles without a trade
Trend filter
None. The test trades every zone, with or against the bigger trend. It uses no zones from a bigger chart
Time of day
Any time the market is open. No time-of-day filter
Order of events inside a candle
We use 1-minute data to see whether the entry, the stop-loss or the take-profit was reached first. On the candle where an order fills, only the prices after the fill count. If the stop-loss is reached in the same minute as the entry or as the take-profit, the test counts the trade as a loss. If price jumps past the stop-loss, for example over a weekend, the trade closes at the first price after the jump and loses more than planned. With the standard rules, 23 out of 9,075 trades that hit their stop-loss lost more than 0.1R extra this way. The worst, on the EUR/USD 1-hour chart, lost 8.0R over the weekend of 12 and 13 March 2011
Risk per trade
1% of the account balance at the time of the trade. The account started at $10,000
Trading costs
The spread: the gap between the buy price and the sell price. Currency pairs: 0.8 pips on EUR/USD, 1.2 on GBP/USD, 0.9 on USD/JPY, 1.0 on AUD/USD, 1.3 on USD/CAD, 1.5 on USD/CHF, 1.4 on EUR/JPY and 2.5 on GBP/JPY. Metals: $0.30 on gold and $0.020 on silver. Stock indices: 0.4 points on the S&P 500, 1.5 on the Nasdaq 100, 2.0 on the Dow Jones, and 1.0 on the DAX and the FTSE 100. For silver, the Nasdaq 100, the Dow Jones, the DAX and the FTSE 100, these are wider than the defaults in our backtest engine, to match a typical retail broker. Our spreads stay the same at all times. Real spreads are wider around news and at the end of the trading day. No commission
How orders pay the spread
Our charts show the sell price (the bid). The buy price (the ask) is one spread higher. Limit orders pay no spread on top of their price, but they fill only where a real order would. A sell limit order fills when the chart price reaches its price: the entry of a sell, or the take-profit of a buy. A buy limit order fills only when the chart price goes one spread below its price, because only then does the buy price reach it. That is the entry of a buy, or the take-profit of a sell (a sell closes by buying). A trade that closes at its stop-loss pays half the spread. That is the average of a buy's stop-loss, which sells at the chart price, and a sell's, which buys one spread higher. With 'Wait for a close back out of the zone', the entry is a market order (an order that fills at once, at the next price). It pays half the spread too
The 'Trading costs' column
In 'All the numbers, test by test', this column adds up only the half spreads paid at the stop-loss and on market orders. It leaves out the limit-order fill rule, which costs no money directly but makes buy entries and the take-profits of sells harder to reach. The results include both
Trade size limits
Each market has a smallest trade size: 1,000 units of a currency pair, 1 ounce of gold, 50 ounces of silver, or 0.1 of an index contract. Sometimes the size needed to risk exactly 1% is smaller than that. Then the test skips that zone. With the standard rules, this happened to 284 zones, all on the 15-minute charts of gold (41) and silver (243), after those accounts had fallen below $500. Some trades also risked less than 1%. Our backtest engine allows trades worth up to 30 times the account balance for currency pairs, and 20 times for gold, silver and the indices. A narrow zone puts the stop-loss so close to the entry that a 1% risk can need a bigger trade than that. Then the test uses the biggest size allowed. With the standard rules, 1,708 out of 12,478 trades (13.7%) risked less than 0.8% of the account, 1,680 of them on 15-minute charts. At least 1,189 of them were limited by the 30-times or 20-times limit. 363 came after the account had fallen below $1,000, where rounding the size down cuts the risk more. We did not check the other 156, most of them on the EUR/JPY and GBP/JPY 15-minute charts. If every trade had risked the full 1%, the average trade would have lost about 0.301R instead of 0.262R
Overnight (swap) fees
Not included. Brokers charge (or sometimes pay) a fee for each night a trade stays open. Most trades here were short. Half of the trades closed within 15 minutes on 15-minute charts, 53 minutes on 1-hour charts and 3.9 hours on 4-hour charts. Only 5.4% of the 4-hour trades and 0.5% or less of the others stayed open longer than a day
Price data
CFD prices: the prices a broker quotes for a CFD (contract for difference), the product most brokers outside the US offer for trading these markets. Currency pairs, gold and silver: 2007 to 2025. Stock indices: 2019 to 2025. On charts shorter than a day, our index data before mid-2018 has long stretches where the price does not change. So we start the index tests on 1 January 2019, to test whole years. The rules skip flat candles (high equal to low, as on some market holidays). They also skip the few minutes of prices after the weekly close on Fridays, which make a tiny extra candle in some of our data. Skipped candles never count as base candles, as part of a move, or in the ATR
Wrong prices in our data
Our data has a few minutes with prices far from where the market really traded. We counted a minute as wrong when it had no trading volume and its price was more than 0.75% away from the last traded close. The 8 currency pairs have none from 2007 to 2025. Gold has 64 such minutes, all on 3 April 2015, and silver has 447, most of them in 2009 and 2010. From 2019 to 2025, the S&P 500, the Nasdaq 100 and the Dow Jones have none. The DAX has 1,017 and the FTSE 100 has 303, almost all in the late evening, from 20:15 UTC. The results on this page include these prices, as our data shows them
What the wrong prices changed
We ran every gold, silver and index test on this page again without the wrong prices. Two results changed from a loss to a profit or back. Gold's 4-hour test with the standard rules lost 0.6% instead of making 0.8%: without the wrong prices, it found one more zone, on 5 April 2015, and that trade lost. The DAX's 1-hour test made 6.9% instead of losing 10.9%, and it made money in both 2019–2022 and 2023–2025. With the trend filter, gold's 4-hour test made 4.6% instead of 5.7%, and only 0.03% in 2007–2019 instead of 1.1%. The FTSE 100's 15-minute test lost 34.3% instead of 40.2%. Over all the years, every other test changed by less than 2.5 percentage points

The rules we tested

  1. ATR (average true range) is the average height of a candle, from its high to its low, over the last 14 candles. If a candle opens away from the previous candle's close, that gap counts as part of its height. A small candle is a candle no taller than half the ATR of the 14 candles before it.
  2. A base is 1 to 3 small candles in a row, right after a candle that is not small.
  3. A demand zone is a base followed by a fast move up. Within the 3 candles after the base, a candle must close at least 2 ATR above the base's highest price. This ATR covers the 14 candles up to and including the base's last candle. No candle from the base up to that close may go below the base's lowest price. The zone runs from the base's lowest price to its highest price, wicks included.
  4. A supply zone is the opposite: a base followed by a fast move down. Within the 3 candles after the base, a candle must close at least 2 ATR below the base's lowest price. No candle up to that close may go above the base's highest price.
  5. When a demand zone forms, a buy limit order (an order that waits at a set price) waits at the top of the zone. The stop-loss goes 1 pip below the zone. The take-profit is twice as far above the entry as the stop-loss is below it. At a supply zone, a sell limit order waits at the bottom of the zone. The stop-loss goes 1 pip above the zone, and the take-profit twice as far below the entry.
  6. Each zone is traded only once. Its order waits for the first time price comes back to the zone. If price touches the order without filling it, the order keeps waiting. The zone is used up when its order fills. It is also used up if price comes back to it while no order waits there, for example because another trade is open.
  7. A zone stays valid for 500 candles after it forms. After that, the rules ignore it.
  8. One trade at a time. While no trade is open, one buy order waits at the nearest fresh demand zone below the price. One sell order waits at the nearest fresh supply zone above it. When one of them fills, the other is cancelled.
  9. Each trade is sized to risk 1% of the account. Some trades risk less (see 'Trade size limits').

The method

How we tested it

The test

Markets
EUR/USD, GBP/USD, USD/JPY, AUD/USD, USD/CAD, USD/CHF, EUR/JPY, GBP/JPY, Gold and Silver
Charts
15-minute, 1-hour and 4-hour candles
Dates
January 2007 to December 2025
Account
$10,000, risking 1% of the account on each trade
Trading costs
Included. Every trade pays that market's normal trading cost: the spread, which is the gap between the buy price and the sell price.

How a test passes

We call a test passed only if it meets all four checks. A strategy can make money in one backtest and still fail one of these checks.

  • At least 100 trades. With fewer trades, a good result could be luck.
  • It made money from 2007 to 2019 and again from 2020 to 2025. This shows whether the strategy kept working in the newer years, not only in the older ones.
  • A profit factor (the money won divided by the money lost) of at least 1.2 from 2020 to 2025, after trading costs.
  • In 95% of 1,000 random shuffles of the trades, the account must not fall more than 30% from its highest point.

Improvements

Can the supply and demand zone strategy be improved?

We tried four changes that traders often make, one at a time, on the same 30 tests. One trades every retest of a zone, not only the first. One waits for a candle to close back out of the zone before entering. One trades only with the trend, and one puts the stop-loss further from the zone. The table below explains each one. We also tried a rule many teachers use: only trade a zone if no opposing zone stands between the entry and the take-profit. It removed no trades, so it is not in the table. A zone forms only after price closes at least 2 ATR away from it, which is further than almost every take-profit. On the way, price reached any opposing zone in between, so that zone was no longer fresh. So our zone rules cannot test this check. If you pick the best change and judge it on the same years you used to pick it, it usually looks better than it really is. So we picked the best change using 2007–2019 only: the change that made money in the most tests. In a tie, we picked the one with the better middle test (the median: half of the tests did better, half did worse). Then we checked it on 2020–2025, the years we did not use to pick it.

Version Made money 2007–2019years used to pick the best version Made money 2020–2025years not used to pick it Made money in both periods Passed all four checks
Standard rules The rules under 'The rules we tested'. Only fresh zones, with a limit order at the near edge of the zone. The stop-loss goes 1 pip beyond the far edge, and the take-profit twice as far from the entry as the stop-loss. 3 of 30middle test −27.5% 4 of 30middle test −16.4% 0 0
Every retest, not only the first Trade a zone each time price comes back to it (a retest), until price reaches the zone's stop-loss level. After a retest, the zone counts again once price has moved back out as far as the take-profit level. Many teachers say a zone gets weaker with each retest, because each one fills some of the orders waiting there. 2 of 30middle test −30.9% 3 of 30middle test −22.4% 1 0
Wait for a close back out of the zone No limit order. Wait for price to come back to the zone. Then wait for a candle to close back out of it: above the top of a demand zone, or below the bottom of a supply zone. Then enter at the next candle's open. The stop-loss is the same. The take-profit is twice as far from that close as the stop-loss. Many traders wait for a sign like this instead of leaving a limit order at the zone. 6 of 30middle test −13.7% 4 of 30middle test −5.2% 0 0
With a 200 EMA trend filterBest on 2007–2019 Only buy at a demand zone whose top is above the 200 EMA, and only sell at a supply zone whose bottom is below it. The 200 EMA is an average of the last 200 closing prices that gives more weight to recent prices. Many teachers say to trade zones only in the direction of the trend. 6 of 30middle test −12.3% 6 of 30middle test −10.8% 0 0
Stop-loss half an ATR beyond the zone The stop-loss goes half an ATR beyond the zone, instead of 1 pip. The take-profit stays twice as far from the entry as the stop-loss, so it moves further away too. Many traders leave this kind of space, so that a short move just past the zone does not close the trade. 4 of 30middle test −18.5% 6 of 30middle test −11.9% 0 0

On 2007–2019, the trend filter made money in 6 of the 30 tests, as many as waiting for a close back out of the zone. Its middle test lost less, 12.3% against 13.7%, so we picked it. On 2020–2025, the years we did not use to pick it, it made money in 6 of the 30 tests, against 4 with the standard rules. AUD/USD, USD/CAD and gold made money in both periods with it, all on 4-hour charts. But each had only 30 to 64 trades in 19 years. Our first check needs at least 100 trades, so the table does not count them. The filter also took fewer than half as many trades, 5,265 against 12,478, and the average trade lost a little more: 0.279R against 0.262R. Across all 5 versions (150 tests), only one test with 100 trades or more made money in both periods: AUD/USD on the 4-hour chart, trading every retest. It made 2.7% in 19 years, about 0.14% a year. The wider stop-loss and waiting for a close cut the loss per trade the most, by about a third, but they still lost money in most tests.

Questions

Questions traders ask

Do supply and demand zones work?

Not in our backtest, after trading costs. With the standard rules, 29 of the 30 tests on 8 currency pairs, gold and silver lost money from 2007 to 2025. On 5 stock indices, 13 of the 15 tests lost money from 2019 to 2025, or 12 without the wrong prices in our DAX data. With no trading costs, the trades made about as much as they lost: 33.6% reached the take-profit, and at 2R, 1 trade in 3 breaks even. From 2007 to 2025, none of the four changes we tried made money in more than 4 of the 30 tests. With the take-profit at 3R instead of 2R, 28 of the 30 tests lost money.

Are fresh supply and demand zones better than retested ones?

Not clearly, in our test. A fresh zone is one price has not come back to yet. We also traded every retest, until price reached the zone's stop-loss level. 27.2% of the trades on a first retest reached the take-profit (3,376 out of 12,404), and 27.0% on a second retest (659 out of 2,445). On a third retest, 31.1% did, but there were only 576 such trades. Trading every retest made money in 1 of the 30 tests from 2007 to 2025, the same as trading fresh zones only.

What is the best timeframe for supply and demand zones?

Of the three charts we tested, the 4-hour chart lost the least, but it still lost money in 9 of the 10 tests. The average trade lost 0.304R on 15-minute charts, 0.208R on 1-hour charts and 0.088R on 4-hour charts. On a bigger chart, the zones are bigger, so the spread is a smaller part of each trade's risk. Daily charts gave too few trades to judge: on all 10 markets together, our rules found only 87 zones and 75 trades in 19 years.

Where should you put the stop-loss on a supply or demand zone?

In our test, a stop-loss half an ATR beyond the zone lost less than one 1 pip beyond it, but it still lost money. We tried no other distances. With the wider stop-loss, the average trade lost 0.166R, against 0.262R, because the spread was a smaller part of each trade's risk. It made money in 3 of the 30 tests from 2007 to 2025: AUD/USD, USD/CAD and USD/CHF, all on 4-hour charts. None of them made money in both 2007–2019 and 2020–2025.

Keep exploring

Related strategies we tested

Support & resistance Break and retest strategy backtest Made money in 9 of 30 tests, 7 of them in both periods. Best: Nasdaq 100, 1-hour, +67% Pivot points Pivot point bounce strategy backtest on forex, gold and indices Made money in 3 of 27 tests, 3 of them in both periods. Best: Nasdaq 100, 5-minute, +245% Support & resistance Support and resistance breakout strategy backtest Made money in 10 of 30 tests, 5 of them in both periods. Best: GBP/JPY, 4-hour, +93%
The strategy code we ran

This is the exact code from the BacktestingMax strategy engine. Paste it into the strategy editor in the app to run it on any market.

class SupplyAndDemandZones(Strategy):
    """Supply and demand zones: buy when price comes back to a demand zone, sell when it
    comes back to a supply zone. Traders draw zones by hand; these rules draw them the same
    way every time.
    ATR(14) is the average height of a candle, from high to low, over the last 14 candles
    (average true range, Wilder's smoothing; a gap from the previous close counts as part
    of the height). A small candle is one whose height is at most half the ATR of the 14
    candles before it.
    A demand zone is a base of 1 to 3 small candles in a row, with a bigger candle before
    them, right before a fast move up. The move up: within the 3 candles after the base, a
    candle closes at least 2 x ATR above the base's highest high, and no candle from the
    base up to that one goes below the base's lowest low. The ATR is the one at the base's
    last candle. The zone runs from the base's lowest low to its highest high (wicks
    included), and it is confirmed on the candle whose close completes the move. A supply
    zone is the mirror image: a base right before a fast move down, with a close at least
    2 x ATR below the base's lowest low and no candle up to that one above the base's
    highest high.
    Standard (all switches off):
      1. A buy limit order waits at the top of a demand zone. Stop-loss 1 pip below the
         zone's bottom. Take-profit at 2R: twice the distance from the entry to the
         stop-loss. A supply zone mirrors it: a sell limit order at the zone's bottom,
         stop-loss 1 pip above its top.
      2. Only the first return to a zone is traded (a fresh zone). A zone is used up when
         its order fills, or when price comes back to its entry while no order waits there
         (a trade is open, or a nearer zone has the order). Price reaching the entry is not
         a fill (see "Fills"): an order that did not fill keeps waiting.
      3. A zone counts for the 500 candles after it is confirmed.
      4. One trade at a time. While no trade is open, one buy order waits at the nearest
         demand zone below the price and one sell order at the nearest supply zone above
         it, because price reaches those zones first. When a trade opens, the other order
         is cancelled.
      5. Size every trade so that the stop-loss costs 1% of the account.
    Fills (engine 1.6.0): the candles are bid prices. A buy limit order (a demand zone's
    entry, or a sell trade's take-profit) fills only when the ask, one spread above the
    bid, comes down to it: the low has to reach the limit minus the spread. A sell limit
    order fills when the bid reaches it.
    Skipped candles: flat candles (high = low: no price moved, e.g. a holiday in the data)
    and candles that open on a Friday at 17:00 New York time or later (a few minutes of
    prices after the weekly close in some data). They are never base candles or part of a
    move, and they don't count in the ATR, the 200 EMA or any count of candles.
    The changes, one at a time:
      retest  = 1  trade every return while the zone holds, not only the first. After a
                   return, the zone counts again once price has gone back as far as the
                   take-profit level (2R from the entry). The zone ends when price reaches
                   the stop-loss level.
      confirm = 1  no limit order: wait for price to come back to the zone and for a
                   candle to close back out of it (above the top of a demand zone, below
                   the bottom of a supply zone), then enter at the next candle's open.
                   Same stop-loss; take-profit 2R from that close.
      trend   = 1  only buy when the zone's top is above the 200 EMA, and only sell when
                   the zone's bottom is below it (the EMA of the closes of the last 200
                   candles)
      buffer  = 1  stop-loss half an ATR beyond the zone instead of 1 pip (the ATR at the
                   base's last candle). The take-profit stays at 2R, so it moves further
                   away too.
      room    = 1  only trade a zone if no opposing zone (a supply zone above a buy, a
                   demand zone below a sell) starts before the take-profit. With these
                   zone rules it never removed a trade: a zone forms only after a close at
                   least 2 x ATR away, which leaves the opposing zones beyond the 2R
                   take-profit.
    """
    params = {"base_max": Param(type=float, default=0.5, min=0.1, max=2.0),
              "base_len": Param(type=int, default=3, min=1, max=6),
              "depart": Param(type=float, default=2.0, min=0.5, max=10.0),
              "window": Param(type=int, default=3, min=1, max=10),
              "rr": Param(type=float, default=2.0, min=0.5, max=10.0),
              "expiry": Param(type=int, default=500, min=1, max=5000),
              "retest": Param(type=int, default=0, min=0, max=1),
              "confirm": Param(type=int, default=0, min=0, max=1),
              "trend": Param(type=int, default=0, min=0, max=1),
              "buffer": Param(type=int, default=0, min=0, max=1),
              "room": Param(type=int, default=0, min=0, max=1)}
    lookback = 5
    def init(self, ctx):
        self.ny = ctx.clock("America/New_York")
        self.n = 0              # candles counted so far (skipped candles are not counted)
        self.prev = None        # the last counted candle: [n, open, high, low, close]
        self.atr = None
        self.trs = []
        self.ema = None         # the 200 EMA of the counted closes
        self.first_closes = []
        self.run = []           # small candles in a row so far: [n, open, high, low, close, atr]
        self.before_run = None  # the counted candle just before that run
        self.bases = []         # bases waiting for their move away
        self.zones = []         # confirmed zones still in play
        self.orders = {}        # side -> [zone, order] waiting now
        self.entered = False    # confirm = 1: an entry was sent on this candle
    def on_bar(self, ctx):
        p = ctx.params
        o, h, l, c = ctx.open[0], ctx.high[0], ctx.low[0], ctx.close[0]
        self.entered = False
        # A zone whose order waited on this candle is used only if the engine filled that
        # order (price reaching the entry is not a fill). An unfilled order keeps waiting.
        filled = []
        for side, (zone, order) in list(self.orders.items()):
            if order.fill_price is not None:
                filled.append(zone)
                del self.orders[side]
        waiting = [zone for zone, order in self.orders.values()]
        for z in self.zones:
            self.update_zone(ctx, z, h, l, c,
                             any(z is f for f in filled), any(z is w for w in waiting))
        after_close = (self.ny.weekday == 4 and self.ny.minute_of_day >= 17 * 60) or self.ny.weekday == 5
        if h > l and not after_close:
            self.count_candle(ctx, o, h, l, c)
        # A zone counts for the 500 candles after the one that confirmed it.
        self.zones = [z for z in self.zones
                      if z["state"] != "used" and self.n - z["formed"] < p.expiry]
        if ctx.position is not None or p.confirm == 1:
            # One trade at a time: no order waits while a trade is open. With confirm = 1
            # the entries are market orders, sent in update_zone.
            for side, (zone, order) in list(self.orders.items()):
                ctx.cancel_order(order.order_id)
            self.orders = {}
            return
        for side in (1, -1):
            mine = [z for z in self.zones if z["side"] == side and z["state"] == "ready"
                    and self.allowed(ctx, z)]
            # The nearest zone: the highest demand entry below the price, the lowest supply
            # entry above it.
            best = None
            if mine:
                best = max(mine, key=lambda z: z["entry"]) if side > 0 else min(mine, key=lambda z: z["entry"])
            current = self.orders.get(side)
            if current is not None and current[0] is not best:
                ctx.cancel_order(current[1].order_id)  # the zone ran out, or a nearer one formed
                del self.orders[side]
            if not ctx.gate("zone_waiting", best is not None) or side in self.orders:
                continue
            order = self.enter(ctx, best, best["entry"], limit=True)
            if order is not None:
                self.orders[side] = [best, order]
    def update_zone(self, ctx, z, h, l, c, filled, has_order):
        """What this candle did to one zone: a return, a break, or price moving away."""
        p = ctx.params
        s = z["side"]
        came_back = (l <= z["entry"]) if s > 0 else (h >= z["entry"])
        broken = (l <= z["stop"]) if s > 0 else (h >= z["stop"])
        if z["state"] == "ready":
            if not (filled or (came_back and not has_order)):
                return
            z["returns"] += 1
            if p.confirm == 1:
                # Price is back at the zone: wait for a close back out of it, if no trade
                # is open now. A return while a trade is open uses the zone up.
                z["state"] = "back" if ctx.position is None and not broken else "used"
            elif p.retest == 1:
                z["state"] = "away" if not broken else "used"
            else:
                z["state"] = "used"
            if z["state"] != "back":
                return
        if z["state"] == "back":
            if broken:
                z["state"] = "used"
            elif (c - z["entry"]) * s > 0:
                # The candle closed back out of the zone: enter at the next open.
                if ctx.position is None and not self.entered:
                    if self.enter(ctx, z, c, limit=False) is not None:
                        self.entered = True
                z["state"] = "used"
        elif z["state"] == "away":
            # retest = 1: the zone counts again once price is back at the take-profit level.
            if broken:
                z["state"] = "used"
            elif (h >= z["target"]) if s > 0 else (l <= z["target"]):
                z["state"] = "ready"
    def allowed(self, ctx, z):
        """The trend and room switches: may this zone have an order now?"""
        p = ctx.params
        s = z["side"]
        if p.trend == 1 and (self.ema is None or (z["entry"] - self.ema) * s <= 0):
            return False
        if p.room == 1:
            for other in self.zones:
                if other["side"] == -s and other["state"] != "used":
                    if (other["entry"] - z["entry"]) * s > 0 and (z["target"] - other["entry"]) * s > 0:
                        return False
        return True
    def enter(self, ctx, z, entry, limit):
        """Send the order: a limit order at the zone's entry, or (confirm = 1) a market
        order at the next open. Returns the order, or None if it could not be sent."""
        p = ctx.params
        s = z["side"]
        stop = z["stop"]
        size = ctx.size_by_risk_pct(0.01, stop=stop, entry=entry)
        if not ctx.gate("size_at_least_the_minimum", size > 0):
            z["state"] = "used"     # too small to trade at 1% risk: skip this zone
            return None
        target = entry + s * p.rr * abs(entry - stop)
        if s > 0:
            order = ctx.buy(size=size, limit=entry if limit else None, sl=stop, tp=target, tag="demand")
        else:
            order = ctx.sell(size=size, limit=entry if limit else None, sl=stop, tp=target, tag="supply")
        if order is None:
            z["state"] = "used"     # rejected by the broker rules: skip this zone
        return order
    def count_candle(self, ctx, o, h, l, c):
        """Add one counted candle: the ATR, the 200 EMA, the bases and the new zones."""
        p = ctx.params
        self.n += 1
        n = self.n
        atr_before = self.atr
        prev_close = self.prev[4] if self.prev else None
        tr = h - l if prev_close is None else max(h - l, abs(h - prev_close), abs(l - prev_close))
        if self.atr is None:
            self.trs.append(tr)
            if len(self.trs) == 14:
                self.atr = sum(self.trs) / 14
        else:
            self.atr = (self.atr * 13 + tr) / 14
        if self.ema is None:
            self.first_closes.append(c)
            if len(self.first_closes) == 200:
                self.ema = sum(self.first_closes) / 200
        else:
            self.ema += (c - self.ema) * 2 / 201
        small = atr_before is not None and h - l <= p.base_max * atr_before
        if small:
            if not self.run:
                self.before_run = self.prev
            self.run.append([n, o, h, l, c, self.atr])
        else:
            # A bigger candle ends the run. 1 to 3 small candles after a bigger one are a
            # base, and this candle is the first of the move away from it.
            if 1 <= len(self.run) <= p.base_len and self.before_run is not None:
                self.bases.append({"last": self.run[-1][0], "len": len(self.run),
                                   "top": max(x[2] for x in self.run),
                                   "bottom": min(x[3] for x in self.run),
                                   "atr": self.run[-1][5], "before": self.before_run,
                                   "up_ok": True, "down_ok": True})
            self.run = []
        still = []
        for b in self.bases:
            if n - b["last"] > p.window:
                continue
            # The move must leave the base without going back past its other side.
            if l < b["bottom"]:
                b["up_ok"] = False
            if h > b["top"]:
                b["down_ok"] = False
            if b["up_ok"] and c >= b["top"] + p.depart * b["atr"]:
                self.new_zone(ctx, b, 1, n, c)
            elif b["down_ok"] and c <= b["bottom"] - p.depart * b["atr"]:
                self.new_zone(ctx, b, -1, n, c)
            elif b["up_ok"] or b["down_ok"]:
                still.append(b)
        self.bases = still
        self.prev = [n, o, h, l, c]
    def new_zone(self, ctx, b, side, n, c):
        """A confirmed zone: its entry, stop-loss and take-profit."""
        p = ctx.params
        # The stop-loss goes 1 pip beyond the zone (buffer = 1: half an ATR beyond it).
        gap = 0.5 * b["atr"] if p.buffer == 1 else ctx.pip_size
        if side > 0:
            entry, stop = b["top"], b["bottom"] - gap
        else:
            entry, stop = b["bottom"], b["top"] + gap
        self.zones.append({"side": side, "top": b["top"], "bottom": b["bottom"],
                           "entry": entry, "stop": stop,
                           "target": entry + side * p.rr * abs(entry - stop),
                           "formed": n, "time": ctx.bar_time, "returns": 0, "state": "ready",
                           "base_len": b["len"], "atr": b["atr"], "before": b["before"],
                           "move": (c - entry) * side / b["atr"], "move_candles": n - b["last"]})

Your turn

Test the supply and demand zone strategy yourself

Change the settings, the market or the stop-loss and see the result in seconds. Ask the BacktestingMax AI: Backtest supply and demand zones on EUR/USD, 4-hour chart: a demand zone is a base of 1-3 candles, each at most half the 14-candle ATR, followed within 3 candles by a close at least 2 ATR above the base; buy limit at the zone's top the first time price comes back to it, stop 1 pip below the zone, take-profit at twice the stop distance; mirror for supply zones.

Try it free in BacktestingMax

Free account. No credit card needed.

See every strategy we tested Browse strategies shared by traders

Backtest on historical data with trading costs, run by BacktestingMax. Past results do not guarantee future results, and nothing here is financial advice. Updated 16 November 2026.