444 search results for "quantmod"

Visualization with R: Time plots #rstats

September 23, 2016
By
Visualization with R: Time plots #rstats

R is a great tool to visualize your data: it is free to use and has lots packages to make beautiful plots. In this post, we gonna teach you how to make time plots to visualize stock returns with data from Yahoo finance. For those not familiar with how to automatically download data from Yahoo...

Read more »

It’s Time!

September 14, 2016
By
It’s Time!

...to ggplot some xts objects. - The xts package is fantastic for time-series data manipulation. You can easily convert to and apply functions to different frequencies, merge with other time series vertically and horizontally, and...

Read more »

Fundamental and Technical Analysis of Shares Exercises

August 31, 2016
By
Fundamental and Technical Analysis of Shares Exercises

In this set of exercises we shall explore possibilities for fundamental and technical analysis of stocks offered by the quantmod package. If you don’t have the package already installed, install it using the following code: install.packages("quantmod") and load it into the session using the following code: library("quantmod") before proceeding. Answers to the exercises are available

Read more »

Dual axes time series plots with various more awkward data

August 27, 2016
By
Dual axes time series plots with various more awkward data

In my most recent blog post I introduced the dualplot() R function, which allows you to create time series plots with two different scales on the vertical axes in a way that minimises the potential problems of misinterpretation. See that earlier post ...

Read more »

Shorting at High: Algo Trading Strategy in R

August 11, 2016
By
Shorting at High: Algo Trading Strategy in R

By Milind Paradkar Milind began his career in Gridstone Research, building earnings models and writing earnings notes for NYSE listed companies, covering Technology and REITs sectors. Milind has also worked at CRISIL and Deutsche Bank, where he was involved in modeling of Structured Finance deals covering Asset Backed Securities (ABS), and Collateralized Debt Obligations (CDOs)... The post Shorting...

Read more »

Candlestick charts using Quandl and Plotly

July 19, 2016
By

In this post we’ll show how to create candle stick charts using the new plotly 4.0 syntax. You can refer to this older post as well. This time we’ll use the Quandl package to retrieve stock data. See here for more details.

Read more »

An Introoduction to Portfolio Component Conditional Value At Risk

July 12, 2016
By
An Introoduction to Portfolio Component Conditional Value At Risk

This post will introduce component conditional value at risk mechanics found in PerformanceAnalytics from a paper written by Brian Peterson, … Continue reading →

Read more »

A Return.Portfolio Wrapper to Automate Harry Long Seeking Alpha Backtests

June 16, 2016
By
A Return.Portfolio Wrapper to Automate Harry Long Seeking Alpha Backtests

This post will cover a function to simplify creating Harry Long type rebalancing strategies from SeekingAlpha for interested readers. As … Continue reading →

Read more »

Common R Programming Errors Faced by Beginners

June 6, 2016
By
Common R Programming Errors Faced by Beginners

There are two ways to write error-free programs; only the third one works. – Alan Perlis Error messages can be intimidating for novice coders, and sometimes even for the experienced ones. Trying to decipher the error can be a time-consuming task. In this issue we look at some of the common errors that you can... The post

Read more »

A Gentle Introduction to Finance using R: Efficient Frontier and CAPM – Part 1

May 24, 2016
By
A Gentle Introduction to Finance using R: Efficient Frontier and CAPM – Part 1

The following entry explains a basic principle of finance, the so-called efficient frontier and thus serves as a gentle introduction into one area of finance: “portfolio theory” using R. A second part will then concentrate on the Capital-Asset-Pricing-Method (CAPM) and its assumptions, implications and drawbacks. Note: All code that is needed for the simulations, data

Read more »

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)