Strategies we backtested Liquidity Sweep of Previous Day High/Low

Tested by BacktestingMax

Liquidity sweep of the previous day's high and low: backtest

Does a liquidity sweep of the previous day's high or low work?

Mostly no. As a fixed rule, a liquidity sweep of the previous day's high or low made money in only 3 out of 16 backtests after trading costs, from 2020 to 2025. A liquidity sweep means price goes past a level where many traders have their stop-loss orders, then turns back. The previous day's high and low are the highest and lowest prices of the day before. Educators define this idea in different ways, so our exact rules are listed below. We tested 8 markets, each on a 5-minute and a 15-minute chart. The 3 tests that made money were all on US stock indices: the Dow Jones twice and the Nasdaq 100 once, mainly in 2020–2023. None of them made money in both 2020–2023 and 2024–2025. Currency pairs, gold and silver lost money. We also tried a change: trading only inside the two kill zones, the hours of the day that ICT traders watch most. We picked it using 2020–2023 only. With it, 3 tests made money, and all 3 made money in both periods. But the gains in 2024–2025 were small, and no test passed all four of our checks. A backtest does not promise future results.

16 backtests 2020–2025 Trading costs included Tested 23 November 2026

Where it worked 16 backtests
Made money
3
of 16 tests, with the standard rules
Made money in both periods
0
2020–2023 and again 2024–2025
Best backtest
+54%
Dow Jones, 5-minute chart: account growth 2020–2025
Only in the kill zones
3
tests made money in both periods, compared with 0 with the standard rules

The results

Results on every market

Each box shows one backtest of the Liquidity Sweep of Previous Day High/Low with the standard rules, from 2020 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 2020–2023 and 2024–2025, or passed all four of our checks (see "How a test passes" further down).

Market 5-minute 15-minute
EUR/USD −56% Lost money −67% Lost money
GBP/USD −75% Lost money −51% Lost money
USD/JPY −70% Lost money −43% Lost money
Gold −46% Lost money −23% Lost money
Silver −93% Lost money. Account down 90% by Dec 2023 −78% Lost money
Nasdaq 100 +8% Made money overall, lost in one period −27% Lost money
S&P 500 −37% Lost money −48% Lost money
Dow Jones +54% Made money overall, lost in one period +38% Made money overall, lost in one period
All the numbers, test by test
Market Chart Trades Win rate Profit factor Result Max drawdown 2020–2023 2024–2025 Monte Carlo drawdown Trading costs
EUR/USD 5-minute 993 23.9% 0.89 −55.5% −57.7% −46.4% −16.9% −78.1% $3,410
EUR/USD 15-minute 828 29.7% 0.79 −66.8% −67.8% −55.0% −26.2% −77.2% $1,564
GBP/USD 5-minute 1,058 22.4% 0.85 −74.8% −78.8% −49.6% −50.1% −86.3% $3,900
GBP/USD 15-minute 827 31% 0.88 −50.6% −55.5% −36.3% −22.5% −70.0% $2,411
USD/JPY 5-minute 953 23.6% 0.81 −70.3% −76.4% −66.7% −10.7% −82.8% $2,364
USD/JPY 15-minute 778 33.2% 0.90 −42.6% −49.1% −33.5% −13.6% −65.2% $1,784
Gold 5-minute 924 26.7% 0.92 −46.4% −61.7% −24.2% −29.2% −73.3% $4,132
Gold 15-minute 759 34.8% 0.95 −22.7% −52.0% −5.9% −17.9% −56.0% $2,500
Silver 5-minute 756 19.8% 0.62 −93.0% −94.4% −89.9% −30.9% −94.2% $4,092
Silver 15-minute 731 28.9% 0.72 −78.1% −80.1% −68.0% −31.6% −82.4% $3,389
Nasdaq 100 5-minute 1,026 25% 1.01 +7.8% −46.7% +10.3% −2.4% −69.2% $3,876
Nasdaq 100 15-minute 851 31.6% 0.95 −27.4% −53.8% −13.4% −16.2% −62.4% $1,666
S&P 500 5-minute 1,048 25.4% 0.94 −36.7% −64.8% −41.1% +7.4% −74.2% $3,127
S&P 500 15-minute 841 32.2% 0.89 −47.5% −57.5% −36.8% −16.9% −69.0% $1,509
Dow Jones 5-minute 1,017 25.6% 1.05 +53.8% −42.4% +59.6% −3.7% −63.0% $4,153
Dow Jones 15-minute 839 34.2% 1.05 +37.9% −45.0% +40.7% −2.0% −48.6% $1,860

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. 2020–2023 and 2024–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 Dow Jones, 5-minute chart +53.8% from 2020 to 2025
Middle test (median): half of the 16 did better, half did worse Gold, 5-minute chart −46.4% from 2020 to 2025

