Back to Guides
Guide

Support and Resistance Trading Rules, and How to Test Them

Support and resistance trading rules written tightly enough to test: the bounce and breakout entries, where stops and targets go, and how to backtest them.

Support and resistance trading rules come down to two entries on a line you drew yourself. You buy or sell when price reaches the level and turns away from it, or you trade the move when price closes through it. It is a rule rather than a habit only if you can write the level as a number before the next candle exists, then count what happened every time price arrived there.

What are support and resistance in trading?

Two price levels that seem to cap how far a market travels. Support sits under price, where falls keep stopping. Resistance sits above it, where rallies keep stopping.

IG's explainer frames them as a boundary on the range: "'Support' and 'resistance' are terms for two respective levels on a price chart that appear to limit the market's range of movement". Capital.com puts the same idea in terms of what sits behind it, saying support and resistance are price levels where demand or supply tends to emerge, which often causes price to stall or reverse. PriceAction.com describes the thing you actually draw: "Support and resistance levels are horizontal price levels that typically connect price bar highs to other price bar highs or lows to lows, forming horizontal levels on a price chart".

Once price goes through one of them, traders commonly treat the old level as the opposite kind. Broken support becomes the resistance you sell into, which is why the same line ends up getting used twice.

What makes a level worth drawing?

Repetition and recency. One reaction at a price is a coincidence you cannot test. Three or four reactions at the same price is something you can write down and check, and Capital.com's version of that is that the more often a zone has been tested and held, the more reliable it becomes.

Four things to settle before a line goes on the chart:

  • How many times price reacted there, and how cleanly. Two touches is thin.
  • How recent those touches are. Capital.com's test for this is behavioural rather than a cutoff date: an old zone stays relevant only while price still responds to it, so watch whether price slows, consolidates or reverses as it arrives.
  • Which timeframe you found it on. IG's method for carrying levels down is to draw the one-hour and four-hour levels onto a 15-minute chart and treat the ones that line up as the strong levels.
  • Whether you can state it as a price, or a narrow band of prices, in advance.

The last one decides whether any of it is testable. A level you can only point at after the candle has closed cannot be backtested, because you will always point at the version that worked.

A band rather than a single price is usually the honest shape. IG says major levels "are rarely exact figures" and that it is "unusual for a market to hit exactly the same price time after time before reversing", so it is more useful to think of them as zones.

Support and resistance trading rules

Two entries, and each needs five decisions made in advance. Capital.com describes the pair plainly: the bounce strategy has traders buying when price rebounds from a support zone or selling when it reverses from resistance, and the breakout strategy is trading when price moves through one of those zones.

Written so a backtest can judge them:

DecisionBounceBreakout
TriggerPrice reaches the level and a candle closes back away from itA candle closes beyond the level by a stated distance
EntryOn the close of that candle, or on a retest of the levelOn the close, or on a pullback to the broken level
StopBeyond the level, by enough that normal noise does not reach itBack inside the range, beyond the broken level
TargetThe next opposite level, or a fixed multiple of the stop distanceThe next level in the direction of the break, or a fixed multiple
Invalidated whenPrice closes through the level instead of turningPrice closes back inside the range

Every cell has to resolve to a number or a yes-or-no condition. "A candle closes beyond the level by 10 pips" is testable. "Price breaks convincingly" is not, and it is the phrasing that lets you grade your own homework afterwards.

Entering on the break and entering on the pullback miss different trades and take different stops, so they are two rule sets. Run them separately or you will never know which one your numbers belong to. Capital.com treats the retest as a way to filter false breakouts, which is a second reason to keep the two apart: they are answering different questions.

A worked example, written before the trade

The bounce rule, filled in on a single level. The prices here are an example of the arithmetic, not a reading of any particular week.

EURUSD, hourly entries, with the level taken off the daily chart:

  • Level: 1.0458, with a band up to 1.0465, because the reactions there did not all stop at one price.
  • Trigger: an hourly candle trades into the band and closes back above 1.0465.
  • Entry: 1.0468, the close of that candle.
  • Stop: 1.0453, five pips under the level, which is 15 pips of risk.
  • Target: 1.0523, the next level above, 55 pips away, or 3.7 times the risk.
  • No trade if an hourly candle closes below 1.0458 before any candle closes back above 1.0465. The bounce never triggered, so nothing gets recorded.

Every line there is a number, and all of them exist before the candle that triggers the entry. The trade resolves at whichever of 1.0453 and 1.0523 price reaches first, your log records which one, and you make no decisions while it is open.

Those fields are also what you tag: which level, which touch of it, bounce or breakout, entry on the close or on the retest. The Orders panel shows up to five tags per trade, and a tag you create once appears in every picker afterwards, so "bounce", "breakout", "retest" and "daily-level" become filters you read your results through later. The Notes column takes the one-line reason, and notes come through in the CSV export.

