Type: Package
Title: Price Patterns and Technical Indicators
Version: 0.0-1
Date: 2019-05-09
Maintainer: Enrico Schumann <es@enricoschumann.net>
Description: Functions for technical analysis: price patterns, indicators, and more.
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
Suggests: PMwR
URL: http://enricoschumann.net/R/packages/technical/
NeedsCompilation: no
Packaged: 2024-04-07 16:51:13 UTC; es19
Author: Enrico Schumann ORCID iD [aut, cre]
Built: R 4.5.0; ; 2024-04-07 16:51:13 UTC; unix

Find Local Minima and Maxima in a Time-Series

Description

Find local minima and maxima in a time-series by comparing points with their neighbours.

Usage

  .local_min(x, k = 10, min.d = 0)
  .local_max(x, k = 10, min.d = 0)

Arguments

x

a vector (or a list)

k

an integer

min.d

where to start

Details

Experimental.

Value

a vector (or a list)

Author(s)

Enrico Schumann

Examples

.local_min(runif(20), k = 10, min.d = 0)