Volume-Weighted RSI [wbburgin]

wbburgin 已更新   
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.

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.
Added 'plot volume-weighted RSI' option to the settings to turn the RSI on/off (use this instead of going into 'style').
Previous code included an unnecessary argument which would cause a bug under specific circumstances.
Added alerts for abnormal volume, abnormal price, and RSI crossovers

PM me to test any of my strategies free for 7 days.

Invite-only indicators: www.patreon.com/wbburgin/membership
Test my strategies on CryptoRobotics: cryptorobotics.co/?trade=f23b09

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。