Following command selects the closing price of apple. Similarly, other technical indicators can be calculated. Following is the list of technical indicators that quantmod supports. We will have a look at the data handling features of quantmod.
We saw earlier that the apple data downloaded has the following structure. Useful functions Quantmod provides functions to explore features of the data frame.
The following command shows that the object type holding apple data is xts and zoo. One would want to explore whether the data extracted has open price, volume etc. Have a look at the following commands. You can also take a look at a basic example of trading strategy coded in R.
Mean : Mean : Mean : Index NYA. Open NYA. High NYA. Close NYA. Volume NYA. Median : Median : 0 Median : Mean : Mean : 0 Mean : Index NDAQ. Open NDAQ. High NDAQ. Median : - 07 - 22 Median : Mean : - 07 - 21 Mean : Close NDAQ.
Volume NDAQ. Median : Mean : Close" ] ,. Close" ]. Median : - 07 - 22 12 : 00 : 00 Median : 1. Median : 1. Viewed 5k times. I try to install R quantmod When I try: install.
When I try: install. What is the problem? My R version 3. Improve this question. MariaMaria1 MariaMaria1 25 1 1 silver badge 6 6 bronze badges. Add a comment. Active Oldest Votes. It looks like you need to install curl for your system. Open a terminal and run: sudo apt-get update sudo apt-get install curl libcurl4-openssl-dev libssl-dev Then try again in R to install your package: install.
Improve this answer. Phil Phil 4, 2 2 gold badges 21 21 silver badges 31 31 bronze badges.
0コメント