RcppStreams (version 0.1.3)

crossAlert: Alert for cross of two moving averages

Description

This is an example function illustrating Streamulus

Usage

crossAlert(f1, f2)

Arguments

f1

Parameter for the slower exponential moving average

f2

Parameter for the faster exponential moving average

Value

An unconditional TRUE value

Examples

Run this code
# NOT RUN {
crossAlert(10,20)
# }

Run the code above in your browser using DataCamp Workspace