PVO

Calculates the Percentage Volume Oscillator indicator.

Accepts the following parameters:

Parameter NameTypeDefault ValueNotes
fastPeriodNumber12-
slowPeriodNumber26-

Returns: Series<Number>

PVO is a built-in function - you can use it directly. Below is an example implementation:

1234
function PVO(fastPeriod = 12, slowPeriod = 26):
shortEMA = EMA(volume, fastPeriod)
longEMA = EMA(volume, slowPeriod)
100 * ((shortEMA - longEMA) / longEMA)