全職奶爸

RSI Indicator: Settings, Formula, Divergence and TradingView Guide

RSI indicator settings guide

The RSI indicator measures the balance between recent upward and downward price changes on a scale from 0 to 100. Its familiar 30 and 70 levels describe momentum conditions. They do not tell you that a market must reverse on the next candle.

That distinction matters on a five-minute futures chart. The TradingView indicators guide explains how to choose tools with different roles and check when a plotted signal became available. A strong rally can push RSI above 70, pull back briefly, and continue higher. Selling every reading above 70 turns a momentum observation into a trade that the indicator never fully defined.

Start with a reproducible chart: the built-in Relative strength index, length 14, source Close, and calculation timeframe Chart. Then decide what the reading contributes to your setup. The examples below separate the arithmetic, the TradingView controls, and the price confirmation you would need before testing an entry.

What the RSI indicator actually measures

RSI stands for Relative Strength Index. J. Welles Wilder introduced it in 1978. Here, relative strength means upward price changes compared with downward price changes within one instrument's calculation. It is not a comparison between a stock and an index, and it is not a ranking of one futures contract against another.

The standard close-based version takes the difference between consecutive closes. A positive difference contributes to the gain series; a negative difference contributes its absolute size to the loss series. An unchanged close contributes zero to both. Wilder's smoothing combines those observations before converting their ratio to the bounded RSI scale.

A reading near 50 means the smoothed gain and loss measures are close to equal. It does not prove that price is moving sideways. A market may have traveled a long distance before a sharp counter-move brings the ratio back toward the middle. Read the price swings as well as the oscillator.

RSI also contains no direct information about traded volume, resting orders, account profitability or a company's intrinsic value. Two very different volume patterns can accompany similar close-to-close changes. An oversold reading is a momentum description; it is not a calculation of fair value.

RSI formula: a small example you can reproduce

The formula is RSI = 100 − 100 / (1 + RS), where RS is the smoothed average gain divided by the smoothed average loss. Losses enter that denominator as positive magnitudes. For the standard TradingView Close input, the changes are price differences rather than percentage returns.

Use this hypothetical sequence to see the calculation without needing fourteen rows of prices. Set the length to five for this arithmetic exercise. Six closes provide five changes: 100, 102, 101, 104, 102 and 105. These are invented numbers, not a market sample or suggested trading settings.

Close transitionChangeGain inputLoss input
100 → 102+220
102 → 101−101
101 → 104+330
104 → 102−202
102 → 105+330
Initial five-change average—8 / 5 = 1.63 / 5 = 0.6

RS is 1.6 / 0.6, or approximately 2.6667. Substituting that ratio gives RSI = 72.7273. This initial calculation averages across all five changes, including the zero contributions. Dividing gains only by the number of rising candles would produce a different indicator.

Now suppose the next close is 103. The new change is −2. With Wilder's recursive smoothing, the new average gain is (1.6 × 4 + 0) / 5 = 1.28. The new average loss is (0.6 × 4 + 2) / 5 = 0.88. RSI becomes approximately 59.2593.

Notice what happened to the oldest observation: it was not simply removed from a five-change rolling sum. The previous averages carried their history forward with a smaller weight. After initialization, a length of five means a smoothing factor of 1/5. The same principle applies to the standard length of fourteen.

When losses are zero and gains are positive, the limiting RSI value is 100; when gains are zero and losses are positive, it is 0. A completely flat initialization produces a zero-over-zero situation. Software conventions and initialization history matter there, so use the platform's actual output when matching edge cases. Do not fill an unavailable warm-up reading with an invented neutral value.

Set up RSI in TradingView

Open the chart you intend to study and choose its interval, such as five minutes. Select Indicators, metrics, and strategies, search for Relative Strength Index, and choose the built-in Relative strength index under Technicals. A community script with the same words in its title can use different calculations, filters and alerts.

The built-in RSI appears in a separate pane below price. Double-click its RSI label to open settings. In Inputs, set RSI Length to 14 and Source to Close. Keep Timeframe at Chart if you want the oscillator to calculate from the candles visible on that chart.

