Pine Script v6 source file (.pine) + buyer guide

RSI Volume Strength for TradingView

Price RSI and a volume-flow RSI in one 0-100 pane, with an agreement ribbon and a volume heat strip.

Applying the same RSI calculation to a running volume total puts volume flow on the price RSI's 0-100 scale, so you can see whether volume is moving with price momentum or against it.

Illustration of RSI Volume Strength on AAPL daily: price RSI, OBV flow RSI, agreement ribbon and volume heat strip.
Example chart. Illustration only, not a trade recommendation.

RSI Volume Strength is a TradingView indicator that opens in its own pane below the price chart. It draws two lines on a 0 to 100 scale: Wilder's RSI of price (indigo, 14 bars, from the close by default) and the same RSI calculation applied to a running volume total (amber, 14 bars). The volume total is on-balance volume by default, or the accumulation/distribution line, price-volume trend, or a blend of all three.

Dashed lines mark 70 and 30, with faint shading between them and a dotted midline at 50. An agreement ribbon along the top of the pane is green while both lines are above 50 and red while both are below. A volume heat strip along the bottom colours each bar by its volume against the 20-bar average: grey when quiet, and green or red by the direction of the close when normal, high or very high. A readout box shows the latest values, and high-volume price bars can be coloured on the main chart (off by default).

When both lines rise or fall together, price momentum and volume flow agree; when they separate, the price move has less volume behind it. That is information to weigh, not a signal. The lines, ribbon, colours and alerts are chart markers. They are not trade recommendations and not financial advice.

What is in the download

  • RSI-Volume-Strength.pine: the full Pine Script v6 source code, to paste into the Pine Editor in your own TradingView account. Nothing is published on TradingView
  • Buyer guide (PDF): installing it, each line, ribbon and strip element, every input with its default, alert set-up, live-bar behaviour and how to update to a new version
  • Six alert conditions: price RSI rises above upper level, price RSI falls below lower level, flow RSI moves above price RSI, flow RSI moves below price RSI, both lines now above 50, both lines now below 50

What it does

Two lines on one scale

Price RSI and flow RSI share the 0-100 pane, both over 14 bars by default. Optional EMA smoothing (1 = off, up to 10) is applied to both lines together, so they stay comparable, for calmer lines that react a little later.

A choice of volume line

On-balance volume, the accumulation/distribution line, price-volume trend, or a blend that averages the three flow RSIs and is usually steadier than any one of them.

Agreement ribbon and levels

A thin ribbon at the top of the pane is green while both lines are above 50 and red while both are below. The upper and lower levels (70 and 30 by default) are inputs, and they set the two price RSI alerts.

Volume heat strip

Each bar is coloured by its volume divided by the 20-bar average: grey below 0.6 times, then pale, mid and dark green or red from 0.6, 1.5 and 2.5 times. The exact ratio is in the Data Window. Optionally, high-volume price bars take the same colours on the main chart.

Symbols without volume

Where the symbol has no volume data, the flow line, ribbon, heat strip and bar colouring are hidden and the readout says so. The price RSI, the levels and the two price RSI alerts still work.

When you would use it

Checking the volume behind a move

Price RSI climbs towards 70 on a daily chart while the flow RSI falls. The pane shows the move has less volume behind it, which you weigh alongside your own analysis.

Finding unusual-volume bars

You scroll back through recent months. The dark green and dark red sections of the heat strip show where volume ran at 2.5 times its average or more, without a separate volume pane.

An alert when both lines agree

On a paid TradingView plan, you create a 'Both lines now above 50' alert set to Once Per Bar Close, and look at the chart yourself when it fires.

Who it is for

  • RSI users who also watch volume. People who already use RSI and want volume flow on the same scale, in the same pane.
  • Chart users who make their own calls. Traders who want a clearer display and decide for themselves what to do with it.

Probably not for you if

  • Anyone looking for buy or sell instructions or a trading system
  • Anyone who needs traded volume on forex or CFD symbols: some of those feeds report tick counts, so the volume lines reflect activity on that feed only
  • People who do not use TradingView: the MetaTrader 5 Indicator Pack includes a MetaTrader 5 version

What you need

  • Your own TradingView account. You download the .pine file from Gumroad, paste it into your Pine Editor, save it and add it to a chart; the guide gives each step
  • Any TradingView plan, including the free Basic plan within its limits (2 indicators per chart, up to 5,000 bars of history). Alerts need a paid plan (Essential or higher); check tradingview.com/pricing for current limits
  • Works on any symbol and timeframe; the flow line, ribbon, heat strip and bar colouring need a symbol with volume data
  • Licensed for one buyer's personal use on their own TradingView account(s). Do not share, resell or publish the code, including on TradingView

Questions

Does it tell me when to buy or sell?

No. It shows where two lines sit against the levels, the 50 midline and each other. Signals are not recommendations, and what you do with them is your decision.

How do I get it onto my chart?

After you buy, you download the .pine file from Gumroad. In your own TradingView account you open the Pine Editor, create a new indicator, paste the code, save it and click Add to chart; the guide gives each step. Nothing is published on TradingView, and it works on the free Basic plan within that plan's limits.

Do the alerts work on the free TradingView plan?

Alerts on a custom indicator count as technical alerts, which TradingView's free plan does not appear to include. To use the six alerts you need a paid plan (Essential or higher), and each alert counts towards your plan's limit. Check tradingview.com/pricing for current limits.

Can an alert or bar colour appear and then disappear?

With 'Confirm on bar close' on (the default), alert conditions and price bar colouring only use closed bars. While a bar is forming, the lines, ribbon, strip and readout update with each price change, and they are fixed once it closes. No other timeframes or symbols are used.

Can I share the code or publish it on TradingView?

No. It is licensed for one buyer's personal use on their own TradingView account(s). You may change it for your own use, but you may not share, resell or publish it, on TradingView or anywhere else.

Also in Trading

About these figures. Both RSI lines are calculated from past and current bars; nothing in the indicator forecasts price, no performance is claimed, and it is not financial advice. Levels are conventions: RSI can stay above or below a level, or move straight through it, for long periods. Trading, and leveraged trading in particular, can lose money quickly.
Important — this is general information, not financial advice. This page covers a topic close to regulated financial advice (such as pensions, ISAs or tax) and is provided for education only. It does not account for your personal circumstances and is not a personal recommendation. Before making a decision you cannot easily reverse, consider speaking to an FCA-authorised adviser or a qualified tax adviser. Tax treatment depends on your individual circumstances and may change.

Last reviewed: