Register
Strategy guide

Spot and Trade RSI Divergence

An RSI divergence strategy looks for moments when the price and the RSI disagree. If the price makes a lower low but the RSI makes a higher low, selling pressure is fading even as the price falls. Traders read this as an early sign that a move may be ending, and wait for the price to confirm before entering.

QuantPower Research · Updated 14 Nov 2026 · 24 min read

Divergence is one of the oldest ideas in technical analysis and one of the easiest to misuse. On a finished chart it looks obvious. In real time it forms, fails and forms again, and a trader who buys every divergence in a falling market keeps buying all the way down. The strategy in this guide uses divergence as a warning and the price as the trigger. It covers how RSI produces a divergence, the four types, rules you can test, a worked example on Nifty computed candle by candle, what the trade costs, option and Bank Nifty versions, and how to define divergence clearly enough to scan, backtest and automate in QuantPower.

At a glance

RSI divergence strategy
TypeReversal, with a price trigger
IndicatorRSI(14)
MarketsNifty and Bank Nifty futures, liquid stocks, MCX futures
Timeframes15-minute to daily
Long setupPrice makes a lower low, RSI makes a higher low, first low below RSI 30
Short setupPrice makes a higher high, RSI makes a lower high, first high above RSI 70
EntryPrice closes beyond the swing between the two lows (or highs)
StopBeyond the second low (or high)
Target2 times the risk, or the previous swing

A short history of RSI divergence

J. Welles Wilder Jr. introduced the relative strength index in his 1978 book *New Concepts in Technical Trading Systems*, alongside the parabolic SAR, the average true range and the directional movement system.1 Wilder was an engineer turned real-estate developer and commodity trader, and he designed RSI to be calculated by hand on a worksheet: a 14-day average of up closes against a 14-day average of down closes, scaled from 0 to 100.

Wilder himself pointed to divergence as one of the most telling things RSI shows. He described a top or bottom where the price makes a new extreme that RSI does not confirm, and he described the "failure swing", where RSI fails to pass its previous peak or trough and then breaks the level in between. Both ideas carry the same message: the move is continuing on less force than before.

Over the next two decades divergence became standard textbook material. John Murphy's *Technical Analysis of the Financial Markets* set out bullish and bearish divergence for RSI and other oscillators for a wide audience.2 In the 1980s and 1990s the trader and educator Andrew Cardwell taught a more detailed reading of RSI, including the observation that RSI works within different ranges in uptrends and downtrends and the patterns now usually called hidden divergence. Constance Brown developed these range rules further in *Technical Analysis for the Trading Professional* in 1999.3

In India, RSI divergence is a common setup on trading screens, used on Nifty and Bank Nifty futures, liquid stocks and commodity futures. What has changed is how easily it can be tested. A divergence that once had to be spotted by eye on a paper chart can now be written as a rule, scanned across instruments and checked on years of candles.

How RSI creates a divergence

RSI is calculated from average gains and average losses:

Formula
RS = average gain ÷ average loss over 14 periods. RSI = 100 − 100 ÷ (1 + RS)
Example
If the average gain over the last 14 candles is 18 points and the average loss is 42 points, RS = 18 ÷ 42 = 0.43, and RSI = 100 − 100 ÷ 1.43 = 30.0.

Wilder's smoothing keeps thirteen-fourteenths of the old average and adds one-fourteenth of the new candle. If the next candle falls 30 points, the average loss rises to about 41.1 and the average gain eases to about 16.7, so RSI falls to about 28.9. If the next candle rises 12 points instead, RSI rises to about 31.1.

That is why divergence happens. RSI does not measure the price level. It measures the balance of recent up and down moves. A first fall made of large down candles drives the average loss up and RSI down. If the price bounces, the up candles in the bounce lift the average gain. A second fall that reaches a slightly lower price with smaller down candles cannot push the average loss as high as the first one did. The price is lower, but RSI is not.