What we found

What the 16 backtests show

  1. The liquidity sweep made money only on US stock indices, mainly the Dow Jones, and mostly in 2020–2023. With the standard rules, the average trade, in R (see 'Risk per trade'), was +0.011R on US indices, −0.087R on currency pairs and −0.145R on gold and silver. Per year, the Dow Jones trades of both charts made +17.9R in 2020, +78.2R in 2021 and +40.5R in 2022. Then they made −26.9R in 2023, −8.7R in 2024 and +15.4R in 2025. Price reached the take-profit, the other side of the previous day's range, in 27.7% of all trades. That is the win rate. On US indices, sells made +0.038R per trade (3,112 trades) and buys lost 0.023R (2,510 trades), although the indices rose a lot from 2020 to 2025 (buy and hold: Dow Jones +68.4%, S&P 500 +111.9%, Nasdaq 100 +188.7%). On gold and silver, sells lost 0.222R per trade (1,743 trades) and buys lost 0.052R (1,427 trades).

  2. A few big winners kept the average trade from being much worse. 412 out of 14,229 standard trades made more than 5R. The biggest was +22.0R: a USD/JPY 5-minute sell opened on 21 June 2022. Without those 412 trades, the average trade falls from −0.061R to −0.293R. Trades stayed open for a long time, because there is no time exit. The median trade (half lasted longer, half shorter) lasted 7.4 hours. 24.5% stayed open for more than 24 hours, 9.2% for more than 72 hours, and the longest for 42 days. 1,721 trades (12.1%) stayed open over a weekend. The weekend caused the biggest loss: −5.9R, a USD/JPY 15-minute sell opened on Friday 3 October 2025 at 03:45 New York time. Price jumped past the stop while the market was closed, and the trade was stopped out when trading reopened on Sunday 5 October at 17:01 New York time. The 5-minute version of that trade lost 5.6R.

  3. Waiting for the structure break mattered. We tested a version that buys right after the first candle that closes back above the previous day's low, with no structure break. It won 14.3% of its trades, compared with 27.7% with the standard rules. Its average trade was −0.099R, compared with −0.061R. 0 out of 16 tests made money in 2020–2023. 5 accounts fell below 10% of the starting money at some point, compared with 1 with the standard rules. Its stop-losses were closer to the entry, because the candle that closes back above the previous day's low usually closes near the low of the sweep. So the spread and price gaps cost more of each trade: 13.3% of its stopped trades lost more than 1.2R, compared with 2.0% with the standard rules. Gold and silver suffered most, at −0.344R per trade.

  4. Entries from late morning to the New York close lost the most. With the standard rules, we grouped the trades by the New York time of the entry. Trades entered from 10:00 to 17:00 lost 0.109R each on average, the worst group (3,913 trades). Trades entered from 17:00 to 02:00 lost 0.030R (4,914 trades). On US indices alone, trades entered from 17:00 to 02:00 New York time (the Asian trading hours, before London opens), did best of any group: +0.138R on 1,735 trades. The afternoon group lost 0.125R on 1,946 trades. The kill zone version leaves out the Asian hours, so it misses the best group for US indices. The first chart below shows each time of day.

Time of day

Entries from 10:00 to 17:00 New York time lost the most

Each bar is the average result per trade, in R, after trading costs. R is the money a trade risked: 1% of the account just before the trade. We group the trades with the standard rules by the New York time when the trade opened. In each pair, the first bar is all 8 markets and the second is the 3 US indices (Nasdaq 100, S&P 500, Dow Jones).

  • 17:00–02:00, all markets4,914 trades −0.030R
  • 17:00–02:00, US indices1,735 trades +0.138R
  • 02:00–05:00, all markets2,129 trades −0.019R
  • 02:00–05:00, US indices714 trades +0.036R
  • 05:00–07:00, all markets1,011 trades −0.096R
  • 05:00–07:00, US indices319 trades −0.009R
  • 07:00–10:00, all markets2,262 trades −0.071R
  • 07:00–10:00, US indices908 trades +0.046R
  • 10:00–17:00, all markets3,913 trades −0.109R
  • 10:00–17:00, US indices1,946 trades −0.125R

