


% -*- texinfo -*-
% @deftypefn {Function File} {pvi} = posvolidx (closeprice, vol)
% @deftypefnx {Function File} {pvi} = posvolidx ([closeprice vol])
% @deftypefnx {Function File} {pvi} = posvolidx (closeprice, vol, initpvi)
% @deftypefnx {Function File} {pvi} = posvolidx ([closeprice vol], initpvi)
%
% Compute the positive volume index of a security based on its closing
% price (@var{closeprice}) and @var{vol}ume. They may be given as
% separate arguments or as an nx2 matrix. If given, the @var{initpvi}
% is the starting value of the pvi (default: 100).
%
% The @var{pvi} will always be a column vector.
%
% @seealso{onbalvol, negvolidx}
% @end deftypefn