For a full walk-through of the calculation, see the rsi indicator guide.

The four types of RSI divergence

TypePriceRSIWhat it suggests
Regular bullishLower lowHigher lowA downtrend is losing strength
Regular bearishHigher highLower highAn uptrend is losing strength
Hidden bullishHigher lowLower lowAn uptrend is likely to continue
Hidden bearishLower highHigher highA downtrend is likely to continue

Regular divergence is used to time reversals: it appears at the end of a move. Hidden divergence is used to join a trend on a pullback: the price holds above its last low, but RSI falls further, because the pullback was sharp even though it did not break the trend. Most of this guide covers regular divergence, with a section on the hidden type.

Divergence and RSI ranges

RSI(14) on the model Nifty series stayed between 24 and 52 during the fall and between 55 and 81 during the recovery

Cardwell's and Brown's range rules explain why the same RSI reading means different things in different markets. In a rising market RSI tends to stay between about 40 and 80, and in a falling market between about 20 and 60.3 A bullish divergence whose first low is below 30 comes from a market that has been in a downtrend. A bullish divergence with lows near 40 is more often a pause inside an uptrend, which is the hidden type's territory.

The rules

Bullish divergence

  1. First low: the price makes a swing low with RSI(14) below 30.
  2. Second low: 5 to 30 candles later, the price makes a lower low while RSI makes a higher low.
  3. Trigger: the price closes above the highest point between the two lows.
  4. Entry: at the trigger candle's close or just above it.
  5. Stop: below the second low.
  6. Target: 2 times the risk. With two or more lots, take half at 2 times the risk and trail the rest below each new swing low.
  7. Cancel: if the price makes a third low below the second one before the trigger, the setup is void. Start again with the new low.

Bearish divergence

The mirror image: the first high above RSI 70, a higher high 5 to 30 candles later with a lower RSI high, a trigger on a close below the lowest point between the two highs, a stop above the second high and a target of 2 times the risk.

Why each rule is there

  • Below 30 at the first low makes sure the market was stretched. A divergence between two RSI lows of 45 and 48 says little.
  • 5 to 30 candles apart keeps the two lows in the same move. Lows two candles apart have almost the same RSI. Lows 80 candles apart belong to different markets.
  • The close above the middle high is the confirmation. It shows that buyers have done more than slow the fall: they have taken out the last bounce.
  • The cancel rule handles the most common failure, where a downtrend prints a second and a third divergence before it turns.

A worked example, computed candle by candle

RSI(14) on simulated prices: readings below 30 and above 70 mark stretched moves

To show where the RSI readings come from, we built a sequence of 15-minute Nifty futures closes and calculated RSI(14) on it with Wilder's smoothing. To keep it simple, the lows below are closing prices.

PointNifty futureRSI(14)
Before the fall25,180about 57
First low, after 13 candles of falling24,880about 23
Bounce high24,960about 39
Second low, 17 candles after the first24,850about 30

The first fall dropped 300 points in 13 candles, and its down candles averaged about 40 points. The second fall dropped 110 points from the bounce high in 13 candles, and its down candles averaged about 19 points. At the first low the average loss stood at about 20.4 points against an average gain of about 6.1. At the second low the average loss had fallen to about 13.5, with an average gain of about 5.9. The price was 30 points lower, but RSI was 7 points higher: a regular bullish divergence.

The exact RSI values on your chart depend on how much history the indicator has used, so two charts can differ by a point or so. The pattern does not change.

The trade:

  • Trigger: a close above 24,960, the high between the two lows
  • Entry: 24,965
  • Stop: 24,840, below the second low, a risk of 125 points
  • Target: 2 times the risk, 25,215

One lot of 65 risks ₹8,125 for a target of ₹16,250 before costs. These numbers illustrate the rules, not a result.

What happens without confirmation

