# Created by Octave 3.2.4, Tue Nov 23 12:51:50 2010 EST <mockbuild@jetta.math.Princeton.EDU.private>
# name: cache
# type: cell
# rows: 3
# columns: 28
# name: <cell-element>
# type: string
# elements: 1
# length: 7
bolling
# name: <cell-element>
# type: string
# elements: 1
# length: 716
 -- Function File:  bolling (asset, samples)
 -- Function File:  bolling (asset, samples, alpha)
 -- Function File:  bolling (asset, samples, alpha, width)
 -- Function File: [movavg, upperband, lowerband] = bolling (asset,
          samples, ...)
     If no output is requested, plot the bollinger bands of the ASSET.
     If output is requested, return the values for the bollinger bands.
     If given, ALPHA is the weighting power of the moving average; 0
     (default) is the simple moving average, see `movavg' for the full
     definition.  WIDTH is the number of standard deviations to plot
     above and below the moving average (default: 2).

     See also: movavg, candle, dateaxis, highlow, pointfig



# name: <cell-element>
# type: string
# elements: 1
# length: 65
If no output is requested, plot the bollinger bands of the ASSET.

# name: <cell-element>
# type: string
# elements: 1
# length: 8
dateaxis
# name: <cell-element>
# type: string
# elements: 1
# length: 669
 -- Function File:  dateaxis ()
 -- Function File:  dateaxis (ax)
 -- Function File:  dateaxis (ax, dateform)
 -- Function File:  dateaxis (ax, dateform, startdate)
 -- Function File:  dateaxis (h, ...)
     Convert the current axis tick labels (or the axis handle H) to a
     date format.  The axis given by AX ("x", "y", or "z") will be
     changed; the default is "x".  The date format, DATEFORM, used will
     be either auto-determined or an integer corresponding to the date
     formats in datestr. If STARTDATE is given, then the first tick
     value on the given axis is assumed to be that date.

     See also: bolling, candle, highlow, movavg, pointfig



# name: <cell-element>
# type: string
# elements: 1
# length: 77
Convert the current axis tick labels (or the axis handle H) to a date
format.

# name: <cell-element>
# type: string
# elements: 1
# length: 5
effrr
# name: <cell-element>
# type: string
# elements: 1
# length: 191
 -- Function File: RETURN = effrr (RATE, NUMPERIODS)
     Compute the effective rate of return based on a nominal RATE over
     a number of periods, NUMPERIODS.

     See also: irr, nomrr



# name: <cell-element>
# type: string
# elements: 1
# length: 80
Compute the effective rate of return based on a nominal RATE over a
number of pe

# name: <cell-element>
# type: string
# elements: 1
# length: 5
fetch
# name: <cell-element>
# type: string
# elements: 1
# length: 1237
 -- DATA =: fetch (CONN, SYMBOL)
 -- DATA =: fetch (..., FIELDS)
 -- DATA =: fetch (..., DATE)
 -- DATA =: fetch (..., FROMDATE, TODATE)
 -- DATA =: fetch (..., PERIOD)
 -- [DATA, FIELDS] =: fetch (...)
     Download stock data from a connection.

     FIELDS are the data fields to download and must come from the set
        * "Symbol"

        * "Last"

        * "Date"

        * "Time"

        * "Change"

        * "Open"

        * "High",

        * "Low"

        * "Volume"

     As an output, FIELDS may be different than your request.  This is
     because there is mapping of field names from the data source to
     the output, and what is returned is the source mapping to allow
     validation.

     DATE is the date string or datenum for the requested data.  If you
     enter today's date, you will get yesterday's data. FROMDATE and
     TODATE allow you to specify a date range for the data.

     PERIOD (default: "d") allows you to select the period for the data
     which can be any of the below as long as they are supported by the
     associated backend.
        * 'd': daily

        * 'w': weekly

        * 'm': monthly (Yahoo only)

        * 'v': dividends (Yahoo only)

     See also: yahoo, google



# name: <cell-element>
# type: string
# elements: 1
# length: 38
Download stock data from a connection.

# name: <cell-element>
# type: string
# elements: 1
# length: 2
fv
# name: <cell-element>
# type: string
# elements: 1
# length: 551
 -- Function File:  fv (R, N, P, L, METHOD)
     Return the future value at the end of period N of an investment
     which consists of N payments of P in each period, assuming an
     interest rate R.

     The optional argument L may be used to specify an additional
     lump-sum payment.

     The optional argument METHOD may be used to specify whether the
     payments are made at the end (`"e"', default) or at the beginning
     (`"b"') of each period.

     Note that the rate R is specified as a fraction (i.e., 0.05, not 5
     percent).


# name: <cell-element>
# type: string
# elements: 1
# length: 80
Return the future value at the end of period N of an investment which
consists o

# name: <cell-element>
# type: string
# elements: 1
# length: 3
fvl
# name: <cell-element>
# type: string
# elements: 1
# length: 254
 -- Function File:  fvl (R, N, L)
     Return the future value at the end of N periods of an initial lump
     sum investment L, given a per-period interest rate R.

     Note that the rate R is specified as a fraction (i.e., 0.05, not 5
     percent).


# name: <cell-element>
# type: string
# elements: 1
# length: 80
Return the future value at the end of N periods of an initial lump sum
investmen

# name: <cell-element>
# type: string
# elements: 1
# length: 6
google
# name: <cell-element>
# type: string
# elements: 1
# length: 414
 -- Function File: CONN = google ()
 -- Function File: CONN = google (URL, IPADDRESS, PORT)
     Prepare a Google connection for the fetch command to get Google
     historical quote data.

     If given, the URL must be "http://finance.google.com".  The
     IPADDRESS and PORT is the proxy ipaddress and port. These
     parameters are currently ignored (with a warning if given).

     See also: fetch, yahoo



# name: <cell-element>
# type: string
# elements: 1
# length: 80
Prepare a Google connection for the fetch command to get Google
historical quote

# name: <cell-element>
# type: string
# elements: 1
# length: 5
hhigh
# name: <cell-element>
# type: string
# elements: 1
# length: 287
 -- Function File: hhv = hhigh (data)
 -- Function File: hhv = hhigh (data, nperiods)
 -- Function File: hhv = hhigh (data, nperiods, dim)
     Compute the highest high value of DATA for the past NPERIODS
     (default: 14) across the dimension, DIM (default: 1).

     See also: llow



# name: <cell-element>
# type: string
# elements: 1
# length: 80
Compute the highest high value of DATA for the past NPERIODS (default:
14) acros

# name: <cell-element>
# type: string
# elements: 1
# length: 7
highlow
# name: <cell-element>
# type: string
# elements: 1
# length: 471
 -- Function File: h = highlow (high, low, close)
 -- Function File: h = highlow (high, low, close, open)
 -- Function File: h = highlow (high, low, close, open, color)
     Plot the HIGH, LOW, and CLOSE of a security.  The CLOSE is plotted
     as a tick to the right, and if OPEN is given and non-empty, it is
     plotted as a tick to the left.  The color can override the default
     color for the plot.

     See also: bolling, candle, dateaxis, movavg, pointfig



# name: <cell-element>
# type: string
# elements: 1
# length: 44
Plot the HIGH, LOW, and CLOSE of a security.

# name: <cell-element>
# type: string
# elements: 1
# length: 3
irr
# name: <cell-element>
# type: string
# elements: 1
# length: 266
 -- Function File:  irr (P, I)
     Return the internal rate of return of a series of payments P from
     an initial investment I (i.e., the solution of `npv (r, p) = i'.
     If the second argument is omitted, a value of 0 is used.

     See also: npv, pv, rate



# name: <cell-element>
# type: string
# elements: 1
# length: 80
Return the internal rate of return of a series of payments P from an
initial inv

# name: <cell-element>
# type: string
# elements: 1
# length: 4
llow
# name: <cell-element>
# type: string
# elements: 1
# length: 283
 -- Function File: llv = llow (data)
 -- Function File: llv = llow (data, nperiods)
 -- Function File: llv = llow (data, nperiods, dim)
     Compute the lowest low value of DATA for the past NPERIODS
     (default: 14) across the dimension, DIM (default: 1).

     See also: hhigh



# name: <cell-element>
# type: string
# elements: 1
# length: 80
Compute the lowest low value of DATA for the past NPERIODS (default:
14) across 

# name: <cell-element>
# type: string
# elements: 1
# length: 4
mirr
# name: <cell-element>
# type: string
# elements: 1
# length: 338
 -- Function File: RETURN = mirr (CASHFLOW, FINRATE, REINVESTRATE)
     Compute the modified internal rate of return.  Take periodic
     CASHFLOWs as a vector and the finance rate, FINRATE, for negative
     cash flows and a reinvestment rate, REINVESTRATE, for positive
     cash flows.

     See also: irr, effrr, nomrr, pvvar, xirr



# name: <cell-element>
# type: string
# elements: 1
# length: 45
Compute the modified internal rate of return.

# name: <cell-element>
# type: string
# elements: 1
# length: 6
movavg
# name: <cell-element>
# type: string
# elements: 1
# length: 726
 -- Function File:  movavg (asset, lead, lag)
 -- Function File:  movavg (asset, lead, lag, alpha)
 -- Function File: [short, long] = movavg (asset, lead, lag, alpha)
     Calculate the LEADing and LAGging moving average of an ASSET. If
     given, ALPHA is the weighting power of the delay; 0 (default) is
     the simple moving average, 0.5 would be the square root weighted
     moving average, 1 would be linear, 2 would be squared, ..., and
     'e' is the exponential moving average.

     If no output is requested the data is plotted.  The plots are drawn
     in the following order: asset, lag, lead.  If output is requested,
     no plot is generated.

     See also: bolling, candle, dateaxis, highlow, pointfig



# name: <cell-element>
# type: string
# elements: 1
# length: 61
Calculate the LEADing and LAGging moving average of an ASSET.

# name: <cell-element>
# type: string
# elements: 1
# length: 9
negvolidx
# name: <cell-element>
# type: string
# elements: 1
# length: 570
 -- Function File: nvi = negvolidx (closeprice, vol)
 -- Function File: nvi = negvolidx ([closeprice vol])
 -- Function File: nvi = negvolidx (closeprice, vol, initnvi)
 -- Function File: nvi = negvolidx ([closeprice vol], initnvi)
     Compute the negative 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 INITNVI is
     the starting value of the nvi (default: 100).

     The NVI will always be a column vector.

     See also: onbalvol, posvolidx



# name: <cell-element>
# type: string
# elements: 1
# length: 80
Compute the negative volume index of a security based on its closing
price (CLOS

# name: <cell-element>
# type: string
# elements: 1
# length: 5
nomrr
# name: <cell-element>
# type: string
# elements: 1
# length: 191
 -- Function File: RETURN = nomrr (RATE, NUMPERIODS)
     Compute the nominal rate of return based on a effective RATE over
     a number of periods, NUMPERIODS.

     See also: irr, effrr



# name: <cell-element>
# type: string
# elements: 1
# length: 80
Compute the nominal rate of return based on a effective RATE over a
number of pe

# name: <cell-element>
# type: string
# elements: 1
# length: 4
nper
# name: <cell-element>
# type: string
# elements: 1
# length: 579
 -- Function File:  nper (R, P, A, L, METHOD)
     Return the number of regular payments of P necessary to amortize A
     loan of amount A and interest R.

     The optional argument L may be used to specify an additional
     lump-sum payment of L made at the end of the amortization time.

     The optional argument METHOD may be used to specify whether
     payments are made at the end ("E", default) or at the beginning
     ("B") of each period.

     Note that the rate R is specified as a fraction (i.e., 0.05, not 5
     percent).

     See also: pv, pmt, rate, npv



# name: <cell-element>
# type: string
# elements: 1
# length: 80
Return the number of regular payments of P necessary to amortize A loan
of amoun

# name: <cell-element>
# type: string
# elements: 1
# length: 3
npv
# name: <cell-element>
# type: string
# elements: 1
# length: 528
 -- Function File:  npv (R, P, I)
     Returns the net present value of a series of irregular (i.e., not
     necessarily identical) payments P which occur at the ends of N
     consecutive periods.  R specifies the one-period interest rates and
     can either be a scalar (constant rates) or a vector of the same
     length as P.

     The optional argument I may be used to specify an initial
     investment.

     Note that the rate R is specified as a fraction (i.e., 0.05, not 5
     percent).

     See also: irr, pv



# name: <cell-element>
# type: string
# elements: 1
# length: 58
Returns the net present value of a series of irregular (i.

# name: <cell-element>
# type: string
# elements: 1
# length: 8
onbalvol
# name: <cell-element>
# type: string
# elements: 1
# length: 412
 -- Function File: obv = onbalvol (closeprice, vol)
 -- Function File: obv = onbalvol ([closeprice vol])
     Compute the on balance volume of a security based on its closing
     price (CLOSEPRICE) and VOLume.  They may be given as separate
     arguments or as an nx2 matrix.

     The output will be a column vector, and the first number in the
     output is always 0.

     See also: negvolidx, posvolidx



# name: <cell-element>
# type: string
# elements: 1
# length: 80
Compute the on balance volume of a security based on its closing price
(CLOSEPRI

# name: <cell-element>
# type: string
# elements: 1
# length: 3
pmt
# name: <cell-element>
# type: string
# elements: 1
# length: 451
 -- Function File:  pmt (R, N, A, L, METHOD)
     Return the amount of periodic payment necessary to amortize a loan
     of amount a with interest rate R in N periods.

     The optional argument L may be used to specify a terminal lump-sum
     payment.

     The optional argument METHOD may be used to specify whether
     payments are made at the end ("E", default) or at the beginning
     ("B") of each period.

     See also: pv, nper, rate



# name: <cell-element>
# type: string
# elements: 1
# length: 80
Return the amount of periodic payment necessary to amortize a loan of
amount a w

# name: <cell-element>
# type: string
# elements: 1
# length: 8
pointfig
# name: <cell-element>
# type: string
# elements: 1
# length: 233
 -- Function File:  pointfig (asset)
     Plot the point figure chart of an ASSET.  Upward price movements
     are plotted as Xs and downward movements are plotted as Os.

     See also: bolling, candle, dateaxis, highlow, movavg



# name: <cell-element>
# type: string
# elements: 1
# length: 40
Plot the point figure chart of an ASSET.

# name: <cell-element>
# type: string
# elements: 1
# length: 9
posvolidx
# name: <cell-element>
# type: string
# elements: 1
# length: 570
 -- 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



# name: <cell-element>
# type: string
# elements: 1
# length: 80
Compute the positive volume index of a security based on its closing
price (CLOS

# name: <cell-element>
# type: string
# elements: 1
# length: 2
pv
# name: <cell-element>
# type: string
# elements: 1
# length: 580
 -- Function File:  pv (R, N, P, L, METHOD)
     Returns the present value of an investment that will pay off P for
     N consecutive periods, assuming an interest R.

     The optional argument L may be used to specify an additional
     lump-sum payment made at the end of N periods.

     The optional argument METHOD may be used to specify whether
     payments are made at the end (`"e"', default) or at the beginning
     (`"b"') of each period.

     Note that the rate R is specified as a fraction (i.e., 0.05, not 5
     percent).

     See also: pmt, nper, rate, npv



# name: <cell-element>
# type: string
# elements: 1
# length: 80
Returns the present value of an investment that will pay off P for N
consecutive

# name: <cell-element>
# type: string
# elements: 1
# length: 3
pvl
# name: <cell-element>
# type: string
# elements: 1
# length: 263
 -- Function File:  pvl (R, N, P)
     Return the present value of an investment that will pay off P in
     one lump sum at the end of N periods, given the interest rate R.

     Note that the rate R is specified as a fraction (i.e., 0.05, not 5
     percent).


# name: <cell-element>
# type: string
# elements: 1
# length: 80
Return the present value of an investment that will pay off P in one
lump sum at

# name: <cell-element>
# type: string
# elements: 1
# length: 4
rate
# name: <cell-element>
# type: string
# elements: 1
# length: 486
 -- Function File:  rate (N, P, V, L, METHOD)
     Return the rate of return on an investment of present value V which
     pays P in N consecutive periods.

     The optional argument L may be used to specify an additional
     lump-sum payment made at the end of N periods.

     The optional string argument METHOD may be used to specify whether
     payments are made at the end (`"e"', default) or at the beginning
     (`"b"') of each period.

     See also: pv, pmt, nper, npv



# name: <cell-element>
# type: string
# elements: 1
# length: 80
Return the rate of return on an investment of present value V which
pays P in N 

# name: <cell-element>
# type: string
# elements: 1
# length: 7
rsindex
# name: <cell-element>
# type: string
# elements: 1
# length: 423
 -- Function File: rsi = rsindex (closeprice)
 -- Function File: rsi = rsindex (closeprice, nperiods)
     Compute the relative strength index (RSI) of an asset from the
     vector of closing prices (CLOSEPRICE).  NPERIODS defines the
     number of periods that the rsi should be calculated for (default:
     14).

     The beginning of the RSI is padded with nans to match the size of
     CLOSEPRICE.

     See also



# name: <cell-element>
# type: string
# elements: 1
# length: 80
Compute the relative strength index (RSI) of an asset from the vector
of closing

# name: <cell-element>
# type: string
# elements: 1
# length: 7
taxedrr
# name: <cell-element>
# type: string
# elements: 1
# length: 196
 -- Function File: RETURN = taxedrr (PRETAXRETURN, TAXRATE)
     Compute the taxed rate of RETURN based on a PRETAXRETURN rate and
     a TAXRATE.

     See also: irr, effrr, nomrr, pvvar, xirr



# name: <cell-element>
# type: string
# elements: 1
# length: 76
Compute the taxed rate of RETURN based on a PRETAXRETURN rate and a
TAXRATE.

# name: <cell-element>
# type: string
# elements: 1
# length: 3
vol
# name: <cell-element>
# type: string
# elements: 1
# length: 458
 -- Function File:  vol (X, M, N)
     Return the volatility of each column of the input matrix X.  The
     number of data sets per period is given by M (e.g. the number of
     data per year if you want to compute the volatility per year).
     The optional parameter N gives the number of past periods used for
     computation, if it is omitted, a value of 1 is used.  If T is the
     number of rows of X, `vol' returns the volatility from `n*m' to T.


# name: <cell-element>
# type: string
# elements: 1
# length: 59
Return the volatility of each column of the input matrix X.

# name: <cell-element>
# type: string
# elements: 1
# length: 5
yahoo
# name: <cell-element>
# type: string
# elements: 1
# length: 408
 -- Function File: CONN = yahoo ()
 -- Function File: CONN = yahoo (URL, IPADDRESS, PORT)
     Prepare a Yahoo connection for the fetch command to get Yahoo
     historical quote data.

     If given, the URL must be "http://quote.yahoo.com".  The IPADDRESS
     and PORT is the proxy ipaddress and port. These parameters are
     currently ignored (with a warning if given).

     See also: fetch, google



# name: <cell-element>
# type: string
# elements: 1
# length: 80
Prepare a Yahoo connection for the fetch command to get Yahoo
historical quote d

