The Octave Forge package repository is no longer actively maintained. Please find Octave Packages at https://packages.octave.org.

Navigation

Operators and Keywords

Function List:

C++ API

Function File: pvi = posvolidx (closeprice, vol)
Function File: pvi = posvolidx ([closeprice vol])
Function File: pvi = posvolidx (closeprice, vol, initpvi)
Function File: pvi = posvolidx ([closeprice vol], initpvi)

Compute the positive volume index of a security based on its closing price (closeprice) and volume. They may be given as separate arguments or as an nx2 matrix. If given, the initpvi is the starting value of the pvi (default: 100).

The pvi will always be a column vector.

See also: onbalvol, negvolidx.

Package: financial