All 8 markets and both charts are added together, with the standard rules, from 2020 to 2025. The average trade is the result of each trade in R, after trading costs, averaged over all the trades in the group, so every trade counts the same. The time is the New York time of the trade's entry. The two kill zones of the kill zone version are 02:00–05:00 and 07:00–10:00.

Kill zone version, each market

With the kill zones, 3 out of 16 tests made money in both periods: the Dow Jones and the Nasdaq 100

One row for each market and chart. Each number is the change in a $10,000 account that risks 1% per trade, after trading costs. The last two columns split the kill zone result into the older years and the newer years.

Market Chart Standard rules 2020–2025 Kill zones 2020–2025 Kill zones 2020–2023 Kill zones 2024–2025
EUR/USD 5-minute −55.5% −32.3% −35.1% +4.3%
EUR/USD 15-minute −66.8% −35.8% −41.6% +10.0%
GBP/USD 5-minute −74.8% −39.4% −20.9% −23.4%
GBP/USD 15-minute −50.6% −12.8% −9.5% −3.6%
USD/JPY 5-minute −70.3% −50.1% −35.5% −22.6%
USD/JPY 15-minute −42.6% −46.8% −25.6% −28.5%
Gold 5-minute −46.4% −24.0% −17.0% −8.5%
Gold 15-minute −22.7% −20.6% −8.5% −13.2%
Silver 5-minute −93.0% −76.5% −73.9% −10.1%
Silver 15-minute −78.1% −56.9% −60.0% +7.9%
Nasdaq 100 5-minute +7.8% +68.0% +55.6% +8.0%
Nasdaq 100 15-minute −27.4% −8.5% −8.2% −0.3%
S&P 500 5-minute −36.7% −6.0% +25.0% −24.8%
S&P 500 15-minute −47.5% −4.9% +10.6% −14.0%
Dow Jones 5-minute +53.8% +95.3% +66.0% +17.6%
Dow Jones 15-minute +37.9% +40.0% +34.4% +4.2%

The 2020–2023 and 2024–2025 columns are each period's own account change. The newer years start from the balance at the end of 2023, so the two periods multiply rather than add. For example, +66.0% and then +17.6% gives +95.3%. The kill zone version made 10,248 trades. The standard rules opened fewer trades in the kill zone hours, because with the kill zones a break outside the kill zones no longer used up the day's setup. In this version, a later break inside a kill zone can still trigger.

The strategy

What the Liquidity Sweep of Previous Day High/Low is

A liquidity sweep of the previous day's high or low is an idea from the ICT (Inner Circle Trader) and smart money community. The previous day's high is the highest price of the day before, and the previous day's low is the lowest. Many traders leave orders just beyond these two prices, such as stop-losses: orders that close a trade automatically at a set price. The idea is that price goes past the high or the low, takes those orders, and then turns. This move is called a liquidity sweep. A buy setup looks like this. Price trades below yesterday's low, then a candle closes back above it. Traders then wait for a structure break on a short chart, such as the 5-minute or 15-minute chart. A structure break, also called a market structure shift, means a candle closes above the most recent swing high. A swing high is a candle whose high is higher than the highs of the candles around it. After that, traders buy and aim for the other side of yesterday's range, which is yesterday's high. A sell setup is the mirror image. Educators describe this setup in slightly different ways. On this page we use the exact rules below, so that every trade can be checked.

