//@version=5 indicator("Trend Volume Accumulations", shorttitle=

//@version=5 indicator("Trend Volume Accumulations", shorttitle=

//@version=5
indicator("Trend Volume Accumulations", shorttitle="TVA", overlay=false)

// Parameters
length = input.int(14, title="Length")
smooth = input.int(3, title="Smoothing")

// Calculate Trend Volume Accumulations
tva = ta.cum(volume * (close - open)) / length

// Smooth the TVA
tva_smoothed = ta.sma(tva, smooth)

// Plot the TVA
plot(tva_smoothed, color=color.blue, title="TVA")

// Plot zero line
hline(0, "Zero Line", color=color.gray)

Read More

Share:

Latest News