351 search results for "quantmod"

Plotting Cumulative FII & DII Inflow against Nifty spot index

August 10, 2011
By
Plotting Cumulative FII & DII Inflow against Nifty spot index

Now that I have the FII and DII Inflow along with Nifty Index, I tried my hands on charting!The objective is to plot the Cumulative FII, DII and Net Inflow and Nifty Index for current year (2011) on a single graph. This post takes inspiration from Deep...

Read more »

In case you missed it: July Roundup

August 10, 2011
By

In case you missed them, here are some articles from July of particular interest to R users. A simulation in R finds the value (or disadvantage) or drawing an X, J, Q or Z in Scrabble. How to display high-quality graphics on the web using SVG output from R. A review of Paul Murrell's talk about raster image support...

Read more »

Forecasting recessions

August 9, 2011
By
Forecasting recessions

John Hussman has a Recession Warning Composite that I am attempting to replicate/improve. The underlying data seems to be easy enough to get from FRED using the quantmod package in R. I don't quite understand the index Hussman is using for commercial...

Read more »

Aug 4, 2011 "plunge" headlines are in the air tonight

August 4, 2011
By
Aug 4, 2011 "plunge" headlines are in the air tonight

Today's financial headlines are littered with the word 'plunge.'  Considering today's (cl-cl) drop on the S&P500 was just about -5%, I don't know that I would exactly call that a plunge.         &nb...

Read more »

Summarizing Returns with R

August 2, 2011
By
Summarizing Returns with R

Often I like to see the performance of a trading strategy summarized annually, quarterly or by month. In R, we start off with the summary function: Given a series xx, usually a chunk of the original, this function returns the accumulative returns for the period. The leverage is useful to somewhat simulate leveraged ETFs. The

Read more »

Dividend Quartiles with Kenneth French Data

August 1, 2011
By
Dividend Quartiles with Kenneth French Data

Based on my perception of the last 3 years, I would have expected high dividend stocks to have substantially underperformed low and zero dividend stocks.  Fortunately, just like with size and momentum in Beating Kenneth French Small – High, we c...

Read more »

The R-Files: Jeff Ryan

July 25, 2011
By
The R-Files: Jeff Ryan

"The R-Files" is an occasional series from Revolution Analytics, where we profile prominent members of the R Community. Name: Jeff Ryan Profession: Owner/Principal at Lemnica; Committee Member at R/Finance Nationality: American Years Using R: 8 Known for: R/Finance Conference, quantmod and xts packages Jeffrey Ryan is a Chicago-based quantitative software analyst and avid R user. He is perhaps best...

Read more »

Crazy RUT

July 24, 2011
By
Crazy RUT

I have noticed that the Russell 2000 (RUT) acts very differently from most of the other indexes that I have studied.  If we apply the system shown in Shorting Mebane Faber to RUT and then extend it with a simple slope, we notice something very dif...

Read more »

Shorting Mebane Faber

July 19, 2011
By
Shorting Mebane Faber

Although I do not personally know Mebane Faber, I know enough that I do not want to short him. However, I thought it would be insightful to see how the short side of his “A Quantitative Approach To Tactical Asset Allocation” might look.  Once ...

Read more »

More Thoughts on US Death Spiral

July 13, 2011
By
More Thoughts on US Death Spiral

What troubles me most about today’s environment is the persistent belief that crisis large or small results in a US dollar rally and lower Treasury rates. However, what happens if the US dollar and US Treasury rates are the source of the crisis? Then...

Read more »