getLogBoxsize: Determine an appropriate boxsize, if you want to use...

Description Usage Arguments Value Examples

View source: R/getLogBoxsize.R

Description

This function returns an appropriate boxsize if you want to do your point and figure analysis with an logarithmic scale.

Usage

1
getLogBoxsize(percent)

Arguments

percent

a numeric value defining the percent

Value

a numeric value which is equivalent to the percental change given on a logarithmic scale

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# apply it with pnfprocessor
library(rpnf) # Load rpnf library
data(DOW) # Load some example data

# return appropriate value for 1% boxsize
getLogBoxsize(percent=1)

pnfprocessor(
 high=DOW$High,
 low=DOW$Low,
 date=DOW$Date,
 boxsize=getLogBoxsize(percent=1),
 log=TRUE)


rpnf documentation built on May 19, 2017, 9:14 p.m.
Search within the rpnf package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.