OPEN-SOURCE SCRIPT

Volumen con línea promedio

52
//version=6
indicator("Volumen con línea promedio", overlay=false)

periodo = input.int(20, title="Período de media")
volumen = volume
mediaVolumen = ta.sma(volumen, periodo)

colorBarra = volumen > mediaVolumen ? color.green : color.red

plot(volumen, title="Volumen", style=plot.style_columns, color=colorBarra)
plot(mediaVolumen, title="Línea promedio", color=color.orange, linewidth=2, style=plot.style_line)

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.