TradingView
Skipper86
31 สิงหา 2021 เวลา 5 นาฬิกา 2 นาที

Accumulation/Distribution % 

Hecla Mining CompanyNYSE

คำอธิบาย

This script takes the signal from the Accumulation Distribution indicator invented by Larry Williams and normalizes it such that it becomes an oscillator about a zero line as described by John Bollinger in his book Bollinger on Bollinger Bands . The purpose of the indicator is to serve as a volume-based confirmation of signals given by other indicators, typically Bollinger Bands paired with a momentum indicator . In the example shown, Bollinger Bands are paired with Bollinger Bands %B and the Bollinger Bands %B indicator is interpreted similar to the Relative Strength Index ( RSI ) which is a momentum indicator .

The AD% indicator is colorized such that positive readings are green and negative readings are red. The readings become darker when approaching the zero line. The colorization is also displayed on the price chart. The chart type needs to be set to "bars" for price colorization to work properly.

The formula for this indicator is presented in the John Bollinger book as follows:
10-day sum of [(close-open)/( high-low )*volume]/10-sum of volume

How to use (my take on a strategy from the book):

1. Look for %B readings that are oversold or overbought (less than 0.00 or greater than 1.00)
2. Check for bearish divergence or bullish convergence of price and %B as shown on the chart
3. Verify divergence or convergence with AD%
4. Note previous trending/crossover behavior of AD% and %B and compare to situation being analyzed
5. A conservative trader may consider buying/selling on a close beyond the 20-day moving average and an AD% zero line crossover (color change)
6. An aggressive trader may consider buying/selling on a color change alone, on a breakdown of %B, or some other signal(s).

Securities behave differently from one another and this strategy doesn't work for all of them. As with any strategy, check past performance to make sure this approach is a good fit. Bandwidth ( volatility ) squeeze is another strategy which seems to work well for this security. For that reason, it was used to demonstrate buy signals, but squeezes aren't always so predictable. AD% may be useful for determining which direction a squeeze will resolve itself, as was the case here. Further information on volatility squeeze trading can be found in the John Bollinger book Bollinger on Bollinger Bands or online.

The default TradingView Accumulation Distribution indicator does not incorporate opening price. The formula used for this indicator does, so there are multiple versions of the A/D formula.

Despite the buy signal indicated, I'm not going long Hecla Mining here and I don't recommend it. I'd need to do further DD before doing so.

Please feel free to ask questions.
ความคิดเห็น
Skipper86
Update: I made an OBV (On Balance Volume) version of this and the signals aren't as reliable.
MAAG-40
@Skipper86, thank you for the script. I dont see any arrows on the main chart, only the bottom indicator wave is this correct?
Skipper86
@MAAG-40, You're welcome. The lines and arrows were drawn manually to illustrate a way to use the indicator. All the script does is create the histogram below and price chart colorization.
MAAG-40
@Skipper86, got it thank you!
Tom1trader
Great script idea and nice job, thanks!
ngoducvietds
Thanks
Time_Out_2021
Thank you for building and publishing this script :)
awesome work !
I am also quite the fan of John bollinger scripts and theories
muddy7
any chance of doing a script like this for OBV?
Skipper86
@muddy7, // This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org/MPL/2.0/
// © Skipper86

//@version=4
study(title="On Balance Volume %", shorttitle="OBV%", format=format.percent, precision=0, overlay=false, resolution="")
length = input(10, minval = 2, title="Calculation Period")

obv1 = sum(close>=close[1] ? volume : volume*-1,length)
//function would be cumulative rather than a summation if this was the standard OVB indicator but since it's a normalized oscillator,
//it's only looking back at the previous 10 (or whatever the calculation period is set to) bars

norm = 100*obv1/sum(volume,length)
//OBV normalized based on calculation period, multiplied by 100 to avoid decimal values on vertical axis

normcolor = (norm > 0) and (norm > norm[1]) ? #08A515 : (norm > 0) and (norm <= norm[1]) ? #025F08: (norm < 0) and (norm < norm[1]) ? #BB0000 : (norm < 0) and (norm >= norm[1]) ? #660011 : #FF9F00
//This code sets the coloration for both the upper price plot and lower oscillator plot
//Chart type must be set to "bars" for the upper coloration to work properly

barcolor(normcolor)
//Bar Color (upper plot)

plot(norm, color=normcolor, style=plot.style_columns, title = "OBV%")
//normalized OBV (lower plot)

//End of Script
joshibc81
Greetings!!!, Sir one small question. Is there any new script coming? Its been long time. Please.
เพิ่มเติม