sigPeak: signal function for peak/valley signals

Description Usage Arguments

View source: R/signals.R

Description

This function tests to see if the mktdata or indicator column observations on either side are lower(higher) creating a local peak(bottom).

Usage

1
sigPeak(label, data, column, direction = c("peak", "bottom"))

Arguments

label

text label to apply to the output

data

data to apply comparison to

column

named column to apply comparison to

direction

one of "peak" or "bottom" to calculate peaks for


naturalsmen/quantstrat documentation built on May 23, 2017, 10:38 a.m.