Showing posts with label How to get analysis daily return like sbi. Show all posts
Showing posts with label How to get analysis daily return like sbi. Show all posts

Wednesday, June 26, 2019

How to get analysis daily return

 How to get analysis daily return

sbin_stock<- new.env()
> getSymbols("SBIN.NS", env = sbi_stock, src = "yahoo", from =
+                as.Date("2016-01-01"), to = as.Date("2019-06-25"))
> getSymbols("SBIN.NS", env = sbin_stock, src = "yahoo", from =
+                +                as.Date("2016-01-01"), to = as.Date("2019-06-25"))
[1] "SBIN.NS"
> SBIN<-sbin_stock$SBIN.NS
> head(SBIN)
           SBIN.NS.Open SBIN.NS.High
2016-01-01       225.00       228.90
2016-01-04       226.95       226.95
2016-01-05       222.80       222.80
2016-01-06       217.90       219.90
2016-01-07       214.00       214.10
2016-01-08       212.00       212.50
           SBIN.NS.Low SBIN.NS.Close
2016-01-01      224.50        227.80
2016-01-04      220.05        220.70
2016-01-05      217.00        217.75
2016-01-06      216.40        216.85
2016-01-07      209.00        209.55
2016-01-08      208.60        208.95
           SBIN.NS.Volume
2016-01-01        6449426
2016-01-04       14092071
2016-01-05       15074848
2016-01-06       11921123
2016-01-07       14342279
2016-01-08       11745840
           SBIN.NS.Adjusted
2016-01-01         222.8315
2016-01-04         215.8864
2016-01-05         213.0007
2016-01-06         212.1204
2016-01-07         204.9796
2016-01-08         204.3927
> chartSeries(SBIN,multi.col=TRUE,theme="white")
> addMACD()
pandas tutorial,simulink,mathworks,#sparkaisummit #apachespark,pandas time series,pandas time series analysis,pandas time series tutorial,python pandas time series,time series python,time series analysis python,time series pandas,pandas resample,pandas resample mean,pandas datetime,pandas datetimeindex,pandas python tutorial,statistics (field of study),pandas dataframe

how to earn daily 1%,buy shares in lumpsum or sip,o mundo visto do céu usa montana,share market tricks,share market guranteed income tricks,share market tips,how to buy shares,how to buy mutual fund,what is mutual fund sip,safe way to make money in shares,how to buy shares without demat account,easy way to make money in share market

> addRSI()
> addBBands()
> SBIN_return <-
+     log(SBIN$SBIN.NS.Close/SBIN$SBIN.NS.Open)
> qqnorm(SBIN_return, main = "Normal Q-Q Plot of SBIN daily log return",
+        xlab = "Theoretical Quantiles",
+        ylab = "Sample Quantiles", plot.it = TRUE, datax = FALSE
+ )
> qqline(SBIN_return, col="red")

Black-Scholes formula-R

 Black-Scholes formula-R > BlackScholes <- function(TypeFlag = c("c", "p"), S, X, Time, r, b, sigma) { TypeFla...