Support and resistance are price areas where traders look for a reaction or a break. To backtest them, you need a rule for identifying the level before the later reaction happens. Otherwise, the finished chart can supply a convincing level almost anywhere you want one.
This guide turns the idea into a simple EURUSD exercise using a fixed reference high. It is an original research specification, not a claim that the setup is profitable.
Decide what counts as a level
Possible definitions include a previous session's high or low, a completed time-window range, or a swing confirmed by a stated number of later candles. Choose one for the experiment.
CMC Markets' support and resistance guide provides general background. Your test still needs its own exact definition of a touch, rejection and break.
For example, “yesterday's high” requires a definition of yesterday: UTC, New York time or the provider's trading day. A level based on an unfinished current session cannot use that session's eventual final high.
Use a fixed window for the first exercise
On EURUSD five-minute candles, take the highest high of bars opening from 07:00 through 07:25 UTC. The reference is fixed after the last of those bars closes. It remains unchanged for the rest of the exercise.
This is a fixed UTC window, not a claim about when a local financial center opens. If you want a local-session definition, name the timezone and handle daylight-saving dates explicitly.
Missing data in the reference window is a reason to mark that date as incomplete. Do not silently replace missing bars with later ones.
Define a break and a return separately
Use these long-side rules:
- Between 07:30 and 08:25 UTC, require a completed five-minute close above the fixed reference high.
- Starting with the following bar, watch the next six completed bars for the first one whose low touches or crosses the reference and whose close finishes above it.
- Enter at the next available bar's open after that return-and-close condition.
- Place the initial stop one conventional EURUSD pip below that return bar's low.
- Set a 2R target from the assumed entry and close any remaining position at the 10:00 candle's open.
- Take at most one trade per day. Skip if the entry leaves the stop on the wrong side or the needed observations are unavailable.
A breakout with no qualifying return produces no trade. A return that closes below the reference does not qualify under this version. Fix those conditions before you inspect the chart.
Calculate one hypothetical entry
Suppose the reference is 1.1000. Price closes above it. A later bar has a low of 1.0998 and closes at 1.1004, meeting the return rule. The next bar opens at 1.1005.
The stop is 1.0997, eight pips below entry. A 2R target is 1.1021, sixteen pips above entry. These numbers only demonstrate the arithmetic; they are not an observed trade or an appropriate universal stop size.
Include relevant costs. A spread or unfavorable fill can be large relative to a small price-risk distance. Do not equate the chart's reference line with a guaranteed execution price.
Handle failed tests of the level
Save examples where the reference is crossed repeatedly, where the breakout never returns, and where the entry is followed by a loss. Each is part of the method's behavior.
If both stop and target appear inside one candle, use available finer observations or your predefined ambiguity policy. The backtesting guide explains why the choice must stay consistent.
Do not redraw the original line through the later turning point. That converts an earlier decision into a description of a result you already know.
Keep support/resistance distinct from market structure
This exercise uses a fixed horizontal reference. A market structure analysis asks about sequences of confirmed highs and lows. A liquidity-sweep exercise focuses on an excursion beyond a reference and a return.
The ideas can overlap, but adding every label to one setup makes it hard to see which condition contributed anything. Test the simple rule first. Add a new condition only as a separately recorded version.
Compare the retest requirement fairly
You can compare this exercise with a baseline that enters after the initial breakout close. Keep the date range, position-sizing convention and cost treatment consistent.
Report how many signals the retest condition removes. It may change the entry distance, reduce participation or miss large moves entirely. A cleaner-looking screenshot is not sufficient evidence that the extra rule improves the net result.
Keep untouched dates for the next evaluation. If you use those dates to choose the number of allowed return bars, they have become development data.
A short review template
Record the reference price, reference-window completion time, breakout time, return-bar time, entry, initial stop and net outcome. Include a reason for every skipped date.
The trading journal template keeps this manageable. Review the chronological sequence and drawdown alongside average net R. A few successful reactions do not establish a stable pattern.
Create a TestMax account and practice identifying the reference before revealing the later candles. Eligible forex pairs such as EURUSD are available within the Free plan's recent history window; current plans explain broader access. Keep the first exercise small enough that you can reconstruct every decision from your notes.