Suppose a trader buys at the second low instead of waiting for the trigger: at 24,870, with a stop 30 points below at 24,840. Now suppose the market keeps falling and makes a third low at 24,760, with RSI at 33, which is another divergence.

  • The early buyer is stopped out for 30 points, ₹1,950 per lot, plus about ₹960 in costs.
  • The trader who waited for a close above 24,960 never entered, because the price never closed above the middle high.
  • The cancel rule then resets the setup to the third low. If the market now turns and closes above the high between the second and third lows, the trade is taken from there.

Strong trends often print two or three divergences before they turn. The trigger enters later and gives up part of the move, but it filters out many of the divergences that fail. The backtest section below shows how to measure what confirmation is worth.

A short trade, worked through

On an hourly Nifty futures chart, the price makes a swing high at 25,620 with RSI at 73. It pulls back to 25,480, then rallies to a higher high of 25,665, but RSI peaks at only 63. That is a regular bearish divergence.

  • Trigger: a close below 25,480, the low between the two highs
  • Entry: 25,475
  • Stop: 25,675, above the second high, a risk of 200 points
  • Target: 2 times the risk, 25,075

One lot risks ₹13,000 for a target of ₹26,000 before costs. A round trip costs about ₹983, about 7.6% of the risk. The hourly chart gives fewer divergences than the 15-minute chart, but each one has a wider stop, so costs take a smaller share.

What the trade costs

Index futures pay STT on their full sell value. For the long example, a round trip on one lot of Nifty futures, bought at 24,965 and sold at 25,215, costs about ₹973 at ₹20 an order and the rates in force from 1 April 2026. About ₹819 of that is STT at 0.05% of the sell value.5 A losing round trip, sold at 24,840, costs about ₹961.

After costs, a win is worth about ₹15,277 and a loss about ₹9,086. A 2R strategy that would break even at one win in three before costs needs to win about 37% of its trades to break even after costs. For the hourly short trade, with its wider stop, the break-even falls to about 36%.

15-minute longHourly short
Risk per lot₹8,125₹13,000
Target per lot₹16,250₹26,000
Round-trip costsabout ₹961 to ₹973about ₹983
Costs as a share of riskabout 12%about 7.6%
Break-even win rate at 2Rabout 37%about 36%

For a liquid stock traded intraday, costs are much lower. Buying 200 shares at ₹1,486 on a 15-minute divergence, with a stop at ₹1,471 and a target at ₹1,516, risks ₹3,000 to make ₹6,000. A round trip costs about ₹152 to ₹154, and the break-even win rate is about 35%.

Sizing and managing the trade

Size on the stop. With a ₹5,00,000 account and a limit of 1% a trade, the budget is ₹5,000. The 15-minute Nifty example risks ₹8,125 per lot, more than the budget. The choice is a smaller instrument, such as an option or a liquid stock, or a larger account. Taking the lot anyway turns a 1% plan into a 1.6% one.

Plan the exits before the entry. Three ways to manage a divergence trade, each worth testing separately:

  • A fixed 2R target. Simple and easy to test. Works well when divergences lead to a bounce rather than a full reversal.
  • Half at 2R, trail the rest. Keeps part of a real reversal. Needs two lots or more on futures, which raises the risk per trade.
  • Exit at the previous swing. For a bullish divergence, the high before the first fall. In the worked example, the fall began near 25,180, so a target there gives 215 points, a little under 2R.

Move the stop to the entry at 1R. Once the long is 125 points in profit, at 25,090, a stop at 24,965 means the trade cannot lose more than its costs. Test whether this helps: on some markets it stops out many trades that would have reached the target.

Do not add to a losing divergence. A third low below the second one is the cancel rule, not a chance to buy more.

Trading the signal with an option instead of futures

The same signal can be traded with an at-the-money option. With Nifty at 24,965, five days to expiry and IV of 14%, the 24,950 call costs about ₹182.35 in the model and has a delta of about 0.54. If Nifty reaches the 25,215 target within a few hours, the call rises to about ₹343.55, a gain of about ₹10,478 per lot. If Nifty falls to the 24,840 stop, the call falls to about ₹119.85, a loss of about ₹4,063.

