Volume Indicator (MA)
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © CryptoCoBean

//@version=5
indicator("Volume Indicator (MA)", overlay=true)
vol_ma = ta.sma(volume, 14)
color volume_candlecolor = na
if volume > vol_ma and (close > open)
    volume_candlecolor := color.aqua
if volume > vol_ma and (open > close)
    volume_candlecolor := color.red
barcolor(volume_candlecolor)
