add_linear_trend: Add Future Linear Trend

Description Usage Arguments

View source: R/functions.R

Description

This function adds to each point of a time series object the actual linear trend in the immediate future.

Usage

1

Arguments

data

is an xts object to which the linear trend has to be added.

n

is the number of points for which the linear trend is suspected to exist.


msaltieri/algotrading documentation built on May 29, 2019, 5:46 a.m.