Two things change. The gain is larger than the loss by more than 2 to 1, because the call's delta rises as the price moves in its favour and falls as it moves against it. And costs are far lower: about ₹95 on the win and ₹68 on the loss, against about ₹970 for the future, because STT falls on the premium rather than the full contract value. The trade-off is time decay, which takes about ₹18.61 a day per unit from the call in the model, about ₹1,209 a lot, and wider bid-ask spreads on fast days. Weekly Nifty options expire on Tuesday, so a signal on Monday or on expiry day uses an option with little time left, which carries more decay and more gamma risk.

A swing version with a bull call spread

On a daily chart the stops are wide. A daily bullish divergence on Nifty, with a first low at 23,900 (RSI 26), a bounce to 24,380 and a second low at 23,820 (RSI 34), triggers on a close above 24,380. An entry at 24,390 with a stop below 23,800 risks 590 points, ₹38,350 per futures lot.

A bull call spread caps the risk instead. With Nifty at 24,390, 20 days to expiry and IV of 15%, buying the 24,400 call at about ₹380.84 and selling the 24,800 call at about ₹206.66 costs a net debit of about ₹174.18, or ₹11,322 per lot. The most the spread can make is the width less the debit, about ₹14,678 per lot, and the breakeven at expiry is about 24,574. Opening and closing both legs costs about ₹185.

If Nifty is atWith days leftSpread valueProfit or loss per lot
24,98012about ₹292.29about +₹7,677
25,20010about ₹337.12about +₹10,591
23,800, below the stop14about ₹59.37about −₹7,463

The spread loses less than the future when the divergence fails and makes less when it works. Its loss can never exceed the debit. Closer to expiry, the spread's value moves more with the price and less with time.

Hidden divergence: joining a trend

Hidden divergence uses the same tools to join a trend rather than fade it. In an uptrend on an hourly Nifty chart, the price makes a low at 24,600 with RSI at 44, rallies, then pulls back to a higher low at 24,720, while RSI falls to 38. The price held above its last low, but RSI fell further, because the pullback was sharp.

  • Filter: the price is above its 50-period EMA, so the larger trend is up.
  • Trigger: a close above the high between the two lows, here 24,875.
  • Entry: 24,880. Stop: 24,700, below the higher low, a risk of 180 points, ₹11,700 per lot.
  • Target: 2 times the risk, 25,240, a target of ₹23,400 per lot. A round trip costs about ₹974.

Hidden divergence trades with the trend, so in a steady uptrend it tends to produce more signals that work than regular bullish divergence. It fails when the trend is ending, which is exactly when regular bearish divergence starts to appear on the higher highs.

Bank Nifty and stocks

On Bank Nifty futures (lot 30), the rules are the same with wider levels.4 On an hourly chart, a first low at 54,480 (RSI 28), a bounce to 54,860 and a second low at 54,390 (RSI 36) trigger on a close above 54,860. An entry at 54,880 with a stop at 54,360 risks 520 points, ₹15,600 per lot, for a 2R target of 55,920, ₹31,200. A round trip costs about ₹970 to ₹995. Bank Nifty is driven by a few large banks, so a divergence just before a large bank's results is more likely to be overrun by news.

Sensex futures (lot 20) can be traded on BSE with the same rules. On stocks, the strategy works best on liquid names with clean swings. Avoid stocks near results, stocks in the F&O ban list, and stocks that gap often, because a gap can skip the stop.

When the strategy works, and when it does not

Works best when:

  • The price reaches a known level, such as prior lows from a support and resistance strategy, with a divergence.
  • The move has run a long way and the second leg is visibly slower than the first.
  • The higher timeframe is no longer trending hard against the trade.

