up_function: up trend line up function

Description Usage Arguments Details Value Author(s) Examples

View source: R/up_function.R

Description

Up trend line analysis of the up_function is to sort and analysis the stock data

Usage

1
up_function(h,day,num)

Arguments

h

an stock data

day

the number of days to analysis the data

num

select pivot calculation method 1: DOWN1<-(2*center)-Hi(h). 2: DOWN2<-center-(UP1-DOWN1).

Details

up_function is to sort the stock data by the set number of days and to filter the data of downward trend

Value

an analysis of stock data for up function

Author(s)

Chun-Yu Liu <john401528@gmail.com>

Examples

1
2
3
4
5
6
## Not run: 
library(quantmod)
aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE)
up_function(aapl,20,1)

## End(Not run)

lcyanalysis documentation built on Feb. 7, 2020, 5:08 p.m.