Chapter 11.  R

Usage is by sourcing the r/lib.r.

      source r/libr.r
    

This is defining variables, functions and reading in all of the database. After this is done, the following functions may be used (with =? parameters as optional with default):

Functions

The parameters used for this are:

Table 11.1.  Parameters

Parameter Description
market the chosen market
mydate the recent date, alternative NULL for getting the most recent, or a number for the previous days.
days the number of days to display
tableintervaldays the interval between the days for the graph (1 is recommended)
tablemoveintervaldays the interval between the days
topbottom number to show
myperiodtexts/periodtext a list or single periods to display
ids specific ids to display
wantrise boolean for whether to display rise in tablemoveintervaldays between days
reverse boolean for whether to show reversed order, default FALSE
wantmacd boolean for whether to display the MACD momementum, default FALSE
wantrsi boolean for whether to display the RSI, default FALSE
macddays number of days used for computing MACD and RSI, default 60
sort for what to sort on (VALUE, MACD, RSI), default VALUE