Register
Strategy guide

Define Support and Resistance Trading Rules

Support is a price level where buying has tended to stop a fall; resistance is a level where selling has tended to stop a rise. Every trader uses these ideas, but most use them by eye. A rule-based support and resistance strategy defines the levels exactly, so they can be tested, sized and automated.

QuantPower Research · Updated 12 Nov 2026 · 17 min read

The difference matters. A level drawn by eye after the fact always looks right, because the eye picks the line the price respected. A level defined before the price gets there, by a rule anyone can apply, is a level that can be traded and tested honestly. This guide explains why levels work at all, objective ways to define them, the two main ways to trade them, worked trades on Nifty futures with costs, how to decide between a bounce and a break, how to use levels with options, and how to build, test and run the rules in QuantPower.

At a glance

Support and resistance strategy
StyleMean reversion at levels, or breakout through them
InstrumentsIndices, futures, stocks
TimeframeIntraday to daily
LevelsSwing highs and lows, the previous day's range, pivot points, round numbers
EntryA bounce from a level, or a close through it
StopJust beyond the level
SuitsMarkets that respect widely watched levels
Struggles inNews-driven gaps that jump past levels and stops

A short history of support and resistance

The idea is as old as charting. Charles Dow's writing in the *Wall Street Journal* around 1900 described markets as moving between points where buyers and sellers had shown their strength, and the Dow theory that grew from it treated earlier highs and lows as the reference points of a trend. In 1948 Robert Edwards and John Magee's *Technical Analysis of Stock Trends* gave support and resistance their modern definitions, including the idea that a broken resistance tends to become support, and the book remained a standard text for decades.1

Floor traders in the US futures pits added pivot points: a set of levels for the day, calculated from the previous day's high, low and close, simple enough to work out by hand before the open. The central pivot range, or CPR, a band around the main pivot, became popular in India with the spread of intraday index trading.

Academic work later asked whether levels have any real effect. In 2000 Carol Osler of the Federal Reserve Bank of New York studied the support and resistance levels that firms published for currency traders and found that intraday exchange rate trends were interrupted at those levels more often than at arbitrary levels.2 Her later work pointed to one reason: orders cluster at round numbers and at widely watched levels, so the levels are partly self-fulfilling.3

Why levels work, when they do

Three effects give a level its influence:

  • Orders sit there. Traders place stops, limit orders and targets at levels everyone can see: yesterday's high, a round number, a pivot. When the price reaches the level, those orders are filled together.
  • Memory. Traders who bought near a level and saw the price fall below it often sell when the price returns to their entry. Traders who missed a bounce at a level often buy the next time it is reached.
  • Option positions. Large open interest at an index strike means option writers have a stake in the index staying on one side of it, and their hedging can slow the price near that strike.

None of these makes a level hold. They make a reaction more likely, which is why a level is better treated as an area where a decision will be made than as a wall. It also explains why the same level can hold one day and break the next: the orders that were there on the first test may have been filled, cancelled or moved by the second, and a level with no orders left behind it is just a number on a chart.

Defining levels objectively

To automate support and resistance, each level needs an exact definition. Common choices:

Swing highs and lows

A swing high is a candle whose high is above the highs of the candles on either side, for example the two before and the two after. Resistance is the most recent swing high above the price; support is the most recent swing low below it. A swing is only confirmed after the candles that follow it have closed, which matters for testing.

The previous day's high, low and close

The previous session's high and low are widely watched intraday levels. They are simple to define and the same for everyone.

Pivot points and CPR

Pivot points are calculated from the previous day's high, low and close. With a previous day of high 25,105, low 24,880 and close 24,985 on Nifty futures:

LevelFormulaValue
Pivot (P)(H + L + C) ÷ 324,990
R12P − L25,100
S12P − H24,875
R2P + (H − L)25,215
S2P − (H − L)24,765
CPR(H + L) ÷ 2 and 2P minus that24,987.5 to 24,992.5

A narrow CPR, as here, is often read as a sign that the day may trend; a wide CPR as a sign of a range. The pivot point calculator and CPR calculator work these out for any day.

Round numbers

Levels such as 25,000 on Nifty often attract attention and orders, which is part of why they work.

Clusters

A level is stronger when several definitions agree. In the example above, yesterday's low at 24,880 and S1 at 24,875 sit 5 points apart: a cluster. A rule can count how many definitions fall within a tolerance band, such as a quarter of ATR, and trade only levels with two or more.

Strategy 1: bounce from a level

  1. Level: the nearest support below the price, defined by one of the methods above.
  2. Setup: the price falls to within a set distance of the level.
  3. Trigger: a candle closes back up, for example above the previous candle's high, showing buyers stepped in.
  4. Entry: buy at the next price.
  5. Stop: a set distance below the level, such as 0.5 times ATR.
  6. Target: the next resistance level, or a multiple of the risk.

