Description Usage Arguments Value Examples
Get events for the EMA crossover technical indicator.
1 | GetEMACrossOverEvents(x, fastEma = 12, slowEma = 26, type = "buy")
|
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. |
Logical vector where TRUE is the row that the event occured.
1 2 3 4 5 | ## Not run:
data(YHOO)
GetEMACrossOverEvents(Ad(YHOO), 12, 26)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.