http://www.marketvolume.com/technicalanalysis/pvo.asp
The code I have written:
Code: Select all
// PVO - Percent Volume Oscillator - Function
Inputs:
Series ( NumericSeries ), // Volume or Ticks
FastLen ( NumericSimple ),
SlowLen ( NumericSimple );
Variables:
AvFast ( 0 ),
AvSlow ( 0 );
AvFast = XAverage(Series, FastLen);
AvSlow = XAverage(Series, SlowLen);
if (AvSlow > 0) then
PVO = (AvFast - AvSlow) / AvSlow * 100;
Code: Select all
// PVO - Percent Volume Oscillator - Indicator
Inputs:
AnyVol ( Volume ), // Volume or Ticks
FastLength ( 14 ),
SlowLength ( 28 ),
Zero ( 0 ),
Displace ( 0 );
Variables:
MyPVO ( 0 );
MyPVO = PVO(AnyVol, FastLength, SlowLength);
Plot1[Displace](MyPVO, "PVO");
Plot2(Zero, "Zero");