Struggles when:

  • A strong trend keeps going. Divergences stack up while the price trends.
  • News drives the move. Divergence reads momentum, not results or policy.
  • The swings are too close together, so the RSI readings are almost the same.
  • The market is very quiet. Small moves can create divergences that mean little.

Filters worth testing

  1. A higher-timeframe level. Take 15-minute divergences only near the previous day's low, a weekly low or a round number.
  2. A minimum RSI gap. Require the second RSI low to be at least 3 to 5 points above the first. A divergence of 30.0 against 30.4 is noise.
  3. A volatility floor. Skip setups when the average true range is below a set number of points, where small moves make readings unreliable.
  4. A time filter. On intraday charts, skip second lows in the first 15 minutes and in the last hour, when the price is driven by the open and the closing session.

Add filters one at a time and keep only the ones that help across several years.

Defining divergence for automation

Divergence is easy to see on a chart afterwards and hard to define in rules. To test or automate it, each part must be exact:

  • A swing low: a candle whose low is lower than the lows of 3 candles on each side. This needs 3 candles after the low before it is confirmed.
  • The earlier low: the lowest low in a window before the swing, such as 4 to 28 candles before it.
  • The comparison: the new swing low is below every low in that window, while RSI at the new swing is above the lowest RSI in the window.
  • The trigger: a close above the highest high of the last 20 candles, which after a divergence is usually the bounce between the two lows.

The 3 candles after the swing are a delay that a backtest must respect. A test that "knows" a low is a swing low at the moment it forms has look ahead bias, and it will show far better entries than any live trader could get.

Building the strategy in QuantPower

RSI is one of the 201 indicators in Arth.live charts inside QuantPower. The divergence itself needs a custom indicator, written in Arth Script.

Step 1. Save the divergence as a custom indicator

Arth Script is a small formula language: prices such as low and close, functions such as rsi, lowest and highest, comparisons that return 1 or 0, and x[n] for a value n candles ago. The regular bullish divergence above becomes one formula:

low[3] < lowest(low, 3) and low[3] < lowest(low[4], 3) and low[3] < lowest(low[7], 25) and rsi(close, 14)[3] > lowest(rsi(close, 14)[7], 25) and lowest(rsi(close, 14)[7], 25) < 30

Read from left to right: the low 3 candles ago is below the 3 candles after it and the 3 candles before it, so it is a confirmed swing low; it is below every low from 4 to 28 candles before it; RSI at that candle is above the lowest RSI in that window; and that earlier RSI low was below 30. The formula returns 1 on the candle where the divergence is confirmed and 0 elsewhere. On the sequence in the worked example, it returns 1 three candles after the second low, and on no other candle.

For the bearish version, swap low for high, lowest for highest, the comparisons the other way, and 30 for 70. For hidden bullish divergence, require the swing low to be above the window's lowest low and RSI at the swing to be below the window's lowest RSI, plus close > ema(close, 50) as the trend filter.

A saved custom indicator works in signal rules, backtests and Forward tests.

Step 2. Add the trigger

The trigger is a second custom indicator, close > highest(high[1], 20). To require the trigger within 10 candles of a confirmed divergence, combine them in one formula: wrap the divergence formula in highest(…, 10) == 1 and add and close > highest(high[1], 20). The combined formula is about 230 characters, inside the 500-character limit.

Step 3. Create the signal

  1. Open Algos → Signal algos and create a signal on Nifty futures, 15-minute candles. Conditions are checked on closed candles, on timeframes from 1 minute to 1 week.
  2. Add the conditions: the combined custom indicator equals 1. Add filters as further conditions, such as RSI below 45 or the close above a daily level. A rule can hold up to 20 conditions.
  3. Choose the action. One-touch, the default, notifies you and prepares the order for you to place with one touch. Auto places the order by itself after you arm it, with every risk check, and needs a connected broker or the Forward-test account. Any change to the conditions or the order disarms it.

