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


cloudcell/quantstrat documentation built on May 13, 2019, 8:03 p.m.