The Smoothing section controls an additional moving average of RSI. Select Type: None for a single RSI line, or keep SMA and its own length if that extra line has a defined role in your method. Selecting None removes the additional line. It does not remove Wilder's smoothing from the underlying RSI calculation.

RSI settings: the two lengths have different jobsLabeled explanatory diagram, not a platform screenshot. RSI Length14 and SourceClose define the standard RSI; optional SmoothingTypeNone hides only the extra RSI moving average. CalculationTimeframeChart uses chart bars;Stylelevels70,50,30 are display thresholds.RSI settings: the two lengths have different jobsEXPLANATORY DIAGRAM · Field names match the built-in TradingView RSI.CORE RSIOPTIONAL EXTRA LINERSI Length: 14Controls gain/loss smoothingSource: CloseUses consecutive closing changesSmoothing Type: NoneHides the extra moving averageSMA + Length: 14, if chosenAverages RSI output, not raw priceCalculation Timeframe: Chart → use the chart intervalStyle: Upper 70 · Middle 50 · Lower 30Higher-timeframe study: record “Wait for timeframe closes”.None does not remove Wilder smoothing from the underlying RSI.

In Style, the RSI Upper Band, Middle Band and Lower Band fields control the familiar horizontal levels. A straightforward starting display is 70, 50 and 30. Keep the RSI line distinct from any optional RSI-based moving average so you can identify which one crossed a level.

The Calculate Divergence checkbox enables the built-in divergence calculation needed for its divergence alerts. You can study RSI values without enabling it. When using divergence labels, inspect when the pivot was actually confirmed rather than assuming a label drawn on an earlier candle was available at that earlier moment.

The chart below is a real NQ five-minute display with RSI 14, Close, and the extra smoothing line removed. It illustrates the relationship between price and the oscillator; the current candle and its RSI reading can change before that candle closes. It is not a reported trade or a strategy performance record.

Real NQ five-minute TradingView candlestick chart with the built-in RSI 14 Close pane and 70, 50 and 30 levels
Compare the RSI pane with the same price swings above it. A reading above 70 describes strong upward momentum in that calculation.

What 14 means on a five-minute or daily chart

The length counts calculation bars. RSI 14 on a daily calculation uses daily changes; RSI 14 on a five-minute calculation uses five-minute changes. Fourteen five-minute bars span seventy minutes of bar intervals when trading is continuous, but the recursive average also retains a diminishing influence from older observations.

That is why describing five-minute RSI 14 as “the last fourteen days” is wrong, and calling it a strict seventy-minute cutoff is also incomplete. The timeframe determines the observations; the length determines the smoothing. Session gaps, missing bars and the amount of available history can affect a comparison between two charts.

A shorter length such as 7 or 9 responds more sharply to recent changes. A longer length such as 21 generally reacts more gradually. Faster does not mean more accurate. It can produce an earlier useful warning in one sequence and more repeated threshold crossings in another.

For a five-minute or fifteen-minute intraday study, keep 14 as a baseline, define the entry and exit rules, and compare alternatives using the same instruments, sessions and costs. If a setting only looks better after choosing the most attractive historical trades, it has not earned the label best.

Some charts display RSI 6, 12 and 24 together. Those are three different smoothing lengths applied to the selected calculation timeframe. They are not three profit targets or three fixed holding periods. Each additional line should answer a specific question; otherwise the screen becomes harder to read without making the decision more reproducible.

Read 30, 50 and 70 in the surrounding trend

Above 70 is conventionally called overbought and below 30 oversold. Those labels are useful shorthand for an unusually one-sided gain-to-loss balance. They do not impose a deadline on that imbalance. Repeated strong closes can keep RSI elevated while price continues rising.

Consider an invented sequence: RSI rises from 68 to 74, then 79, then 72 while price makes another higher high. A short placed at the first 70 crossing would have been opposing the subsequent upward movement. The final move from 79 to 72 shows cooling momentum, but it still does not specify an entry price, a stop, or an exit.

