TradingView
wbburgin
4 אוק׳ 2023 19:24

Volume-Weighted RSI [wbburgin] 

Bitcoin / U.S. dollarBitstamp

תיאור

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.

הערות שחרור

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
תגובות
Parimal_S
Thank you for making trading so simple!
Parimal_S
@Parimal_S, one request. Can you add alert for abnormal volume /price. i tried to do it but but not able to create.
wbburgin
@Parimal_S, Sure, I will add that today
wbburgin
@Parimal_S, Just added it! Thanks for the suggestion.
Parimal_S
@wbburgin, Thank you
wbburgin
@Parimal_S, Make sure that you set the alerts to trigger on close, unless you want the alerts to potentially trigger mid-bar (because volume can change rapidly before the bar closes, and the signal only stays on the plot if the condition is fulfilled right before it closes)
punthakanmoomamee
please make alert all function.
עוד