Support and Resistance: A Rule-Based Way to Mark Levels, Tested on 10 Years of SPY

Mark a level where two swing highs or lows land within half an ATR of each other, draw a zone a quarter ATR either side, and judge it by a fixed test. On 10 years of SPY data, 207 such levels held 44% of the time, while 207 randomly placed levels held 47% to 52%: the marked levels showed no advantage.

A rule you can apply the same way every time

Support is a price area where a falling market has stopped or slowed before; resistance is the same for a rising market. The usual advice is to draw lines where price reacted, and that leaves the choice of levels to the eye, which is why two traders mark different lines on the same chart and both feel right afterwards. A rule fixes this. The method below uses only prices and the average true range (ATR), the average daily range including gaps, so the same chart always gives the same levels.

Step 1, find swings. A swing high is a daily high that is the highest of seven bars (three on each side). A swing low is the lowest low of seven bars. Because the swing needs three later bars, you only know about it three bars after it happened, so the level is not drawn earlier.

Step 2, make a level. When two swings, high or low, at least 5 bars apart and within 120 bars of each other, sit within 0.5 ATR of each other, the average of their prices is a level. Highs and lows both count, because a broken resistance often becomes support.

Step 3, draw a zone, not a line. The zone runs 0.25 ATR above and below the level. A single price is too precise, because markets overshoot by a few ticks.

Step 4, define a touch. A touch is the first bar after the level is confirmed whose range overlaps the zone, when the previous close was outside the zone. If the previous close was above the level, the level is support; if below, resistance.

StepRuleWhy
SwingHighest high or lowest low of 7 bars (3 each side)Objective and repeatable; known 3 bars after the fact
LevelTwo swings 5 to 120 bars apart, within 0.5 ATR; level is their averageNeeds a second reaction to count as a level
ZoneLevel plus or minus 0.25 ATRAllows for overshoot; width adjusts to volatility
TouchFirst bar overlapping the zone after the previous close was outside itOne event per level, so levels are not counted repeatedly
HeldPrice moves 1.5 ATR away from the level before any close 0.5 ATR beyond it, within 20 barsGives a yes or no outcome
BrokeA close 0.5 ATR beyond the level firstThe other outcome

Worked example: one level that broke and one that held

The data is SPY (the S&P 500 ETF) daily bars from Nasdaq's historical data. ATR is the 14-bar Wilder average of true range. Both examples are from the latest data and were not picked for how they came out; the test further down counts every level.

A level that broke. SPY made swing highs of 760.40 on 2 June 2026 and 759.48 on 1 September 2026. They are 0.92 apart, well inside 0.5 ATR (ATR was about 6.2, so the limit is about 3.1). The level is their average, 759.94, confirmed on 4 September. On 9 September the previous close (765.96) was above the level and the day's low of 760.94 entered the zone of 758.41 to 761.47, so this was a support touch. For the level to hold, price had to reach 769.14 (1.5 ATR above) before any close below 756.87 (0.5 ATR below). The high got no further than 766.38. On 16 September SPY closed at 754.05, under 756.87, so the level broke. Notice that on 17 September the price was back at 762.60: a rule that counts closes decides in the moment, and markets often return.

A level that held. The swing highs of 776.85 on 5 August and 775.14 on 22 September average 776.00, which is a level confirmed on 25 September. On 5 October the previous close (769.64) was below it, so it was resistance; the high of 776.61 entered the zone of 774.31 to 777.69. The level held if the low reached 765.84 before a close above 779.39. On 6 October the high was 781.62 but the close was 779.09, below 779.39, so it did not break. SPY dropped to a low of 764.43 on 15 October, past the target, so the level held. A rule based on intraday highs would have said "broke" on 6 October; this is why you must decide in advance whether you use closes or highs.

Test: 207 levels against 207 random ones

We applied the rules above to every SPY daily bar from 21 November 2016 to 20 November 2026. Counting only the first touch of each level, within 60 bars of when it was confirmed, we found 207 levels. 91 held (44%) and 116 broke (56%); every level was decided inside 20 bars.

