Options360

MACDV

Options360 Updated   
MACDV = Moving Average Convergence Divergence Volume

The MACDV indicator uses stochastic accumulation / distribution volume inflow and outflow formulas to visualize it in a standard MACD type of appearance.

To be able to merge these formulas I had to normalize the math.
Accumulation / distribution volume is a unique scale.
Stochastic is a 0-100 scale.
MACD is a unique scale.

The normalized output scale range for MACDV is -100 to 100.
100 = overbought
-100 = oversold

Everything in between is either bullish or bearish.
Rising = bullish
Falling = bearish
crossover = bullish
crossunder = bearish
convergence = direction change
divergence = momentum

The default input settings are:
7 = K length, Stochastic accumulation / distribution length

3 = D smoothing, smoothing stochastic accumulation / distribution volume weighted moving average

6 = MACDV fast, MACDV fast length line
color = blue

13 = MACDV slow, MACDV slow length line
color = white

4 = MACDV signal, MACDV histogram length
color rising above 0 = bright green
color falling above 0 = dark green
color falling below 0 = bright red
color rising below 0 = dark red

2 = Stretch, Output multiplier for MACDV visual expansion

Horizontal lines:
100
75
50
25
0
-25
-50
-75
-100
Release Notes:
add cross options:
bullish macdLine crossover signalLine = green tiny circle
bearish macdLine crossunder signalLine = red tiny circle
Release Notes:
10/7/23 update:
Fine tune default input lengths.
Add a total line option.
Add a PVT or AD option.
Add a bullish or bearish tiny dot option.
Release Notes:
10/14/23 update:
Add 6 volume source options:
Accumulation Distribution
Price Volume Trend
Positive Volume Index
On Balance Volume
Money Flow Index
Average of all 5

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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?