General Features
Most functionality in ApaLibNET is calculated from return time series. A “time series” is a set of return observations organized in a vector (a range consisting of one column and a certain number of rows). Note that time series data is ordered data: The first entry in the vector is assumed to be the first observation. A “time series matrix” is a set of time series, each column containing one series and each row containing observations at a particular point in time.
Returns are percentage figures, i.e. r = 2.54% = 0.0254.
Returns can be of any frequency, i.e. daily, monthly. The results will be of the same frequency (i.e. daily, monthly). All input returns are assumed to be of the same frequency (e.g. portfolio returns and risk-free rate when calculating a Sharpe Ratio).
Functions returning more than one result (e.g. apaMaxDrawdown) have to be entered as so-called “array formulas”. With the help of the function apaResize(), array formulas are adjusted automatically to display all results.
We are offering example spreadsheets illustrating the use of the function. We are also offering video tutorials on how to work with the functions efficiently. Please visit www.andreassteiner.net/apalib for more information.
When performing invalid calculations, functions will return system-level error messages whenever possible. Compared to Excel’s #VALUE, explicit error messages help users debugging their spreadsheets.
The add-in does not make use of Microsoft’s built-in random number generator, but the “Multiply-With-Carry” generator developed by George Marsaglia. This random generator invokes simple integer arithmetic only and leads to very fast generation of sequences of random numbers (about 15% faster than the internal generator) with an immense period, passing all tests in the DIEHARD tests of randomness.
Several numerical intense functions can be “switched off” with an optional Boolean parameter “DoSwitchOff”. If DoSwitchOff=TRUE, the functions will return an error-like string “#OFF”
Several numerical intense functions will not perform calculations in Excel’s function wizard. “#WIZARD” will be shown instead of the result.
A check for available updates is performed whenever the add-in is loaded and the computer is connected to the Internet. The user can control whether new releases are installed or not. Note that the new version is available when the add-in is loaded the next time.
Jagged functions can handle non-numeric input data, i.e. blanks, Excel error messages, text data etc.