Markets
8 markets: EUR/USD, GBP/USD, USD/JPY, gold, silver, Nasdaq 100, S&P 500 and Dow Jones. We left out Bitcoin. Our backtests do not include it for now, because our cost model for it is not right yet.
Charts
The 5-minute and the 15-minute chart. That gives 16 tests for each version.
Years
2020 to 2025. We also look at two periods: 2020–2023 (older years) and 2024–2025 (newer years). A trade counts in the period in which it closed. Each test starts with a $10,000 account.
Previous day
The day changes at 17:00 New York time. On Monday, the previous day is Friday. Candles from Friday 17:00 to Sunday 17:00 are ignored, and flat candles (high equals low) never count.
Swings
A candle whose high is higher than the highs of the 2 candles before and the 2 after. We know it only after the second candle after it has closed. Swing lows are the mirror image. We use the chart's own candles.
Entry
At the next candle's open, after the signal candle has closed. The trade is a market order (a trade at the current price). The size is worked out from the signal candle's close, not from the entry price.
Exits
The stop-loss and the take-profit never move. There is no time exit, so a trade can stay open for days and over weekends.
One trade at a time
A signal that comes while a trade is open is skipped, and there is no second setup on that side that day. A trade that closes inside a candle can still count as open when that candle closes, so a signal on that candle is skipped too.
Risk per trade
1% of the account just before the trade. R is the money a trade risked, so a loss of 1R is a loss of 1% of the account. Price can jump past the stop, for example over a weekend, so a loss can be bigger than 1R. With the standard rules, 30 trades lost more than 1.5R.
Trade size and leverage limit
Our backtest engine does not allow a trade worth more than 30 times the account, which is a typical limit at a retail CFD broker. Trade sizes are rounded to the market's smallest step: 0.01 lot on currencies, gold and silver, and 0.1 on the indices. The trade opens at the next candle's open, not at the signal candle's close, and the size comes from that close. So a trade that hit its stop-loss could lose a little less or a little more than 1R. With the standard rules, 7.1% of the trades that hit the stop-loss lost less than 0.9R.
Trading costs
Each trade pays trading costs: the gap between the buy price and the sell price, called the spread. There is no commission. On currency pairs, the spread is in pips. A pip is 0.0001, and 0.01 on USD/JPY. The spread is 0.8 pips on EUR/USD, 1.2 on GBP/USD and 0.9 on USD/JPY. It is $0.30 an ounce on gold and $0.020 on silver. On the indices, it is in index points: 1.5 points on the Nasdaq 100, 0.4 on the S&P 500 and 2.0 on the Dow Jones. The silver, Nasdaq 100 and Dow Jones spreads are wider than our backtest engine's default, to match a retail broker. A market entry pays half the spread, and a stop-loss exit pays half. The take-profit is a limit order (an order that waits at a set price), so it pays no spread. It fills only when price trades through that price, not when price only touches it. There are no overnight fees. A stop-loss fills at its price, unless price jumps past it (a gap). Then it fills at the first price after the gap.
Wrong prices
We checked for wrong prices. On silver, some minutes on 1 June 2023 were quoted far from the real price. They did not touch any trade with the standard rules or the kill zone version. They touched 3 trades of the version without the structure break, which made −4.6R together.

The rules we tested

  1. The trading day runs from 17:00 to 17:00 New York time, the usual day change for currencies. The previous day's high and low come from that day. On Monday, the previous day is Friday. Candles from Friday 17:00 to Sunday 17:00 are ignored. Flat candles, where the high equals the low (market holidays), never count.
  2. A swing high is a candle whose high is higher than the highs of the 2 candles before it and the 2 candles after it. It is known only when the second candle after it has closed. A swing low is the mirror image. Swings come from the chart's own candles, so a 5-minute chart uses 5-minute swings.
  3. Buy, step 1, the sweep: price trades below the previous day's low.
  4. Buy, step 2: a candle closes back above the previous day's low.
  5. Buy, step 3, the structure break: a candle closes above the most recent swing high. It can be the same candle as in step 2. If a candle closes below the previous day's low again before the break, step 2 starts again: we wait for a new close back above that low.
  6. Buy at the open of the next candle. Stop-loss: the lowest price of the trading day up to the signal candle. That is the lowest point the sweep reached. Take-profit: the previous day's high.
  7. For a sell, everything is mirrored. Price trades above the previous day's high, a candle closes back below it, then a candle closes below the most recent swing low. Sell at the next candle's open, with the stop-loss at the highest price of the trading day up to the signal candle and the take-profit at the previous day's low.
  8. There is at most one buy setup and one sell setup per day: the first one. If that first setup is skipped because a trade is open, there is no second buy setup (or sell setup) that day.
  9. Risk 1% of the account on each trade. The trade size comes from the distance between the signal candle's close and the stop-loss.
  10. Hold one trade at a time. The stop-loss and the take-profit never move, and there is no time exit. A trade can stay open for days and over weekends.