Step 4. Protect the trade

  • A GTT OCO with two legs on the future: the stop at 24,840 and the target at 25,215. The first to trigger cancels the other. A GTT can stay active for up to 365 days, which suits a daily swing trade.
  • Or let the signal start an option algo. In Option bots, the Buy Call template with an ATM rule leg and a per-leg stop and target, or the Bull Call Spread template with the Overnight product for the swing version. Legs can be chosen by ATM, ITM or OTM steps, premium or Greeks; entries can be at a time, Wait & trade or ORB; and whole-algo exits include an M2M target and stop, lock and trail, and an exit time.
  • A time exit for intraday trades, such as 15:15, set in the algo or as an order you place.

If you prefer to place the entry yourself, a single GTT with a buy trigger just above the middle high waits for the price and sends the order when it is reached. A GTT fires when the price touches the trigger, not on a candle close, so it enters earlier than the close rule and will also catch some moves that reverse before the candle closes.

A signal that places its own order costs no tokens. An algo that a signal starts is charged as a live algo, 200 tokens per 28 days. You can also describe the rules to Quanty in words; it builds the signal for you to check and saves it switched off.

Backtesting an RSI divergence strategy

QuantPower's rule backtest tests a condition on one instrument over up to 2,000 past candles from your connected broker, from 5-minute to daily, with a stop-loss and target in per cent, an exit rule, slippage and an estimate of charges. Since 3 August 2026, NSE equity derivatives trade until 3:40 pm, so a full session has about 26 fifteen-minute candles.7 On 15-minute Nifty candles, 2,000 candles cover about 75 to 80 trading days; on hourly candles, a little over a year; on daily candles, about eight years. See backtesting for the full method.

For the worked example, the stop of 125 points on 24,965 is about 0.50% and the target about 1.00%. Test nearby values too, such as 0.4% to 0.6% for the stop, and keep a setting only if its neighbours also work.

Divergences are rare: a 15-minute Nifty chart may give only a handful of regular divergences with a first low below 30 in 80 days. A backtest with 8 trades says almost nothing. Use the daily or hourly chart for a larger sample in years, test across several instruments, and treat any result from a few dozen trades as a first look.

What to test:

  • The swing definition: 2, 3 or 5 candles on each side. More candles give fewer, cleaner swings and a longer delay.
  • The window between swings: 5 to 20, 5 to 30 or 10 to 40 candles.
  • The RSI threshold for the first low: 25, 30 or 35.
  • Entries on the trigger against entries at the second low. The difference shows what confirmation is worth on that market.
  • Regular against hidden divergence on the same instrument and period.

Reading the report

The report shows the trade list, win rate, average win and loss, maximum drawdown, longest losing run and results by month.

  1. Win rate against the break-even. On 15-minute Nifty futures with a 2R target, costs push the break-even to about 37%. A win rate of 39% is costs covered, not an edge.
  2. The losing trades in trends. Open the losses and count how many came from a second divergence in a trend that kept going. If most did, test the cancel rule and the higher-timeframe filter.
  3. Average win against average loss. If many trades exit at the time stop before 2R, the average win falls and the break-even rises.
  4. Results by month. A strategy that made all its money in one sharp reversal month depends on a market that may not return soon.

Then run the signal in forward test for a few weeks on live prices with test money before going live. Divergences are infrequent, so a forward test may need longer than for a strategy that trades every day.

Account safety above the strategy

Every signal and algo sits under the account's own controls:

  • Smart Exit sets a profit target, a stop-loss and a trailing step for the whole account. On a hit it squares off and stops the algos.
  • The daily loss limit refuses new orders once today's loss reaches it.
  • The kill switch stops trading in a segment until that segment's next session, and stops the algos running in it.

Under SEBI's framework for retail algorithmic trading, in force for every broker from 1 April 2026, algos run through the broker with these checks in place.6 Set the controls before the first live day.