During a falling market, the mirror image can occur below 30. A bounce from 22 to 29 remains below the conventional oversold boundary, yet buying it can still lose money if the downtrend resumes. Crossing back above 30 creates a distinct condition you can test; it does not make the next candle's direction certain.

RSI around 50 can help describe whether smoothed gains or losses are larger. Above 50, gains exceed losses in the calculation; below 50, losses exceed gains. This is one piece of momentum context. Price can repeatedly cross its own reference levels while RSI oscillates around 50, so a midpoint crossover needs a reason to matter in your rules.

Trend studies sometimes describe an upward RSI range around 40–90, with pullbacks holding near 40–50, and a downward range around 10–60, with rebounds meeting 50–60. Treat those as observed behavior to evaluate on your sample, not boundaries the market is obliged to respect.

Moving the extreme thresholds to 80 and 20 demands a more extreme reading before that condition occurs. It does not make an oversold alert arrive sooner than a 30 threshold on the same downward path. Changing a number changes the event being tested, so record the threshold alongside the length.

Regular and hidden RSI divergence

A regular bullish divergence pairs a lower low in price with a higher low in RSI. A regular bearish divergence pairs a higher high in price with a lower high in RSI. Compare corresponding swings on the same calculation series. Picking unrelated local turns can create a convincing drawing that never described the same market move.

For example, imagine price falls from a swing low of 100 to a later low of 98 while RSI rises from 24 at the first swing to 29 at the second. That is the geometry of regular bullish divergence. Price has extended lower while the oscillator's downward imbalance is less extreme at the selected lows.

The next step depends on the trading method. One test might require price to close above the intervening swing high. Another might use a defined reclaim of a prior level. Decide the confirmation before reviewing the outcome, and include cases where divergence is followed by another lower low.

Hidden bullish divergence reverses the comparison: price makes a higher low while RSI makes a lower low. Hidden bearish divergence pairs a lower high in price with a higher high in RSI. These are often studied as continuation patterns within an existing trend. They should not be mixed with regular divergence under one undifferentiated reversal label.

Match corresponding price and RSI pivotsHypothetical schematic with four panels. Regular bullish price lower low and RSI higher low; regular bearish price higher high and RSI lower high; hidden bullish price higher low and RSI lower low; hidden bearish price lower high and RSI higher high. No entry or performance implied.Match corresponding price and RSI pivotsHYPOTHETICAL SCHEMATICS · Shapes show direction, not measured prices.Regular bullishPrice: lower lowRSI: higher lowRegular bearishPrice: higher highRSI: lower highHidden bullishPrice: higher lowRSI: lower lowHidden bearishPrice: lower highRSI: higher highPivot confirmation can arrive later than the candle carrying the label.

Automated pivot detection adds a timing issue. A pivot can need later bars before it qualifies. A label placed back on the swing candle is a display location, not proof that the trader knew the result on that candle. Check the script's confirmation rules and use the information available at the actual decision time.

The same caution applies to manually drawn examples. When reviewing a historical chart, stop the replay before the outcome and choose the two pivots using a rule you could follow then. If the second pivot keeps moving until the eventual reversal looks tidy, the drawing is describing hindsight rather than an executable setup.

RSI failure swings use the oscillator's own turns

A bullish failure swing has four stages: RSI moves below 30, rebounds above 30, pulls back while remaining above 30, and then breaks its intermediate RSI high. The pattern uses RSI itself. Price does not have to form a regular bullish divergence for those four stages to exist.

Here is a hypothetical RSI path: 25, 42, 35, then 44. The pullback at 35 holds above 30, and 44 exceeds the intervening high of 42. If your rule waits for completed candles, the final stage is established when a completed reading breaks that prior oscillator high, not when an unfinished candle briefly flashes above it.

A bearish failure swing reverses the sequence: RSI exceeds 70, falls below 70, rebounds without regaining 70, and breaks the intermediate RSI low. A constructed path of 76, 58, 65 and 55 demonstrates the order. It is a pattern definition, not evidence that every such sequence will produce a profitable short.

