Determine an appropriate boxsize, if you want to use logarithmic scale.

Share:

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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.