Common mistakes

  • Entering on the divergence alone. Without a trigger, the strategy buys into falling markets.
  • Seeing divergences that are not there. Fix the swing rule and stick to it. If two traders can disagree about whether a divergence exists, the rule is not exact enough to test.
  • Drawing the RSI line through the wrong points. RSI must be read at the same candles as the price swings, not at RSI's own nearby lows.
  • Ignoring the timeframe. A divergence on a 5-minute chart means little against a daily downtrend.
  • Ignoring the delay. A swing low confirmed 3 candles later cannot be traded at the low itself.
  • Widening the stop after entry. A divergence trade that falls below the second low has failed. Moving the stop turns a planned loss into a larger one.
  • Trading a tiny sample. A setup that appears a few times a quarter needs years of data or several instruments before its results mean anything.

Where RSI divergence trading is going

Three changes are shaping how traders use divergence in India. First, costs: with STT on futures raised from 1 April 2026, short-timeframe divergence trades on index futures need wider stops or option-based execution to keep costs in proportion.5 Second, rules: the retail algo framework brings automated strategies under broker and exchange checks, so a divergence strategy with exact conditions, stops and time exits is easier to run and to explain than one traded by eye.6 Third, definition: formula languages and scanners now let traders write divergence as an exact rule, check it on years of candles and scan it across many instruments at once. That is changing divergence from a pattern people argue about into a condition that is either true or false on a closed candle. The idea itself has not changed since Wilder: the price is moving, but with less force behind it. What has changed is that the claim can now be tested before money is at risk.

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 you spot RSI divergence on a chart?

Mark the last two swing lows in price, then read RSI at those same two candles. If the price low is lower but the RSI reading is higher, that is a bullish divergence. For highs, look for a higher price high with a lower RSI high.

Why does RSI divergence fail in strong trends?

RSI measures the balance of recent gains and losses. In a strong trend each new leg can be slower than the last while the trend continues, so RSI shows a divergence two or three times before the price turns. That is why the strategy waits for a close beyond the middle swing.

Is hidden divergence more useful than regular divergence?

It depends on the market. Hidden divergence trades with the trend, so in a steady trend it tends to give more trades that work. Regular divergence tries to catch a turn, which happens less often but can give larger moves. Test both on the same instrument and period.

What timeframe works best for RSI divergence?

Higher timeframes give fewer and cleaner divergences with wider stops, so costs take a smaller share of each trade. The 15-minute chart gives more setups but more false ones. Many traders look for divergence on the hourly or daily chart and time the entry on a lower one.

Can RSI divergence be scanned automatically?

Yes, once it is written as an exact rule. In QuantPower the divergence can be saved as an Arth Script custom indicator and used in signal rules, backtests and Forward tests, as shown in the build section above.

What is an RSI failure swing?

Wilder's related pattern. In a bullish failure swing, RSI falls below 30, bounces, pulls back without going below 30 again, then rises above its bounce high. It reads RSI's own swings rather than comparing them with the price.

Should I trade divergence with futures or options?

Futures move point for point but cost about ₹970 a round trip on Nifty. An at-the-money option costs far less to trade and limits the loss to the premium, but loses value to time decay while the setup develops. For daily divergences, a bull call or bear put spread caps both the cost and the risk.

References

  1. J. Welles Wilder Jr., *New Concepts in Technical Trading Systems* (Trend Research, 1978)
  2. John J. Murphy, *Technical Analysis of the Financial Markets* (New York Institute of Finance, 1999)
  3. Constance M. Brown, *Technical Analysis for the Trading Professional* (McGraw-Hill, 1999)
  4. NSE, equity derivatives contract specifications (nseindia.com)
  5. Union Budget 2026-27: securities transaction tax on futures and options raised from 1 April 2026 (indiabudget.gov.in)
  6. 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)
  7. NSE circular of 30 May 2026: equity derivatives trading until 3:40 pm from 3 August 2026, alongside the closing auction session in the cash market
The examples on this page are hypothetical and for illustration only. Backtested or simulated results do not guarantee future results. Trading involves substantial risk.