// Downloaded From https://www.WiseStockTrader.com
_SECTION_BEGIN( "Price Volume Oscillator" );
Periods = Param( "Periods", 20, 2, 200, 1 );
PROC = IIf( ROC( C, 1 ) > 0, V * ROC( C, 1 ), 0 );
NROC = IIf( ROC( C, 1 ) < 0, V * ROC( C, 1 ), 0 );
ROCresult = 100 *  ( Sum( PROC, Periods ) + Sum( NROC, Periods ) ) / ( Sum( PROC, Periods ) - Sum( NROC, Periods ) );
Plot( ROCresult , "Price*Volume Osc", ParamColor( "Color", colorCycle ), ParamStyle( "Style" )  );
_SECTION_END();