addRule: Add Rule to Trading Strategy

Description Usage Arguments Value Examples

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 Oct. 13, 2020, 12:01 p.m.