Description Usage Arguments Value
Determines whether a signal has occurred based on one or more columns in the strategy data, and adds it to a column in each security's timeseries data.
1 2 | add_signal(strategy_object, signal_name, signal, direction = c("buy", "sell"),
crossover = TRUE)
|
strategy_object |
a strategy object |
signal_name |
the desired column name of the signal, used to build rules |
signal |
a logical argument based on the indicator columns of the security object |
direction |
the direction of the market bet, buy or sell |
crossover |
defines whether signal should be a crossover signal. If TRUE, the signal will only occur on first bar of each run of signal condition being met. |
a strategy object with signal applied to all securities
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.