How do you draw the levels?

Highest timeframe first, then work down. IG lists four places to find them: peaks and troughs, levels carried over from a previous timeframe, moving averages, and trend lines. For trend lines it adds a minimum: "If you are using trend lines, make sure you have at least three peaks or three troughs before you draw your lines, so that you have a useable trend line."

A workable order:

  1. Open the daily or weekly chart and mark the levels that are obvious without squinting.
  2. Drop to your trading timeframe, keeping the higher levels on the chart.
  3. Add only the levels your entry rules will actually use.
  4. Write down the price of each one before you start replaying.

Be honest about the precision you are claiming. PriceAction.com says so plainly: "The important thing to realize is that this is not an exact science, instead it is both a skill and an art that you'll improve at through training, experience and time." Its page also accepts that a line will not always touch the exact high or low of the bars it connects.

Because the drawing varies by hand, someone else's numbers on their lines say nothing about yours. You find out what your lines do by stepping through history with them, which is what IG recommends too: practise identifying levels on historical charts.

How do you backtest support and resistance step by step?

Replay the chart forward one bar at a time, taking only the trades your written rules allow. The general workflow is in our beginner's guide to backtesting a trading strategy. The levels version of it is five steps:

  1. Pick a symbol and a start date, and load the chart where you want to begin. Do not scroll ahead.
  2. Draw your levels from the higher timeframe, using only bars to the left of where you are.
  3. Step forward bar by bar. When price reaches a level, take the trade your rules allow, or take nothing.
  4. Place the stop and target at entry, from your written rules, and let them resolve.
  5. Tag the trade, write the one-line reason, and move on.

In ChartLabs, drawing and stepping happen on the same screen. Replay hides the next bar, so you cannot scroll into the answer. The two tools this setup lives on have shortcuts: Alt+H for a horizontal line, Alt+J for a horizontal ray, Option instead of Alt on a Mac. For a band rather than a line there is a Rectangle under Shape Tools, and the Long Position and Short Position tools under Risk/Reward Tools if you would rather lay the trade out on the chart than in a notebook. And every trade you take captures a snapshot of the drawings and chart state at the moment of entry, so the lines you had at the time stay on the record, including the one you talked yourself out of.

A ChartLabs EURUSD 1-hour chart in the demo account: a red horizontal ray labelled Resistance across the top of the range, a green ray labelled Support across the bottom, and an open buy between them with dashed take profit and stop lines, the take profit marked +55.0 pips and the stop -15.0 pips. The entry line reads 6.67 lots with its open profit and risk-to-reward figures, and the bar under the chart reads Account Balance $100,000.00 and an Open PnL figure. The Orders panel below is on its Open tab, showing one row with its R multiple column and the tags 1H, range and support, and the note "Third test of 1.0458 held. Stop under range." All prices, sizes and cash figures are the demo account's.

One open trade with a number beside it says where that trade stands and nothing about the rule set. Read the whole sample, and set the per-symbol commission and slippage before you read any of it: levels trades are often short, and a target 20 pips away lives or dies on costs.

What goes wrong when you test it by hand?

You redraw the level. That is the common one, and it rarely feels like cheating at the time.

Price overshoots your line by a few pips, the trade would have lost, and the line moves to where it would have held. Twenty of those and you have a rule set fitted to the history you just read. The defence is mechanical: write the level as a number before you step forward, and leave it alone.

Three more:

  • Scrolling ahead, which makes every level look obvious. Step bar by bar so you cannot.
  • Testing one market and one year. A range-bound stretch flatters this setup and a trending one punishes it.
  • Changing the rules mid-test, which leaves two strategies sharing one sample and no way to attribute anything.

Analytics split by Training and Verification sessions gives you a check on the first two that does not depend on remembering what you had read. Trades you took while learning a stretch of data sit apart from trades you took on data you had not seen. If your levels behave in training and come apart in verification, they were fitted to the chart you had already read.

Support and resistance, or supply and demand?

Support and resistance are lines, supply and demand are zones. Support and resistance mark a single price where reactions clustered, so your rule names one number. Supply and demand zones mark a band instead, and the rules for drawing and grading them are their own subject: Does Supply and Demand Trading Work? works through those. Plenty of traders use the two for the same job, so decide which one your written rule means before you test it.

Manual vs Automated Backtesting covers why a discretionary setup like this one is a case where testing by hand tells you something code cannot.

Start with one level

One level, written as a number before you replay anything, is enough to find out what your own rules do with it. Start your free trial: 7 days, no credit card, one plan at $20 a month or $200 a year.

Related Topics

support-and-resistanceprice-actiontrading-rulesmanual-backtestingbacktesting