T.ind: Trade Signal Detector

Description Usage Arguments Value Author(s)

Description

creates a buy sell hold trade signal from stock quotes downloaded using quatmod

Usage

1
T.ind(quotes, tgt.margin = 0.025, n.days = 10)

Arguments

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

Value

xts object of trade signals, buy when T.ind > 0.1, Sell < -0.1, else hold.

Author(s)

Matthew Davis


mdavis29/stockFunctions documentation built on May 22, 2019, 3:22 p.m.