Volume Intensity 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 Intensity Oscillator")
import peacefulLizard50262/peacefulIndicators/1 as p

length = input.int(200, "Length", 1)
clip   = input.bool(true, "Remove Negative Values")

volume_intensity_oscillator = p.rvo(length)

clipped = volume_intensity_oscillator <= 0 ? 0 : volume_intensity_oscillator

plot(clip ? clipped  : volume_intensity_oscillator, "Volume Intensity Oscillator", color = open > close ? #ef5350 : #26a69a, style = plot.style_columns)
