sigTimestamp: generate a signal on a timestamp

Description Usage Arguments

View source: R/signals.R

Description

This will generate a signal on a specific timestamp or at a specific time every day, week, weekday, etc.

Usage

1
sigTimestamp(label, data = mktdata, timestamp, on = "days")

Arguments

label

text label to apply to the output

data

data to apply formula to

timestamp

either a POSIXct-based object, or a character string denoting a 24-hour time (e.g. "09:00", "16:00")

on

only used if timestamp is character; passed to split.xts, therefore on may be a character describing the time period as listed in endpoints, or a vector coercible to factor (e.g. .indexday)


cloudcell/quantstrat documentation built on May 13, 2019, 8:03 p.m.