Price still determines the execution and risk. An oscillator break does not give you the instrument's tradable bid, spread, stop distance or remaining account loss capacity. If the pattern completes after price has already moved far from a logical invalidation level, the same signal can create a very different risk-to-reward proposition.

Higher-timeframe RSI and live values

TradingView's Calculation Timeframe can differ from the chart interval. A five-minute chart can display an RSI calculated on a higher timeframe. In that case, the RSI length refers to the higher-timeframe bars, not the five-minute candles underneath the plot.

With Wait for timeframe closes enabled, higher-timeframe values become available when those higher-timeframe bars finish. If you study an hourly RSI, a final hourly value is not available at the start of that hour. Align your entry test with when the information arrives.

With the waiting option disabled, the developing higher-timeframe value can update while that higher-timeframe candle is still forming. A threshold crossed during the hour may no longer be crossed at the hour's close. A screenshot taken afterward can hide the path the live reading took.

For a reproducible comparison, note chart interval, calculation timeframe, waiting option, symbol and session. Compare values at the same completed timestamp. If you choose a lower calculation timeframe than the chart, do not assume one displayed value reconstructs every intrabar reading or every signal that occurred inside the larger candle.

Use RSI with price structure and other indicators

Start with the price condition the trade is supposed to exploit. A rising sequence of swing highs and lows gives a different context from repeated failures below resistance. RSI can describe the momentum within that sequence, while market structure and SMC concepts describe a separate part of the chart.

A practical hypothetical study might require an established upward structure, a pullback into a previously defined area, RSI recovering from a specified zone, and a completed price trigger. Record the rule before measuring its results. Adding several conditions after examining each losing trade can make a chart explanation increasingly precise while making a future rule less usable.

VWAP adds a volume-weighted price reference over a defined window. RSI adds the balance of smoothed price changes. Price above VWAP with RSI above 50 is two observations, not two independent guarantees. Both can reflect the same recent upward movement.

Volume Profile organizes traded volume by price within a selected range. It can help define where activity concentrated, while RSI describes momentum along the sequence of bars. Keep the selected profile range explicit; moving its endpoints after seeing a reversal changes the context of the test.

The MACD indicator compares moving averages of price and a signal line; RSI transforms a gain-to-loss ratio into a bounded oscillator. They can disagree because their calculations answer different questions. Stochastic RSI is another distinct indicator: it measures RSI's position within its own recent range. Its familiar extreme readings should not be substituted mechanically for ordinary RSI's 30 and 70. The CCI indicator guide compares price-to-average deviation with the gain-to-loss calculation used by RSI and shows how the selected source changes the reading. The Stochastic Oscillator guide compares the close with a rolling high–low range and explains how its smoothing differs from the gain-to-loss calculation in RSI.

Before combining indicators, assign each one a job: context, setup condition, trigger or exit. If two lines merely repeat the same momentum observation, counting them as separate confirmations can make the evidence feel stronger without adding independent information.

Turn an RSI idea into a testable trading rule

“Buy oversold” leaves too many choices unresolved. Specify the instrument, chart and indicator timeframe, RSI length, threshold, candle-close requirement, entry type, invalidation and exit. Also decide whether the rule operates during a particular session or around scheduled announcements.

Suppose a hypothetical long setup waits for RSI to recover above 30 and for price to close above a named swing level. The order is placed according to a fixed execution rule, and the stop belongs below a defined price invalidation. Those extra definitions make it possible to identify failed setups and missed fills as well as attractive winners.

The oscillator's number does not size the position. A stronger-looking divergence does not increase the dollars an account can lose. Translate the chosen stop distance into contract risk, include transaction costs and possible slippage, and compare it with the account's remaining limits before an order is placed.

Keep a trading journal with the exact settings, a screenshot before the outcome, the trigger time and the realized execution. Record signals you declined and orders that did not fill. Otherwise, a collection of successful screenshots can make the method appear easier to execute than it was.

Evaluate changes on data that did not choose the parameters. Compare drawdown, the distribution of outcomes, sample size and costs alongside any win rate. There is no verified win rate attached to the settings in this guide; they define the calculation and provide a starting point for your own controlled study.

