编辑精选OPEN-SOURCE SCRIPT

Relative Strength of Volume Indicators by DGT

已更新
The Relative Strength Index (RSI), developed by J. Welles Wilder, is a momentum oscillator that measures the speed and change of price movements.

• Traditionally the RSI is considered overbought when above 70 and may be primed for a trend reversal or corrective pullback in price, and oversold or undervalued condition when below 30. During strong trends, the RSI may remain in overbought or oversold for extended periods.

• Signals can be generated by looking for divergences and failure swings. If underlying prices make a new high or low that isn't confirmed by the RSI, this divergence can signal a price reversal. If the RSI makes a lower high and then follows with a downside move below a previous low, a Top Swing Failure has occurred. If the RSI makes a higher low and then follows with an upside move above a previous high, a Bottom Swing Failure has occurred

• RSI can also be used to identify the general trend. In an uptrend or bull market, the RSI tends to remain in the 40 to 90 range with the 40-50 zone acting as support. During a downtrend or bear market the RSI tends to stay between the 10 to 60 range with the 50-60 zone acting as resistance

This study aim to implement Relative Strength concept on most common Volume indicators, such as
Accumulation Distribution is a volume based indicator designed to measure underlying supply and demand
Elder's Force Index (EFI) measures the power behind a price movement using price and volume
Money Flow Index (MFI) measures buying and selling pressure through analyzing both price and volume (used as it is)
On Balance Volume (OBV), created by Joe Granville, is a momentum indicator that measures positive and negative volume flow
Price Volume Trend (PVT) is a momentum based indicator used to measure money flow

Plotting will be performed for regular RSI and RSI of Volume indicator (RSI(VOLX)) selected from the dialog box, where the possibility to apply smoothing is provided as option. Additionally, labels can be added optionally to display the value and name of selected volume indicator

Secondly, ability to present Volume Histogram within the same study along with its Moving Average or Volume Oscillator based on selection

Finally, Volume Based Colored Bars, a study of Kıvanç Özbilgiç is added to emphasis volume changes on top of the bars

Nothing excessively new, the study combines RSI with;
- RSI concept applied to some of the common Volume indicators presented with a highlighted over/under valued threshold area, optional labeling and smoothing,
- added Volume data with additional information and
- colored bars based on volume

Thanks Vishant_Meshram for the inspiration 🙏

Disclaimer:
Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely

The script is for informational and educational purposes only. Use of the script does not constitute professional and/or financial advice. You alone have the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script
版本注释
Despite volume being measured numerically, the actual individual quantitative value of volume is not relevant. Instead, traders and analysts shall look to the volume changes over time, which carries all of the weight of analysis.
with this study, a normalization is applied to volume histogram so to be able to plot it meangfully in conjunction with relative strenght index lines. For whom interested with the the actual quantitative value of volume, on specific exchange, a label is added displaying the quantitative value of volume at the time being under investigation
版本注释
small fix
版本注释
volume histogram size made adjustable from user dialog box
to reverse the histogram, simply setting negative numbers will be enough

thanks @adrianbrevig for your valuable suggestion
版本注释
4 color coded relative volume histogram display added
volume increases above the moving average will be presented in green and red, and average volume values with back and gray.
hence this updated is adding ability to emphasis notable increases in the volume
版本注释
color code corrected when volume histogram is reversed

thanks for the warning hardmangames77
版本注释
Buying/Selling relative volume histogram option added,
Performance optimization,
Pine Script v5 update
Lables removed
版本注释
bug correction
accdistbuyingvolumeDGTElder's Force Index (EFI)histogramRelative Strength Index (RSI)rvolsellingvolumeTrend AnalysisVolume

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明