The method

How we tested it

The test

Markets
EUR/USD, GBP/USD, USD/JPY, Gold, Silver, Nasdaq 100, S&P 500 and Dow Jones
Charts
5-minute and 15-minute candles
Dates
January 2020 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 2020 to 2023 and again from 2024 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 2024 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 Liquidity Sweep of Previous Day High/Low be improved?

We tried 3 changes that traders make to this idea: trading only in the kill zones, a take-profit at 2R, and no structure break. Each change ran on the same 16 tests. A change picked on the same years it is judged on will almost always look good. So we picked the change using 2020–2023 only. Then we checked it on 2024–2025, the years we did not use to pick it. We picked the version with the most tests that made money in 2020–2023. That was the kill zone version, with 5 out of 16. The 2R take-profit had 4, the standard rules 3 and the version without the structure break 0. These counts are for each period alone: a test can make money in one period and still lose over 2020–2025.

Version Made money 2020–2023years used to pick the best version Made money 2024–2025years not used to pick it Made money in both periods Passed all four checks
Standard rules The rules under 'The rules we tested': a sweep of the previous day's high or low, a close back inside, a structure break, and the take-profit at the previous day's other side. 3 of 16middle test −36.5% 1 of 16middle test −16.9% 0 0
Only in the kill zonesBest on 2020–2023 Only take a trade when the candle that breaks structure closes inside one of ICT's two kill zones: 02:00–05:00 or 07:00–10:00 New York time. A kill zone is a time window that ICT traders watch. A break outside the kill zones does not use up the day's setup, so a later break inside a kill zone can still trigger. 5 of 16middle test −13.2% 6 of 16middle test −6.0% 3 0
With a 2R take-profit The take-profit is 2R: twice the distance from the signal candle's close to the stop-loss, instead of the previous day's other side. 4 of 16middle test −27.2% 5 of 16middle test −11.2% 2 0
Without the structure break No structure break (market structure shift). The trade starts at the open after the first candle that closes back above the previous day's low (or below the previous day's high for a sell). 0 of 16middle test −69.7% 6 of 16middle test −15.4% 0 0

With the standard rules, 3 out of 16 tests made money from 2020 to 2025, and none made money in both periods. The kill zone version, the change we picked, also had 3 out of 16 tests that made money, but all 3 made money in both periods. They were Dow Jones 5-minute +95.3% (+66.0% in 2020–2023 and +17.6% in 2024–2025), Nasdaq 100 5-minute +68.0% (+55.6% and +8.0%) and Dow Jones 15-minute +40.0% (+34.4% and +4.2%). So the kill zone version held up in 2024–2025 on these 3 tests. But the gains in those years were small, from +4.2% to +17.6%, and no test passed all four of our checks. One check shuffles the trades into a random order 1,000 times (a Monte Carlo test). In 95% of those runs, the account must not fall more than 30% from its highest point. For these 3 tests, that fall was 42.5% to 52.7%. With the kill zones, all 5 currency and metal markets lost on both charts, from −12.8% (GBP/USD 15-minute) to −76.5% (silver 5-minute). The S&P 500 lost 6.0% (5-minute) and 4.9% (15-minute). 2R take-profit: it made money on 3 out of 16 tests: Nasdaq 100 5-minute +74.3% (+62.4% and +7.3%), Dow Jones 15-minute +64.7% (+40.7% and +17.1%) and Dow Jones 5-minute +8.9% (+14.2% and −4.7%). Only 2 of them made money in both periods, the Nasdaq 100 5-minute and the Dow Jones 15-minute. The 2R take-profit's win rate was 33.2%, and its average trade was −0.047R, compared with −0.061R with the standard rules. No structure break: it lost more per trade. 2 out of 16 tests made money: Dow Jones 5-minute +74.1% and Dow Jones 15-minute +44.4%. Both lost in 2020–2023 (−38.2% and −19.5%) and made all their gains in 2024–2025 (+181.5% and +79.5%). Its win rate was only 14.3%, and its average trade was −0.099R. We do not claim that any of these changes works.

