


% -*- texinfo -*-
% @deftypefn {Function File} {rsi} = rsindex (closeprice)
% @deftypefnx {Function File} {rsi} = rsindex (closeprice, nperiods)
%
% Compute the relative strength index (RSI) of an asset from the vector
% of closing prices (@var{closeprice}). @var{nperiods} defines the
% number of periods that the rsi should be calculated for
% (default: 14).
%
% The beginning of the @var{rsi} is padded with nans to match the size
% of @var{closeprice}.
%
% @seealso{}
% @end deftypefn