powered by
Down trend line technical analysis function is to analyze the downward trend of stock data
downtrend(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 trend technical analysis indicators
use the down_function analysis data to analysis the downward trend line
# NOT RUN { library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) downtrend(aapl,20,1) # }
Run the code above in your browser using DataLab