Questions

Questions traders ask

What is a liquidity sweep of the previous day's high or low?

The previous day's high and low are the highest and lowest prices of the day before. Many traders leave stop orders just past them. A liquidity sweep happens when price goes past one of these prices, takes those orders, and then turns back. In our test, a buy setup needs 3 steps. Price trades below yesterday's low, a candle closes back above it, and a candle closes above the most recent swing high (a structure break). Then we buy at the next candle's open and aim for yesterday's high. A sell setup is the mirror image. Educators define this in different ways, so our exact rules are on this page.

Does a liquidity sweep of the previous day's high or low work? Is it profitable?

Mostly no in our test. We ran 16 backtests from 2020 to 2025, with trading costs: 8 markets, each on a 5-minute and a 15-minute chart. Only 3 made money: the Dow Jones on both charts and the Nasdaq 100 on the 5-minute chart. None of them made money in both 2020–2023 and 2024–2025. The S&P 500, the currency pairs, gold and silver all lost money. With the standard rules, the best backtest result was +53.8% (Dow Jones, 5-minute), and the worst was −93.0% (silver, 5-minute). A backtest does not promise future results.

Which markets and charts work best for this strategy?

Only US stock indices made money, and mostly the Dow Jones. With the standard rules, US indices made +0.011R per trade on average, currency pairs lost 0.087R and gold and silver lost 0.145R. R is the money a trade risked. The Dow Jones made money on both the 5-minute chart (+53.8%) and the 15-minute chart (+37.9%). The Nasdaq 100 made money only on the 5-minute chart (+7.8%). The S&P 500 lost on both charts. Most of the Dow Jones gains came in 2020–2023.

Should you trade the liquidity sweep only in the kill zones?

It helped in our test, but we cannot say it works. With the kill zones, 3 out of 16 tests made money, and all 3 made money in both 2020–2023 and 2024–2025: the Dow Jones on both charts and the Nasdaq 100 on the 5-minute chart. But we picked the kill zones using 2020–2023 only, the gains in 2024–2025 were small (+4.2% to +17.6%), and no test passed all four of our checks. All currency pairs, gold and silver lost money with the kill zones too. On US indices, the best entries were in the Asian hours, from 17:00 to 02:00 New York time, which the kill zones leave out.

Keep exploring

Related strategies we tested

