GetEMACrossOverEvents: Get events for the EMA crossover technical indicator.

Description Usage Arguments Value Examples

Description

Get events for the EMA crossover technical indicator.

Usage

1
GetEMACrossOverEvents(x, fastEma = 12, slowEma = 26, type = "buy")

Arguments

x

A single column xts or matrix series with numeric values.

fastEma

Number of periods to average over for the faster moving EMA.

slowEma

Number of periods to average over for the slower moving EMA.

type

buy or sell. Defaults to buy.

Value

Logical vector where TRUE is the row that the event occured.

Examples

1
2
3
4
5
## Not run: 
data(YHOO)
GetEMACrossOverEvents(Ad(YHOO), 12, 26)

## End(Not run)

justinnafe/TechnicalEvents documentation built on May 20, 2019, 5:16 a.m.