powered by
Down trend line analysis of the down_function is to sort and analysis the stock data
down_function(h,day,num)
an stock data
the number of days to analysis the data
select pivot calculation method 1: UP1<-(2*center)-Lo(h). 2: UP2<-center+(UP1-DOWN1).
an analysis of stock data for down function
down_function is to sort the stock data by the set number of days and to filter the data of rising trend
# NOT RUN { library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) down_function(aapl,20,1) # }
Run the code above in your browser using DataLab