To see whether the levels carry any information, we built a control. For each of 207 random dates we drew a line at a random price between the lowest low and highest high of the previous 120 bars, then ran exactly the same touch, held and broke rules. The control held 105 times (51% with the random seed we reported, 47% to 52% across six seeds). So lines drawn at swing-based levels were no more likely to hold than lines drawn at random.

Two cautions. A sample of 207 has a standard error of about 3.5 percentage points, so the gap between 44% and 51% is suggestive, not proven. And our definition of hold, a 1.5 ATR move before a 0.5 ATR close beyond, is one choice among many. A level that stops price for an hour, or serves only as a place for a stop order, may be useful in other ways that this test does not measure. The result does not say support and resistance never matter. It says that, as defined here, marking them did not predict a bounce on daily SPY data.

GroupLevels testedHeldBrokeShare held
Swing-based levels (rule above)2079111644%
Random levels, one seed20710510251%
Random levels, six seeds207 eachnot shownnot shown47% to 52%

Turning the method into a trade plan

If you still use levels, treat them as locations for decisions, not predictions. A level tells you where your idea is wrong. A long entry at support, with the stop below the zone's lower edge, defines the risk before you enter. In the broke example the risk was clear: entering near 760.94 with a stop at 756.87 risks 4.07 points, and a target of 1.5 ATR is 9.2 points, a reward-to-risk ratio of 2.26 to 1 (9.20 / 4.07). On a close-based stop, that trade was stopped out. In the held example a short entered at 776.00 with a stop at 779.39 risks 3.39 points, and the 1.5 ATR target of 10.16 points gives a ratio of 3.0 to 1; it reached the target, though an intraday stop at 779.39 would have been hit first, on 6 October, when the high reached 781.62. These are two examples. The 207-level test shows the 1.5 ATR target was reached 44% of the time; at that hit rate a trade breaks even before costs at a payoff ratio of about 1.27 to 1 (0.56 / 0.44).

The arithmetic: at a 44% hit rate and a 1.5 ATR (about 9 points) target against a 0.5 ATR (about 3 points) stop, the expected result per trade is 0.44 x 9 minus 0.56 x 3 = 3.96 minus 1.68 = 2.28 points before costs. That looks attractive, but the test's stop was only a close beyond the level, which can be crossed intraday first, so a real stop order would be hit more often and the win rate would fall. Run your own numbers with intraday data and your costs. For stop placement ideas, see our stop-loss placement guide.

Some habits keep the method honest. Mark levels before you look for a trade. Use a fixed rule for what counts as a break, such as a close beyond the zone, and write it down. Do not move a level after the fact to make it fit. Count how many levels you marked that did nothing.

Limits and who should skip it

This is a test on one instrument, SPY, on daily bars from one decade. It used the high and low from Nasdaq's data and no volume, and it ignores costs, dividends and the effect of gaps on stops. Other instruments, such as a single stock with heavy retail interest or an index future, and other timeframes, may behave differently. The random control is one design; a different control, such as round numbers, could give a different answer.

Support and resistance work best as a map of where you will make decisions. They are a poor basis for a system if you need an edge you can measure and you have not measured one, and they are a poor fit for traders who cannot accept being stopped out several times in a row, since 56% of the levels in our sample broke. This page is educational, not investment advice. Prices shown are from the data source and are not a forecast.

Frequently asked questions

How do you draw support and resistance objectively?

Use a fixed rule. Ours: find swing highs and lows over 7 bars, call two swings within 0.5 ATR of each other a level, and draw a zone 0.25 ATR either side of the average of the two.

How often do support and resistance levels hold?

In our test of 207 swing-based levels on SPY daily bars from 2016 to 2026, 44% held, using a 1.5 ATR bounce before a 0.5 ATR close beyond. Random levels held 47% to 52% of the time.

Is support and resistance a zone or a line?

A zone is more realistic. Price often overshoots by a few ticks, so our rule uses the level plus or minus a quarter of the ATR.

Does a broken resistance become support?

Common belief says so. We counted highs and lows together when forming levels but did not test the role-reversal idea separately, so we cannot confirm it.

What timeframe is best for support and resistance?

We only tested daily bars. Higher timeframes have fewer levels and fewer false touches, but we did not measure that here.

Sources

Provider documents behind this page, checked November 23, 2026.