This function tests to see if the mktdata or indicator column
observations
on either side are lower(higher) creating a local peak(bottom).
sigPeak(label, data, column, direction = c("peak", "bottom"))
text label to apply to the output
data to apply comparison to
named column to apply comparison to
one of "peak" or "bottom" to calculate peaks for