Description Usage Arguments Value Author(s)
creates a buy sell hold trade signal from stock quotes downloaded using quatmod
1 | T.ind(quotes, tgt.margin = 0.025, n.days = 10)
|
quotes |
An xts object containing stock quotes (build from getSymbols in quantmod) |
tgt.margin |
percent increase or decrease in high or low price |
n.days |
Number of days ahead |
xts object of trade signals, buy when T.ind > 0.1, Sell < -0.1, else hold.
Matthew Davis
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.