sigPeak: signal function for peak/valley signals

Description Usage Arguments

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


redmode/quantstrat documentation built on May 27, 2019, 4:04 a.m.