View source: R/genericStrategy.R
addRuleConstraint.Strategy | R Documentation |
Add rule's constraint
## S3 method for class 'Strategy' addRuleConstraint( this, expr, name, lookback = 0, args = list(), rules, rule_type )
this |
Strategy |
expr |
expression |
name |
character, name of signal |
lookback |
numeric / expression, how many periods is needed for calculation signal |
args |
list, parameters for a signal |
rules |
character vector, names of rules |
rule_type |
character, type is 'exit' or 'enter'. If it is not missed it will be applied to all rules in this group, rules argument will be ignored. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.