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
devoffs() : closing all windows.
getcontentgraph(mydate, days, tableintervaldays, ids, periodtext) : show a graph for given ids
out getrisinggraph(market, mydate, days, tableintervaldays, topbottom, myperiodtexts) : show a graph over best risers (outdated)
getbottomgraph(market, mydate, days, tablemoveintervaldays, topbottom, myperiodtexts, sort=?, macddays=?, wantrise=?, wantmacd=?, wantrsi=?) : show the bottom for period
gettopgraph(market, mydate, days, tablemoveintervaldays, topbottom, myperiodtexts, sort=?, macddays=?, reverse=?, wantrise=?, wantmacd=?, wantrsi=?) : show the top for period
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 |