addRule: Add Rule to Trading Strategy

Description Usage Arguments Value Examples

View source: R/initiateStrategy.R

Description

Add Rule to Trading Strategy

Usage

1
addRule(strategy, rule)

Arguments

strategy

a trading strategy object

rule

trading rule definition

Value

returns trading strategy object with added rule

Examples

1
2
3
4
5
6
7
8
addRule(CCI_pullback,
                         list(category = "condition",
                              indicator = TTR::CCI,
                              arguments = list(n = "n1", maType = "SMA", c = 0.015),
                              type = "on-off",
                              on = 100,
                              off = -100)
                   )

rengelke/quantTraiding_trato documentation built on Dec. 21, 2018, 2:20 a.m.