OPEN-SOURCE SCRIPT

Volume-Weighted RSI [wbburgin]

Updated
The Volume-Weighted RSI takes a new approach to the traditional calculation of the RSI in using a price::volume calculation. As some traders consider volume to be a leading indicator for price, the volume-weighted RSI can come in handy if you want to visualize volume easier.

Usage
This indicator builds the RSI from the square of the volume change and the price. If the volume decreases rapidly with the price, the volume-weighted RSI will fall; if the volume increases rapidly with the price, the volume-weighted RSI will rise.

You may notice crosses and circles appearing above and below the indicator. These indicate abnormal volume or price:

  • A green cross indicates abnormal upward price
  • A red cross indicates abnormal downward price
  • A green circle indicates abnormal positive volume
  • A red circle indicates abnormal negative volume


A green bar indicates both abnormal price and volume (positive), while a red bar indicates both abnormal price and volume (negative).

The thresholds of what are considered "normal" and "abnormal" are controlled by the "SD Multiple" in your settings (standard deviation). A higher multiple will make less of these signals occur, and you can turn them and the bars off at any time.

I have a built-in Light Style and Dark Style so that your preference of background won't affect seeing the indicator. You can also change the colors and the overbought/oversold lines in your settings.
Release Notes
Added 'plot volume-weighted RSI' option to the settings to turn the RSI on/off (use this instead of going into 'style').
Release Notes
Previous code included an unnecessary argument which would cause a bug under specific circumstances.
Release Notes
Added alerts for abnormal volume, abnormal price, and RSI crossovers
Relative Strength Index (RSI)rsi_divergenceVOLUMEBREAKOUTVolumevolumeweighted

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


FAQ: I am gradually phasing out my Patreon because of the time it takes to maintain.

BTC: 35PdMMMXFCvPjXKwn8wsRFNwMEPgStaKUJ

Test my strategies on CryptoRobotics: cryptorobotics.co/?trade=f23b09

Disclaimer