Why RSI looks different on another chart

Check the exact symbol and exchange first. A stock index, its futures contract and a broker's CFD can have different prices and trading hours. A continuous futures series can also differ from a specific contract month, especially when adjustment settings change historical prices.

Then match the chart interval, calculation timeframe, Close or other source, RSI length and smoothing convention. Confirm whether you are comparing the RSI line or its optional moving average. A yellow auxiliary line crossing 70 does not mean the underlying purple RSI crossed at the same time.

Compare completed candles at the same timestamp and inspect session gaps, missing data and history length. Initialization can affect early values. With a higher calculation timeframe, match Wait for timeframe closes as well. These checks are more useful than trying to fix a discrepancy by changing the length until two unrelated screenshots look similar.

RSI indicator FAQ

What does the RSI indicator mean?

RSI compares smoothed upward and downward price changes and converts their ratio to a 0–100 scale. The standard version uses changes between consecutive closing prices. It describes momentum, not fair value or a guaranteed next price direction.

Is RSI below 30 a buy signal?

Below 30 is conventionally oversold. A falling market can stay oversold or continue falling after a bounce. A testable buy rule also needs a price trigger, invalidation, execution and exit conditions.

What is the RSI 70/30 rule?

It labels readings above 70 as overbought and below 30 as oversold. It does not require selling every reading above 70 or buying every reading below 30. Define any crossing or recovery event precisely before testing it.

What does RSI 50 mean?

It means the smoothed average gain and loss measures are equal. Above 50 favors the gain measure and below 50 favors the loss measure. A reading around 50 alone does not prove that the price chart has no trend.

What are the best RSI settings for a five-minute chart?

No universally best setting is established here. Length 14, Source Close and Timeframe Chart provide a reproducible baseline. Compare shorter or longer lengths with the same entry rules, session, costs and separate evaluation sample.

Does RSI 14 always mean fourteen days?

No. It refers to fourteen calculation bars. On a five-minute calculation those bars are five minutes each; on a daily calculation they are daily bars. Wilder's recursive smoothing also carries a diminishing influence from earlier observations.

What do RSI 6, 12 and 24 mean?

They are different RSI lengths applied to the selected calculation timeframe. Shorter lengths react more quickly to recent changes; longer lengths react more gradually. They are not fixed holding periods or profit targets.

How do I add RSI on TradingView?

Open Indicators, metrics, and strategies, search Relative Strength Index, and choose the built-in Relative strength index under Technicals. Double-click its RSI label to inspect Inputs and Style.

Does Smoothing Type None remove Wilder smoothing?

No. It removes the additional moving average plotted alongside RSI. The underlying standard RSI still uses its own Wilder-style gain and loss smoothing. The extra average has a separate type and length.

What is regular RSI divergence?

Regular bullish divergence pairs a lower price low with a higher RSI low. Regular bearish divergence pairs a higher price high with a lower RSI high. Use corresponding pivots and allow for confirmation delay; the pattern does not guarantee reversal.

How is hidden divergence different?

Hidden bullish divergence pairs a higher price low with a lower RSI low. Hidden bearish divergence pairs a lower price high with a higher RSI high. These are often studied within a continuation context rather than as the regular reversal pattern.

What is an RSI failure swing?

A bullish failure swing moves below 30, rebounds above 30, holds above 30 on a pullback and then breaks the intermediate RSI high. The bearish version reverses the sequence around 70. It is defined by RSI turns and does not require price divergence.

Why do RSI values change before a candle closes?

The closing input is still developing during the current candle. A higher-timeframe RSI can also develop while that larger candle is forming. Match the calculation timeframe and Wait for timeframe closes option when comparing live and historical readings.

Is RSI the same as Stochastic RSI or MACD?

No. Stochastic RSI locates RSI within its own recent range. MACD compares moving averages of price. Their scales, calculations and signals differ, so the same threshold numbers cannot be transferred between them automatically.

Compare HDP discounts

Lucid 30% · Tradeify 30% · TPT 50%.

See current offers ↗

Eligible partner plans only.