downtrend: downtrend technical analysis function

Description Usage Arguments Details Value Author(s) Examples

View source: R/downtrend.R

Description

Down trend line technical analysis function is to analyze the downward trend of stock data

Usage

1
downtrend(h,day,num)

Arguments

h

an stock data

day

the number of days to analysis the data

num

select pivot calculation method 1: UP1<-(2*center)-Lo(h). 2: UP2<-center+(UP1-DOWN1).

Details

use the down_function analysis data to analysis the downward trend line

Value

an analysis of stock data for down trend technical analysis indicators

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)
downtrend(aapl,20,1)

## End(Not run)

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