Home > freetb4matlab > financial > rsindex.m

rsindex

PURPOSE ^

%

SYNOPSIS ^

function rsi = rsindex (cl, n)

DESCRIPTION ^

% -*- 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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003