356 search results for "quantmod"

Averaged Input Assumptions and Momentum

December 4, 2013
By
Averaged Input Assumptions and Momentum

Today I want to share another interesting idea contributed by Pierre Chretien. Pierre suggested using Averaged Input Assumptions and Momentum to create reasonably quiet strategy. The averaging techniques are used to avoid over-fitting any particular frequency. To create Averaged Input Assumptions we combine returns over different look-back periods, giving more weight to the recent returns,

Read more »

Analyzing the DVI Indicator

November 30, 2013
By
Analyzing the DVI Indicator

The DVI indicator is a well-known indicator, created by David Varadi from CSS Analytics. It was introduced in 2009 as a good predictor for the S&P 500 over the past 30 years. Its performance on the S&P 500 has been studied in the blogosphere comprehensively. None of these studies, however, contained everything I was looking

Read more »

Fast Threshold Clustering Algorithm (FTCA) test

November 27, 2013
By
Fast Threshold Clustering Algorithm (FTCA) test

Today I want to share the test and implementation for the Fast Threshold Clustering Algorithm (FTCA) created by David Varadi. This implementation was developed and contributed by Pierre Chretien, I only made minor updates. Let’s first replicate the results from the Fast Threshold Clustering Algorithm (FTCA) post: The clusters are stable and match David’s results

Read more »

getSymbols Extra

November 25, 2013
By
getSymbols Extra

The getSymbols function from the quantmod package is an easy and convenient way to bring historical stock prices into your R environment. You need to specify the list of tickers, the source of historical prices and dates. For example following commands will download historical stock prices from yahoo finance for ‘RWX’, ‘VNQ’, ‘VGSIX’ symbols: Now,

Read more »

Financial Data Accessible from R – part III

November 8, 2013
By

I came across a new source of data which I think is really worth sharing: ThinkNum. It gathers around 2,000 sources of data but more importantly it allows the user to manipulate this data via functions and graphics and there is an R package available on CRAN. Interested readers can find a very good post

Read more »

Commissions

November 4, 2013
By
Commissions

Today, I want to explain the commission’s functionality build in to Systematic Investor Toolbox(SIT) “share” back-test. At each re-balance time the capital is allocated given the weight such that For example, if weight is 100% (i.e. fully invested) and capital = $100 and price = $10 then The period return is equal to The total

Read more »

Weekend Reading: Market Neutral

November 1, 2013
By
Weekend Reading: Market Neutral

I recently came across a very interesting idea at the The Problem with Market Neutral (and an Answer) post by Mebane Faber. Today I want to show how you can test such strategy using the Systematic Investor Toolbox: Mebane thank you very much for sharing this great observation and great strategy that works! I would

Read more »

Financial Data Accessible from R – part II

October 30, 2013
By

I updated my initial post with two new sources of data and the associated R packages: Datastream and PWT. I also added the fImport package from Rmetrics. Following a reader suggestion, I made the initial table  more interactive, moved  the data description and package detail below the main table and updated them. Enjoy! Source R

Read more »

Two interesting ideas here: “trading time” price impact of a…

October 29, 2013
By
Two interesting ideas here:
“trading time”
price impact of a…

Two interesting ideas here: "trading time" price impact of a trade proportional to exp( √size ) Code follows: require(quantmod) getSymbols("MER") #Merrill Lynch #Gatheral's model HiLo Op(symbol) #munging mer names(mer) = "UpDay"names(mer) = "HiLo" mer ...

Read more »

Update for Backtesting Asset Allocation Portfolios post

October 23, 2013
By
Update for Backtesting Asset Allocation Portfolios post

It was over a year since my original post, Backtesting Asset Allocation portfolios. I have expanded the functionality of the Systematic Investor Toolbox both in terms of optimization functions and helper back-test functions during this period. Today, I want to update the Backtesting Asset Allocation portfolios post and showcase new functionality. I will use the

Read more »