Learn R Programming

RcppStreams (version 0.1.4)

crossAlert: Alert for cross of two moving averages

Description

This is an example function illustrating Streamulus

Usage

crossAlert(f1, f2)

Value

An unconditional TRUE value

Arguments

f1

Parameter for the slower exponential moving average

f2

Parameter for the faster exponential moving average

Author

Dirk Eddelbuettel

Examples

Run this code
if (FALSE) {
crossAlert(10,20)
}

Run the code above in your browser using DataLab