The bounce trade is a bet that the level holds. It has a natural stop just beyond the level and a natural target at the next level, which often gives a reward of one and a half to two times the risk. Its weakness is the trend: in a strong move, supports in the direction of the move are reached quickly and broken quickly, and a bounce trader buying each one takes a series of small losses.

Strategy 2: break through a level

  1. Level: the nearest resistance above the price.
  2. Trigger: a candle closes above the level, ideally with higher volume.
  3. Entry: buy at the next price, or on a retest of the level from above.
  4. Stop: below the broken level.
  5. Target: the next resistance level, or a trailing stop.

When resistance breaks, it often becomes support on a pullback. This role reversal, described by Edwards and Magee in 1948,1 is the basis of the retest entry: buy when the price comes back to the broken level and holds, with a stop just below.

A worked bounce trade

This is a hypothetical example, not a result.

  • From the pivots above, yesterday's low of 24,880 and today's S1 of 24,875 form a support cluster.
  • At 11:30 am, Nifty futures fall to 24,884 and the next 5-minute candle closes at 24,902, above the previous candle's high.
  • The trader buys one lot of 65 at 24,905, with a stop 15 points below the cluster at 24,860, a risk of 45 × 65 = ₹2,925.
  • The target is the day's pivot at 24,990, a gain of 85 × 65 = ₹5,525 if reached.
Support bounce rules: a support cluster at 24,875–24,880, buy 24,905 after a close above the previous high, stop 24,860, target the pivot at 24,990 (illustration)

At ₹20 brokerage an order and the rates in force from 1 April 2026, a round trip on one lot of Nifty futures costs about ₹970 in charges.4 If the target is reached, the net gain is about ₹4,559; if the stop is hit, the net loss is about ₹3,886. Charges take about 15 points from every trade, so a level trade with a 45-point stop gives up a third of its risk to costs before the market moves. Wider levels and larger targets keep that share smaller.

A worked break trade

Later the same week, Nifty futures spend a morning below R1 at 25,100, testing it three times. At 1:15 pm a 15-minute candle closes at 25,110 on the session's highest volume so far.

  • The trader buys one lot at 25,112, with a stop below the broken level at 25,080, a risk of 32 points, ₹2,080.
  • The price pulls back to 25,102 in the next hour, holds above 25,100 and moves on.
  • He exits at 25,180 near the close, a gain of 68 points, ₹4,420 before about ₹973 in charges.

Had the break failed, as many do, the close back below 25,100 would have shown it within an hour, and the stop would have limited the loss.

Bounce or break?

The hardest question in support and resistance trading is whether a level will hold. Some context helps:

  • Trend. In an uptrend, support tends to hold and resistance tends to break. Trade bounces in the direction of the trend and breaks in the direction of the trend.
  • Number of tests. A level tested many times may weaken as the orders there are used up. The third or fourth test of a resistance is more likely to break it than the first.
  • Volume. A break on strong volume is more convincing than one on thin volume.
  • Time of day. Levels tested late in the session may break as positions are closed.
  • The approach. A slow drift into a level, with smaller candles, often bounces; a fast run into it, with large candles, often breaks through.

A rule-based approach can use these as filters, for example taking bounces only in the direction of the daily trend and breaks only on volume above its 20-period average.

Levels and the opening gap

The index often opens away from yesterday's close, after news or overseas moves. A gap changes which levels matter. If Nifty opens above yesterday's high, that high becomes the first support to watch, and the gap itself, the space between yesterday's close and today's open, is an area the price may return to. If it opens below yesterday's low, the low becomes resistance.

The first 15 minutes after a gap are the hardest time to trade levels. Prices move fast, spreads widen and the opening auction's orders are still being absorbed. Many level traders wait for the first 15-minute candle to close, then treat its high and low as the day's first levels alongside the pivots. A gap that is not filled in the first hour often points to a trending day, which favours break trades over bounce trades.

Why levels attract mistakes

Levels are easy to see and easy to believe, which makes them a source of predictable errors. A trader who bought a bounce and saw it fail often refuses to accept the break, moves the stop below the next level, and turns a small planned loss into a large unplanned one. A trader who saw two bounces at a level expects a third and buys without a trigger. And because a level that held is memorable and one that broke is forgotten, traders overestimate how often levels hold. Writing the rules down, the definition, the trigger, the stop and the target, and keeping a record of every level traded, is the practical answer to all three. Reviewing that record every month shows which kinds of level actually held for you, previous day's high and low, pivots or round numbers, and which ones only looked convincing on the chart.

Levels on different timeframes

