Strategy

Multiple Factor Model – Fundamental Data

January 28, 2012 | systematicinvestor

The Multiple Factor Model can be used to decompose returns and calculate risk. Following are some examples of the Multiple Factor Models: The expected returns factor model: Commonality In The Determinants Of Expected Stock Returns by R. Haugen, N. Baker (1996) The expected returns factor model: CSFB Quantitative Research, Alpha Factor ... [Read more...]

Time Series Matching with Dynamic Time Warping

January 20, 2012 | systematicinvestor

THIS IS NOT INVESTMENT ADVICE. The information is provided for informational purposes only. In the Time Series Matching post, I used one to one mapping to the compute distance between the query(current pattern) and reference(historical time series). Following chart visualizes this concept. The distance is the sum of ... [Read more...]

Time Series Matching strategy backtest

January 17, 2012 | systematicinvestor

This is a quick post to address comments raised in the Time Series Matching post. I will show a very simple example of backtesting a Time Series Matching strategy using a distance weighted prediction. I have to warn you, the strategy’s performance is worse then the Buy and Hold. ... [Read more...]

Time Series Matching

January 13, 2012 | systematicinvestor

THIS IS NOT INVESTMENT ADVICE. The information is provided for informational purposes only. If it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck. Do you want to know what S&P 500 will do in the next week, month, quarter? ... [Read more...]

Trading using Garch Volatility Forecast

January 5, 2012 | systematicinvestor

Quantum Financier wrote an interesting article Regime Switching System Using Volatility Forecast. The article presents an elegant algorithm to switch between mean-reversion and trend-following strategies based on the market volatility. Two model are examined: one using the historical volatility and another using the Garch(1,1) Volatility Forecast. The mean-reversion strategy is ... [Read more...]

Backtesting Rebalancing methods

December 15, 2011 | systematicinvestor

I wrote about Rebalancing in the Asset Allocation Process Summary post. Deciding how and when to rebalance (update the portfolio to the target mix) is one of the critical steps in the Asset Allocation Process. I want to study the portfolio performance and turnover for the following Rebalancing methods: Periodic ... [Read more...]

Backtesting Minimum Variance portfolios

December 12, 2011 | systematicinvestor

I want to show how to combine various risk measures I discussed while writing the series of posts about Asset Allocation with backtesting library in the Systematic Investor Toolbox. I will use Minimum Variance portfolio as an example for this post. I recommend reading a good discussion about Minimum Variance ... [Read more...]

Simple and Profitable

December 8, 2011 | systematicinvestor

The end of the month effect was examined by MarketSci in the The Last Day of the Month Blahs post. The idea is simple: buy on the last day of the month and sell a few days later. This idea was put into a strategy by Quanting Dutchman in the ... [Read more...]

Multi-Asset Backtest : Rotational Trading Strategies

December 5, 2011 | systematicinvestor

I want to discuss the implementation of Rotational Trading Strategies using the backtesting library in the Systematic Investor Toolbox.The Rotational Trading strategy switches investment allocations throughout the time, betting on few top ranked assets. For example, the ranking can be based on relative strength or momentum. A few examples ... [Read more...]

Backtesting with Short positions

December 1, 2011 | systematicinvestor

I want to illustrate Backtesting with Short positions using an interesting strategy introduced by Woodshedder in the Simple, Long-Term Indicator Near to Giving Short Signal post. This strategy was also analyzed in details by MarketSci in Woodshedder’s Long-Term Indicator post. The strategy uses the 5 day rate of change (ROC5) ... [Read more...]

Trading Strategy Sensitivity Analysis

November 28, 2011 | systematicinvestor

When designing a trading strategy, I want to make sure that small changes in the strategy parameters will not transform the profitable strategy into the loosing one. I will study the strategy robustness and profitability under different parameter scenarios using a sample strategy presented by David Varadi in the Improving ... [Read more...]

timezone issue in R

May 14, 2011 | Dzidorius Martinaitis

While investigating Intraday patterns in FX returns and order flow paper I have faced the problem with timezone. I had 3 data sources with different timezones (GMT, CET, CEST). Most confusing thing was, that I didn’t know, how to deal with summer time. But why did I have the data ... [Read more...]

Seasonal pair trading

January 10, 2011 | Dzidorius Martinaitis

quanttrader.info is a good quantitative repository, where I found an idea about seasonal spreads play. The idea of seasonal pair trading differs from pairs trading in a way, that it doesn’t try to find deviation from the spread’s mean, but it looks at seasonal spread patterns. In ...
[Read more...]

High readings of VIX index during 2 days

December 28, 2010 | Dzidorius Martinaitis

During last two sessions (December 23th and 27th), VIX index posted returns (close to close) above 6 %. My question is – what return can we expect next day after such event? As you can see from the graph above, expected return is positive. During 1995-2010 were 53 such events and mean return was 1.02 % [...]
[Read more...]

Interesting volatility measurement

December 10, 2010 | kafka

Long time ago I stumbled across interesting volatility measurement at quantifiableedges.blogspot.com. The idea is following: take 3-day historical volatility of S&P 500 index and divide that by 10-day historical volatility. Then mark all points which are less that 0.25 and measure the volatility of 3 following days. On average, the ... [Read more...]

3 weak days in a row

December 6, 2010 | kafka

Recently, Trading the odds posted one of many flavors of mean reverting strategies and I decided to get my hands dirty by writing R code and testing it. You can find full description of the strategy by following latter link above. Long story short – if SPY shows lower open, high ... [Read more...]

R package Blotter

April 6, 2010 | kafka

How many times have you been disappointed by nice trading system, because neither trading cost or slippage or bid/ask spread were included into back-test results? Did you find difficult to back-test a portfolio in R or many portfolios with different stocks? Blotter package is supposed to solve these problems. ... [Read more...]
1 2

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)