362 search results for "quantmod"

ARMA Models for Trading, Part I

April 14, 2011
By
ARMA Models for Trading, Part I

Lately I have been testing trading models based on methods from various fields: statistics, machine learning, wavelet analysis and others. And I have been doing all that in R! In this series, I will try to share some of these efforts starting with the well-known from statistics Autoregressive Moving Average Model (ARMA). There is a

Read more »

Historical Sources of Bond Returns with Shiller Data 1919-2011

April 11, 2011
By
Historical Sources of Bond Returns with Shiller Data 1919-2011

And as usual, I always want a longer data set, so after a little playing with R-Excel, we can extend our historical sources of bond returns to 1919.  If nothing else, maybe you can find other uses for the Shiller Dataset in R. From TimelyPort...

Read more »

Historical Sources of Bond Returns

April 11, 2011
By
Historical Sources of Bond Returns

As promised in Monitoring Sources of Bond Return, we can show more history if we use CPI instead of expected inflation (from the TIP inflation breakeven yield).  Here are the results with history back to 1953. From TimelyPortfolio However, mo...

Read more »

A Super-Easy, Simple-Dimple Backtester in R

April 9, 2011
By
A Super-Easy, Simple-Dimple Backtester in R

I cut my finger on a paring knife this morning. Don't use a sharp knife to spread butter on your toast. It's better to limit yourself to using dull kitchen utensils until the caffeine kicks in. No matter, I still have most of my digits to type in a sim...

Read more »

Monitoring Sources of Bond Return

April 8, 2011
By
Monitoring Sources of Bond Return

Here is a way to monitor bond return sources in R.  In the next iteration, I will use CPI to add history to the series. From TimelyPortfolio So right now, you can expect about a 5% return from bonds.  How much of that is real return is u...

Read more »

Algorithm Whisperer

April 6, 2011
By
Algorithm Whisperer

I was staring at my favorite trading algorithm the other day and I could swear it wanted to tell me something. I've made contact with it in the past, but our conversations pretty much ran along the lines of "What position are you in the market?" to whi...

Read more »

Feed Your (Machine) Brain

April 3, 2011
By
Feed Your (Machine) Brain

Few can tell you what goes into a chicken nugget, but most will agree that it's good for your brain. If you're a little sluggish and can't focus, what do you normally do? That's right, you pop a couple chicken nuggets. And similar to our brains, our al...

Read more »

Long EEM Short IWM-How it Works in 3 Ways

March 31, 2011
By
Long EEM Short IWM-How it Works in 3 Ways

Long EEM Short IWM potentially works in 3 ways: 1) See my last post “Asian Currency Opportunity” where currency undervaluation means potential gain of 20-50% versus the US$ and 50%-100% versus the Japanese Yen.  However, even absent the underv...

Read more »

Asian Currency Opportunity

March 31, 2011
By
Asian Currency Opportunity

Asian currencies are fundamentally undervalued at an extreme level due to the Central Banks’ focus on the US$.  For those that regularly read my blog or happened to see me in SmartMoney, this will not surprise you, “And investors can also buy...

Read more »

Violins of Volatility

March 29, 2011
By
Violins of Volatility

A violin plot is a combination box plot and a kernel density plot: it starts with a box plot, and adds a rotated kernel density plot to each side of the box plot. You can create violin plots with the vioplot function (from the vioplot package) package in R. When looking at the volatility of financial instruments, the financial...

Read more »