Volume Flow Oscillator
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © peacefulLizard50262

//@version=5
indicator("Volume Flow Oscillator", overlay = false)
import peacefulLizard50262/peacefulIndicators/1 as p 

src     = input.source(hlcc4, "Source")
length  = input.int(8, "Short Length", 2)
vfo     = p.volume_flow_oscillator(src, length) 

plot(vfo, "Volume Flow Oscillator", color.orange)
plot(0, "0 Line", color.gray)

top = plot(70, "70", color.gray)
bot = plot(-70, "-70", color.gray)

fill(top, bot, color.new(color.blue, 80))