Title: | Stock Data Analysis Functions |
---|---|
Description: | Analysis of stock data ups and downs trend, the stock technical analysis indicators function have trend line, reversal pattern and market trend. |
Authors: | Chun-Yu Liu [aut,cph], Shu-Nung Yao [rev,ths] |
Maintainer: | Chun-Yu Liu <[email protected]> |
License: | GPL-3 |
Version: | 1.0.4 |
Built: | 2025-03-01 02:49:02 UTC |
Source: | https://github.com/cran/lcyanalysis |
bear power technical analysis function is to analyze the reversal pattern conform to the downward trend and bear market of stock data
bearpower(h,down,day)
bearpower(h,down,day)
h |
an stock data |
down |
an rsi down horizon value |
day |
Days of data shown |
use RSI analysis of the strength of the stock market trend, analyze trends conform to bear power, and RSI function need library 'TTR'
an analysis of stock data for bear power technical analysis indicators
Chun-Yu Liu <[email protected]>
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) bearpower(aapl,40,5) ## End(Not run)
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) bearpower(aapl,40,5) ## End(Not run)
bull power technical analysis function is to analyze the reversal pattern conform to the rising trend and bull market of stock data
bullpower(h,top,day)
bullpower(h,top,day)
h |
an stock data |
top |
an rsi rise horizon value |
day |
Days of data shown |
use RSI analysis of the strength of the stock market trend, analyze trends conform to bull power, and RSI function need library 'TTR'
an analysis of stock data for bull power technical analysis indicators
Chun-Yu Liu <[email protected]>
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) bullpower(aapl,60,5) ## End(Not run)
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) bullpower(aapl,60,5) ## End(Not run)
Down trend line analysis of the down_function is to sort and analysis the stock data
down_function(h,day,num)
down_function(h,day,num)
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). |
down_function is to sort the stock data by the set number of days and to filter the data of rising trend
an analysis of stock data for down function
Chun-Yu Liu <[email protected]>
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) down_function(aapl,20,1) ## End(Not run)
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) down_function(aapl,20,1) ## End(Not run)
Down trend line technical analysis function is to analyze the downward trend of stock data
downtrend(h,day,num)
downtrend(h,day,num)
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). |
use the down_function analysis data to analysis the downward trend line
an analysis of stock data for down trend technical analysis indicators
Chun-Yu Liu <[email protected]>
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) downtrend(aapl,20,1) ## End(Not run)
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) downtrend(aapl,20,1) ## End(Not run)
m top technical analysis function is to analyze the reversal pattern conform to the downward trend of stock data
m_top(h,top,down,month,day)
m_top(h,top,down,month,day)
h |
an stock data |
top |
an rsi rise horizon value |
down |
an rsi down horizon value |
month |
set the length between the start and end points. Unit:month |
day |
check the correctness of the end point, set the length between the end and check points. Unit:day |
use RSI analysis of the strength of the stock market trend, analyze trends conform to m top, and RSI function need library 'TTR'
an analysis of stock data for m top technical analysis indicators
the month value must be more than one month
Chun-Yu Liu <[email protected]>
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) m_top(aapl,60,40,4,20) ## End(Not run)
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) m_top(aapl,60,40,4,20) ## End(Not run)
Up trend line analysis of the up_function is to sort and analysis the stock data
up_function(h,day,num)
up_function(h,day,num)
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). |
up_function is to sort the stock data by the set number of days and to filter the data of downward trend
an analysis of stock data for up function
Chun-Yu Liu <[email protected]>
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) up_function(aapl,20,1) ## End(Not run)
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) up_function(aapl,20,1) ## End(Not run)
Up trend line technical analysis function is to analyze the rising trend of stock data
uptrend(h,day,num)
uptrend(h,day,num)
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). |
use the up_function analysis data to analysis the rising trend line
an analysis of stock data for up trend technical analysis indicators
Chun-Yu Liu <[email protected]>
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) uptrend(aapl,20,1) ## End(Not run)
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) uptrend(aapl,20,1) ## End(Not run)
V bottom technical analysis function is to analyze the rising trend of stock data
v_bottom(h,top,down,month,day)
v_bottom(h,top,down,month,day)
h |
an stock data |
top |
an rsi rise horizon value |
down |
an rsi down horizon value |
month |
set the length between the start and end points. Unit:month |
day |
check the correctness of the end point, set the length between the end and check points. Unit:day |
use RSI analysis of the strength of the stock market trend, analyze trends conform to v bottom, and RSI function need library 'TTR'
an analysis of stock data for v bottom technical analysis indicators
Chun-Yu Liu <[email protected]>
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) v_bottom(aapl,60,40,3,20) ## End(Not run)
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) v_bottom(aapl,60,40,3,20) ## End(Not run)
V top technical analysis function is to analyze the downward trend of stock data
v_top(h,top,down,month,day)
v_top(h,top,down,month,day)
h |
an stock data |
top |
an rsi rise horizon value |
down |
an rsi down horizon value |
month |
set the length between the start and end points. Unit:month |
day |
check the correctness of the end point, set the length between the end and check points. Unit:day |
use RSI analysis of the strength of the stock market trend, analyze trends conform to v top, and RSI function need library 'TTR'
an analysis of stock data for v top technical analysis indicators
Chun-Yu Liu <[email protected]>
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) v_top(aapl,60,40,3,20) ## End(Not run)
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) v_top(aapl,60,40,3,20) ## End(Not run)
w bottom technical analysis function is to analyze the reversal pattern conform to the rising trend of stock data
w_bottom(h,top,down,month,day)
w_bottom(h,top,down,month,day)
h |
an stock data |
top |
an rsi rise horizon value |
down |
an rsi down horizon value |
month |
set the length between the start and end points. Unit:month |
day |
check the correctness of the end point, set the length between the end and check points. Unit:day |
use RSI analysis of the strength of the stock market trend, analyze trends conform to w bottom, and RSI function need library 'TTR'
an analysis of stock data for w bottom technical analysis indicators
the month value must be more than one month
Chun-Yu Liu <[email protected]>
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) w_bottom(aapl,60,40,2,20) ## End(Not run)
## Not run: library(quantmod) aapl<-getSymbols("AAPL",src="yahoo",auto.assign=FALSE) w_bottom(aapl,60,40,2,20) ## End(Not run)