A level on a weekly or monthly chart carries more weight than one on a 5-minute chart, because more traders see it and more money was traded around it. An intraday trader who buys a bounce from yesterday's low should know whether a weekly high sits 50 points above, because that weekly level may stop the trade long before the intraday target. A simple habit is to mark levels from three timeframes before the session: the weekly or monthly high and low, yesterday's high, low and close, and the day's pivots. Intraday trades then aim for targets that do not cross a higher-timeframe level, or take partial profits at it.

Higher-timeframe levels also decide which way to trade. If the index is just below a monthly resistance, intraday breaks above resistance are fighting a larger seller; if it has just broken a monthly level, intraday bounces from support are working with the larger trend.

False breaks and how to handle them

Many breaks fail. The price closes a few points through a level, triggers the stops and breakout orders placed there, and then reverses back inside. For a breakout trader that is a loss; for a level trader who waited, it can be the better trade, because a failed break often leads to a fast move the other way as the trapped breakout buyers sell.

Three rules reduce the damage from false breaks:

  • Require a margin. Count a break only when the close is a set distance beyond the level, such as a quarter of ATR, not a single point.
  • Wait for the retest. Enter on the first pullback that holds above the broken level, not on the breaking candle. Fewer trades are taken, but the stop is closer.
  • Exit fast on failure. If the price closes back inside the level within one or two candles, the break has failed; the stop below the level should already be close.

In the worked break trade above, a close back below 25,100 within the hour would have been the sign to exit with a small loss.

Measuring a level's strength

A rule can score each level before trading it:

FactorWeaker levelStronger level
Definitions that agreeOneTwo or more within a tolerance
Timeframe5-minute swingDaily or weekly high or low
Previous reactionsNoneSeveral clear reversals there
Volume at the levelThinHeavy, on earlier tests
AgeFormed minutes agoFormed days or weeks ago
Round numberNoYes

A rule might trade only levels that score on at least three factors. The score does not say whether the level will hold; it says how many traders are likely to be watching it, which is what gives a level its effect.

Bank Nifty and stocks

The same methods work on Bank Nifty and on stocks, with adjustments. Bank Nifty moves more in points, so pivot distances, tolerances and stops are larger; with a lot of 30, the rupee risk per lot at a level is often similar to a Nifty lot. Stocks respect levels from their own history, especially the previous result day's high and low and the 52-week high, but they gap on results and news more than the index does, so a stop beyond a level may be filled far beyond it. Stock futures held to expiry settle by delivery, so close or roll them before the expiry week.

A daily routine for level trading

Before the open:

  1. Calculate the day's pivots and CPR from yesterday's high, low and close.
  2. Mark yesterday's high and low, the week's high and low, and the nearest round numbers.
  3. Note the index strikes with the largest call and put open interest.
  4. Decide the trend on the daily chart, which sets whether bounces or breaks are traded in each direction.
  5. Set alerts at the two or three levels nearest the expected opening price.

During the session, trade only the levels marked before the open, and only on the trigger written in the rules. After the close, note which levels held and which broke; over a few months the notes show which kinds of level suit your instrument.

When to stop trading the rule

Decide in advance what would make you pause: a losing streak longer than the backtest's longest, a drawdown more than about one and a half times the backtest's worst, or a change in the market, such as a long period of news-driven gaps, that makes levels less reliable. Pause, review the trades against the test, and restart when the conditions are back.

Levels from open interest

Some traders treat index strikes with large open interest as levels: heavy put open interest below the market as support and heavy call open interest above it as resistance. Open interest shows where option writers have committed money, and their hedging can slow the index near those strikes, especially close to expiry. But open interest changes during the day, and a large position can be closed in minutes. Treat an open-interest level like any other: a likely area of reaction, confirmed or not by the price.

Trading levels with options

A level is also a natural strike for an option trade:

  • Below support, a bull put spread sells a put under the level and buys a lower one, collecting a credit if the floor holds.
  • Above resistance, a bear call spread does the same for a ceiling.
  • On a break, a bought option or a debit spread in the direction of the break caps the loss if the break fails.

Selling options at a level turns the level into a time-based trade: the floor needs to hold until expiry, not just for the next hour. Choose the expiry to match how long you expect the level to matter.

Risk management

  • Keep stops just beyond the level. If the level breaks, the reason for the trade is gone.
  • Size by the stop distance with the position size calculator. A 45-point stop on Nifty futures is ₹2,925 a lot before costs; an account risking ₹5,000 a trade can carry one lot at that distance.
  • Avoid trading levels into news, when gaps can jump past both the level and the stop.
  • Count the costs in the risk. On tight intraday levels, charges can be a third of the stop distance.

Building the rules in QuantPower