ICT & smart money Candle Range Theory (CRT) backtest Made money in 2 of 24 tests, 0 of them in both periods. Best: GBP/USD, daily, +7% ICT & smart money Order block strategy backtest Made money in 3 of 30 tests, 1 of them in both periods. Best: USD/JPY, 4-hour, +29% ICT & smart money ICT Power of 3 (AMD) backtest on NQ, ES and gold futures Made money in 4 of 10 tests, 2 of them in both periods. Best: YM (Dow futures), 15-minute, +46% ICT & smart money Fair value gap (FVG) retest strategy backtest Made money in 2 of 24 tests, 0 of them in both periods. Best: USD/JPY, 1-hour, +22% ICT & smart money ICT New York killzone backtest on NQ and ES futures Made money in 4 of 10 tests, 1 of them in both periods. Best: MGC (Micro Gold), 15-minute, +36% ICT & smart money ICT Silver Bullet backtest on NQ and ES futures Made money in 0 of 10 tests, 0 of them in both periods. Best: MGC (Micro Gold), 5-minute, −2%
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 LiquiditySweepOfPreviousDayHighLow(Strategy):
    """Liquidity sweep of the previous day's high or low: price takes the stops beyond
    yesterday's high or low, closes back inside, then breaks the nearest swing the other way.
    The trade aims for the opposite side of yesterday's range.
    All times are New York time (daylight saving included). The trading day runs from 17:00
    to 17:00 New York (the forex day roll). The day that starts at 17:00 on Sunday is Monday's
    day, so Monday's previous day is Friday. The previous day's high (PDH) and low (PDL) come
    from the chart's own candles. Candles with no price movement (high equals low) are ignored
    completely: they never count as a sweep, a reclaim, a swing or a signal, and they do not
    move the day's high or low. Candles on a Saturday, and candles from Friday 17:00 on (the
    day that would start then), are ignored too.
    Swings are on the chart's own candles. A swing high is a candle whose high is strictly
    higher than the highs of the 2 candles before it and the 2 candles after it (a 5-candle
    swing). It counts once the 2nd candle after it has closed. A swing low mirrors it. The
    most recent confirmed swing high and swing low carry across days.
    Standard (all switches off), buy at the previous day's low:
      1. Sweep: once any candle today trades below the PDL, the sweep is on. The sweep low is
         the lowest price of the day so far.
      2. Reclaim: a candle closes above the PDL while the sweep is on. If a later candle
         closes below the PDL again, the reclaim is cancelled and price must close above the
         PDL again (the sweep low keeps updating).
      3. Break: while the reclaim holds, the first candle that closes above the most recent
         swing high (and above the PDL) is the signal. The reclaim candle itself can be the
         signal. No swing high yet, no signal.
      4. The trade opens at the next candle's open. The stop-loss is the sweep low (the day's
         lowest price so far). Size every trade so that the stop-loss costs 1% of the
         account. If the size is 0, skip.
      5. The take-profit is the PDH. If the PDH is not above the signal candle's close, skip.
      6. One buy setup a day: once a signal fires (traded or skipped) the PDL is used up for
         that day. The state resets at every 17:00 day roll.
    Sell at the previous day's high is the mirror image: a sweep is a price above the PDH, the
    sweep high is the day's highest price so far, the reclaim is a close below the PDH, the
    break is a close below the most recent swing low (and below the PDH), the stop-loss is the
    sweep high and the take-profit is the PDL. One sell setup a day.
    No time exit: a trade stays open until its stop-loss or take-profit, which can take
    several days. One trade at a time: a signal that comes while a trade is open is skipped
    (but still uses up its side for the day). The strategy never reverses.
    The changes, one at a time (off by default):
      rr2 = 1      the take-profit is 2R from the signal candle's close instead of the previous
                   day's level (R is the distance from the close to the stop-loss). A signal is
                   no longer skipped when the PDH / PDL is on the wrong side of the close.
      no_mss = 1   no structure break: the signal is the reclaim candle itself, the first
                   candle that closes back above the PDL after the sweep (for a sell, back
                   below the PDH). Everything else is the same.
      killzone = 1 only take a signal whose candle closes inside one of ICT's two kill zones:
                   02:00 to 05:00 or 07:00 to 10:00 New York time. A signal outside them does
                   not fire and does not use up the side, so a later break inside a kill zone
                   the same day can still trigger.
    """
    params = {"rr2": Param(type=int, default=0, min=0, max=1),
              "no_mss": Param(type=int, default=0, min=0, max=1),
              "killzone": Param(type=int, default=0, min=0, max=1),
              "risk_pct": Param(type=float, default=0.01, min=0.001, max=0.05),
              "rr": Param(type=float, default=2.0, min=0.5, max=10.0)}
    lookback = 2
    def init(self, ctx):
        self.p = ctx.params
        self.ny = ctx.clock("America/New_York")
        self.highs = []            # the last 5 candles that were not skipped
        self.lows = []
        self.swing_high = None     # the most recent confirmed swing high / low
        self.swing_low = None
        self.day_high = None       # the high and low of the trading day in progress
        self.day_low = None
        self.day_full = False      # True when the day in progress was seen from its 17:00 start
        self.pdh = None            # the previous trading day's high and low
        self.pdl = None
        self.started = False
        # buy side (sweep of the PDL) and sell side (sweep of the PDH), reset at each day roll
        self.reclaim_buy = False
        self.reclaim_sell = False
        self.used_buy = False
        self.used_sell = False
        self.placed_bar = -1
    def in_killzone(self, ctx):
        close_min = self.ny.minute_of_day + ctx.timeframe_minutes   # this candle's close time
        return (120 < close_min <= 300) or (420 < close_min <= 600)
    def update_swings(self, high, low):
        self.highs.append(high)
        self.lows.append(low)
        if len(self.highs) > 5:
            self.highs.pop(0)
            self.lows.pop(0)
        if len(self.highs) == 5:
            h, l = self.highs, self.lows
            mid_h, mid_l = h[2], l[2]
            if all(mid_h > h[i] for i in (0, 1, 3, 4)):
                self.swing_high = mid_h
            if all(mid_l < l[i] for i in (0, 1, 3, 4)):
                self.swing_low = mid_l
    def on_bar(self, ctx):
        # No weekend candles: all of Saturday, and Friday from 17:00 (a few minutes of prices
        # after the weekly close in some years).
        wd = self.ny.weekday
        if wd == 5 or (wd == 4 and self.ny.hour >= 17):
            return
        high, low, close = ctx.high[0], ctx.low[0], ctx.close[0]
        # The 17:00 day roll: today becomes the previous day, the state resets.
        if self.ny.new_day(at="17:00") or not self.started:
            if self.started and self.day_full and self.day_high is not None:
                self.pdh, self.pdl = self.day_high, self.day_low
            else:
                self.pdh = self.pdl = None      # the first day starts mid-day: not a full day
            self.day_full = self.ny.new_day(at="17:00")
            self.started = True
            self.day_high = self.day_low = None
            self.reclaim_buy = self.reclaim_sell = False
            self.used_buy = self.used_sell = False
        if not high > low:
            return                              # a flat candle is ignored for everything
        self.update_swings(high, low)
        self.day_high = high if self.day_high is None else max(self.day_high, high)
        self.day_low = low if self.day_low is None else min(self.day_low, low)
        if self.pdh is None or self.pdl is None:
            return
        p = self.p
        pdh, pdl = self.pdh, self.pdl
        # --- buy side: sweep of the previous day's low ---
        buy_signal = False
        if self.day_low < pdl and not self.used_buy:            # the sweep is on
            was = self.reclaim_buy
            if close > pdl:
                self.reclaim_buy = True
            elif close < pdl:
                self.reclaim_buy = False
            if self.reclaim_buy:
                if p.no_mss == 1:
                    buy_signal = not was
                else:
                    buy_signal = self.swing_high is not None and close > self.swing_high and close > pdl
        # --- sell side: sweep of the previous day's high ---
        sell_signal = False
        if self.day_high > pdh and not self.used_sell:
            was = self.reclaim_sell
            if close < pdh:
                self.reclaim_sell = True
            elif close > pdh:
                self.reclaim_sell = False
            if self.reclaim_sell:
                if p.no_mss == 1:
                    sell_signal = not was
                else:
                    sell_signal = self.swing_low is not None and close < self.swing_low and close < pdh
        for is_buy, signal in ((True, buy_signal), (False, sell_signal)):
            if not signal:
                continue
            if p.killzone == 1 and not ctx.gate("in_killzone", self.in_killzone(ctx)):
                continue                        # outside the kill zones: the side stays open
            if is_buy:
                self.used_buy = True            # the setup has fired, traded or not
            else:
                self.used_sell = True
            busy = ctx.position is not None or self.placed_bar == ctx.bar_index
            if not ctx.gate("no_open_position", not busy):
                continue
            stop = self.day_low if is_buy else self.day_high
            risk = abs(close - stop)
            if not ctx.gate("stop_on_the_far_side", risk > 0 and (stop < close if is_buy else stop > close)):
                continue
            if p.rr2 == 1:
                target = close + p.rr * risk if is_buy else close - p.rr * risk
                kind = "2r"
            else:
                target = pdh if is_buy else pdl
                kind = "pdh" if is_buy else "pdl"
                if not ctx.gate("pdh_above_close" if is_buy else "pdl_below_close",
                                target > close if is_buy else target < close):
                    continue
            size = ctx.size_by_risk_pct(p.risk_pct, stop=stop, entry=close)
            if not ctx.gate("size_fits_1pct_risk", size > 0):
                continue
            if is_buy:
                ctx.buy(size=size, sl=stop, tp=target, tag="pdl_sweep_buy_" + kind)
            else:
                ctx.sell(size=size, sl=stop, tp=target, tag="pdh_sweep_sell_" + kind)
            self.placed_bar = ctx.bar_index

Your turn

Test the Liquidity Sweep of Previous Day High/Low yourself

Change the settings, the market or the stop-loss and see the result in seconds. Ask the BacktestingMax AI: Backtest a liquidity sweep of the previous day's low on the 5-minute Dow Jones chart: buy when a candle closes above the last swing high after price closes back above yesterday's low, stop at the day's low, take-profit at yesterday's high.

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 23 November 2026.