pnfprocessor {rpnf} | R Documentation |
Please ensure that high, low and date are all ordered according to the Date column.
pnfprocessor(high, low = high, date, reversal = 3L, boxsize = 1L,
log = FALSE, style = "xo")
high |
a vector containing the high quotes |
low |
a (optional) vector containing the low quotes |
date |
a vector of dates the quotes belong |
reversal |
number of boxes needed to make a reversal |
boxsize |
the boxsize to be used |
log |
should we do the calculations on a logarithmic scale |
style |
the style the pnfprocessor is working with. Can be {xo,rs,bp}. |
returns a data table with all point and figure information in it
http://rpnf.r-forge.r-project.org
library(rpnf) # Load rpnf library
data(DOW) # (Offline) Load free available sample data from https://www.quandl.com/data/WIKI/DOW
pnfdata <- pnfprocessor(
high=DOW$High,
low=DOW$Low,
date=DOW$Date,
boxsize=1L,
log=FALSE)
pnfdata