QuantPower's charts include a CPR indicator, daily, weekly or monthly, and drawing tools for horizontal levels, and the trading screens can act on a level without your watching.

  1. Mark the levels. Add the CPR indicator to the Nifty futures chart, and draw horizontal lines at the pivot levels from the calculator, at swing highs and lows and at yesterday's range.
  2. Set alerts at the levels. A price alert fires when Nifty futures go above or below a price; up to 100 can be live at once, checked while the market is open.
  3. Write the trigger as a signal. In Algos → Signal algos, a rule of up to 20 conditions on closed candles can combine price with indicators and candle patterns, for example a 5-minute close above the previous candle's high while the price is within a set distance of the CPR. A signal can tell you with the order ready (one-touch) or place it itself (auto).
  4. Bracket the trade. After entry, a GTT OCO places the stop below the level and the target at the next level; the first to fire cancels the other.
  5. Test the rule in backtesting on the instrument and candle size you trade, with stop, target, slippage and charges, and then in Forward test with test money.
  6. Keep the account controls on. Smart Exit squares off and stops algos at an account-level target or stop, the daily loss limit refuses new orders, and the kill switch stops a segment until its next session.

A signal that places its own order costs no tokens. Backtests cost 2 tokens a run after the first 10 each week.

Backtesting tips

  • Avoid hindsight. A swing high is only confirmed after the candles that follow it. Use levels only after they were confirmed.
  • Fix the tolerance for "near a level" before testing.
  • Test both strategies, bounce and break, on the same levels to see which suits your instrument.
  • Include costs and slippage. Level trades with tight stops are sensitive to both.
  • Split the results by context: with and against the trend, morning and afternoon, first and later tests of a level.

Common support and resistance mistakes

  • Drawing levels after the fact. The line that "worked" is easy to find on yesterday's chart.
  • Treating a level as a wall. Levels are areas; allow a tolerance and a stop beyond it.
  • Stops exactly at the level. Everyone's stops sit there; a stop a little beyond is less likely to be taken on a brief poke through.
  • Fighting the trend. Buying every support in a downtrend catches falling prices.
  • Ignoring costs on tight trades. A 20-point target pays 15 points in charges.

Where support and resistance trading is going

The levels have not changed in a century; who reacts to them has. Algorithms now trade the same pivots, round numbers and open-interest strikes that human traders watch, which makes reactions at levels faster and sometimes sharper, and makes the first poke through a level more likely to be a false break. Option open interest by strike, visible to every trader on the chain, has added a new kind of level. With retail algos running under exchange rules since 1 April 2026,5 a level rule that runs automatically does so through a broker's checks. What still decides the trade is the context the rule cannot see on its own: the trend, the news and the speed of the approach.

Start with 500 free tokens

Connect your broker, build a strategy and test it on paper before a single live order goes out.

Frequently asked questions

How do I find support and resistance levels?

Use objective definitions: swing highs and lows, the previous day's high and low, pivot points and round numbers. Levels where several of these meet are stronger.

What happens when support breaks?

It often becomes resistance. Prices that fall through support may later rally back to the level and turn down again.

Are support and resistance levels reliable?

They are widely watched, which gives them some influence, but they break often. Treat them as areas where a reaction is likely, not certain.

How close to a level should my stop be?

Far enough that a brief move through the level does not take it, often a fraction of ATR beyond the level, and close enough that the risk fits your limit. If the right stop is too far for your size, trade fewer lots.

What does a narrow CPR mean?

When the central pivot range is narrow, the previous day closed near the middle of a small range, and many traders read it as a sign that the next day may trend. A wide CPR is often read the other way.

Should I trade the first test of a level or wait?

The first test of a fresh, widely watched level often gives the clearest reaction. Later tests are more likely to break it. Many level traders take bounces on the first or second test and look for breaks on the third or later.

Can QuantPower alert me when Nifty reaches a level?

Yes. Price alerts fire when the price goes above or below a level you set, and a signal can combine the level with a candle or indicator condition on closed candles.

References

  1. Robert D. Edwards and John Magee, *Technical Analysis of Stock Trends* (first edition 1948)
  2. Carol L. Osler, "Support for Resistance: Technical Analysis and Intraday Exchange Rates", *Federal Reserve Bank of New York Economic Policy Review* 6(2), July 2000
  3. Carol L. Osler, "Currency Orders and Exchange Rate Dynamics: An Explanation for the Predictive Success of Technical Analysis", *Journal of Finance* 58(5), 1791–1819 (2003)
  4. Union Budget 2026-27: securities transaction tax on futures and options raised from 1 April 2026 (indiabudget.gov.in)
  5. SEBI, circular on safer participation of retail investors in algorithmic trading, 4 February 2025, in force for every broker from 1 April 2026 (sebi.gov.in)
The examples on this page are hypothetical and for illustration. Trading involves substantial risk. This guide is for education and is not investment advice.