Description Usage Arguments Value Examples
Get events for the SMA crossover technical indicator.
1 | GetSMACrossOverEvents(x, fastSma = 20, slowSma = 50, type = "buy")
|
x |
A single column xts or matrix series with numeric values. |
fastSma |
Number of periods to average over for the faster moving SMA. |
slowSma |
Number of periods to average over for the slower moving SMA. |
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)
GetSMACrossOverEvents(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.