Quant Mashup Zero-Crossing Variant of Pairs Trading Strategy [Quantpedia]Pairs trading is a venerable trading strategy. There is agreement that it worked fine in the far past. But it is less clear if it still profitable today. In this working paper the universe of eligible pairs is defined by the holdings of a given ETF. It is shown that the stocks must be from ETFs(...) The illusion of choice in ETF's [Factor Investor]A search for all equity ETF's available to U.S. investors in Bloomberg leads to a list of 969 candidates, a surprisingly large number of options for a relatively new investment vehicle. Given that most focus on large capitalization stocks here in the U.S. (not all, but most), this means that(...) A Review of @AlphaArchitect Quantitative Momentum book [QuantStrat TradeR]This post will be an in-depth review of Alpha Architect’s Quantitative Momentum book. Overall, in my opinion, the book is terrific for those that are practitioners in fund management in the individual equity space, and still contains ideas worth thinking about outside of that space. However, the(...) Reverse Engineering AQR's Risk Parity Strategy [Signal Plot]I’m going to start this post by saying that it makes no sense for anyone to pay management fees to get a return stream that is highly correlated to any existing asset class. Unfortunately, many actively managed funds fall in this category. There’s two reasons for this. One, you can replicate(...) What Is The Best "Risk Off" Asset for Trend Followers? [Alpha Architect]So you’re a trend-follower. Great. But here is a question: What do you invest in when your rules suggest “risk off?” Many investors suggest low duration cash or t-bills. Seems reasonable. But is it optimal? Perhaps we should invest in longer duration risk-off assets like 10-yr bonds? We(...) Is Equal Weighting Beneficial For Asset Allocation? Part II [Capital Spectator]Yesterday’s post on equal weighting for asset allocation motivated a reader to point out that equal weighting’s tendency to outperform in equity portfolios is due to frequent rebalancing events. A passively managed market-cap-weighted portfolio, by contrast, is allowed to drift, with weights(...) How to Implement a Simple Risk Parity Strategy [Signal Plot]When I worked at Bridgewater Associates, I regularly came across marketing materials about the theory behind risk parity and evidence that risk parity portfolios perform better than traditional portfolios on a risk-adjusted basis. The theory and evidence was quite convincing. The story goes that Ray(...) QuantStart New York City October 2016 Trip Report [Quant Start]Last Tuesday I flew out to New York City, USA to give a talk at the Quantopian NYC Meetup and moderate a panel on "Programming Wars" at the Trading Show New York 2016. Both events were extremely interesting and I met a lot of great people. I want to write a brief summary of the trip as it(...) Client -II- [Algorythmn Trader]My previous post explained a bit the overall concept of this client development series. The essence of MVVM pattern was discussed, as well the base line of the project structure was created. Now I pick it up and extend it by some implementations step by step until we get a running version of the(...) Algorithmic Trading (Part 1): Backtesting an RSI Strategy (h/t Algotrading Reddit) [Keith Selover]The above chart was generated in Python. It's the result of backtesting a basic algorithmic trading strategy that makes use of the Relative Strength Index (RSI). In this tutorial I'll walk through implementing and graphing a simple strategy. The tutorial should provide a framework that(...) Is Equal Weighting Beneficial For Asset Allocation? [Capital Spectator]Equal weighting has an encouraging record as a design choice for earning a moderately higher premium in the stock market compared with the conventional weighting system of holding shares in proportion to their market-capitalization weight. A leading real-world example: the Guggenheim S&P 500(...) State of Trend Following in September [Au Tra Sy]Another down month for the State of Trend Following report, taking the year in the red a bit further for 2016. Please check below for more details. Detailed Results The figures for the month are: September return: -1.64% YTD return: -7.07% Below is the chart displaying individual system results(...) Value Investing Got Crushed During the Internet Bubble - Here's Why... [Alpha Architect]The dot-com bubble of the late 90s was a wild time in the stock market. Internet stocks were trading through the roof, tech IPOs were a practically daily experience, and people quit their jobs to make millions day trading. And why not? Even a day trading chimp could make money in a market that went(...) Presenting in Dallas and Austin, Texas [Alvarez Quant Trading]I will be in Texas next week giving presentations. Click the links below for more details. I hope to see some readers there. October 17, 2016 Austin Market Technicians Association For more information see https://www.mta.org/event-registration/austin-chapter-meeting-featuring-cesar-alvarez/ October(...) More Reasons To Diversify Factors [Larry Swedroe]Since the publication in 1992 of Eugene Fama and Kenneth French’s paper “The Cross-Section of Expected Stock Returns,” the traditional way to think about diversification has been to view portfolios as a collection of asset classes. However, we now have a nontraditional way to think about(...) Is That Leverage in My Multi-Factor ETF? [Flirting with Models]The debate for the best way to build a multi-factor portfolio – mixed or integrated – rages on. FTSE Russell published a video supporting their choice of an integrated approach, arguing that by using the same dollar to target multiple factors at once, their portfolio makes more efficient use of(...) Want to Learn Way Too Much About Stock Market Factors? Read This Paper [Alpha Architect]During the past few decades, newly discovered stock anomalies have been embarrassing existing factor models, such as the Fama-French 3-factor. As many readers know, each long or short “leg” of these popular long/short factor portfolios is generally constructed by ranking stocks on one specific(...) Implementing Predictive Modeling in R for Algorithmic Trading [Quant Insti]Predictive modeling is a process used in predictive analytics to create a statistical model of future behavior. Predictive analytics is the area of data mining concerned with forecasting probabilities and trends [1] The predictive modeling in trading is a modeling process wherein we predict the(...) Cointegration and Pairs Trading in Stocks [Quantpedia]We examine a new method for identifying close economic substitutes in the context of relative value arbitrage. We show that close economic substitutes correspond to a special case of cointegration whereby individual prices have approximately the same exposure to a common nonstationary factor. A(...) Aggressive Global Tactical Asset Allocation [Allocate Smartly]A number of readers have asked us to test the two aggressive versions of Meb Faber’s GTAA strategy from his seminal paper: A Quantitative Approach to Tactical Asset Allocation. I can’t understate the importance that Faber’s work has had in popularizing the idea of TAA with the general(...) Modeling Stock-Market Regime Shift… Carefully And Selectively [Capital Spectator]Ilya Kipnis at QuantStrat TradeR reminds us that the Hidden Markov Model (HMM), which can be a powerful tool for detecting regime change in markets and macro, has its limitations and pitfalls. In particular, Kipnis reports that HMM’s value as a prediction tool for the stock market is dubious.(...) September Trend Following: Down Streak [Wisdom Trading]A second successive strong down month for the State of Trend Following index, bringing the Year-To-Date performance further in the red as we enter the last quarter of the year. The current drawdown is getting closer to the max Drawdown (24% vs. 32%) which, as we highlighted last month, can be a good(...) Low Vol Strategies In A More Nuanced Light [Larry Swedroe]One of the biggest problems for the first formal asset pricing model developed by financial economists, the CAPM, was that it predicted a positive relation between risk and return. But empirical studies have found the actual relation to be flat, or even negative. Over the last 50 years the most(...) The Problem With Depmix For Online Regime Prediction [QuantStrat TradeR]This post will be about attempting to use the Depmix package for online state prediction. While the depmix package performs admirably when it comes to describing the states of the past, when used for one-step-ahead prediction, under the assumption that tomorrow's state will be identical to(...) Quantitative Momentum: A Guide to Momentum-Based Stock Selection [Alpha Architect]The long wait is over. Our newest book–Quantitative Momentum–is finally here. After 2 years of research review, results replication, reverse engineering, internal idea generation, writing, editing, and final publication, we have a final product. We think the book will help fulfill our firm(...) Ask Me Anything Video for October 5, 2016 [Alvarez Quant Trading]In this short five minute video I will answer the following questions: Have you used HV10/HV100 ratio? Have you found any value in it? When trading multiple strategies, how do you decide what percentage to allocate to each. What do you think about asset allocation ETF strategies, like Ray Dalio’s(...) Lower Volatility Smart Beta Funds - A Safe Haven in Turbulent Times? [Markov Processes]Smart Beta funds are hot. According to ETF.com, more than half of the 150 funds launched in 2016 implemented smart beta strategies. For the year to June 30, 2016, ETFGI’s most recent data show that assets in smart beta funds have a five-year annual compound growth rate of 31.3 percent. And, low(...) Market Timing Using Performance of Hi-Beta and Lo-Beta Stocks [iMarketSignals]This market timing model compares the performance of two different types of stock groups over time and provides signals when to invest or not to invest in the stock market. When the performance of the Hi-Beta stocks becomes lower than, or equal to Lo-Beta stocks the model exits the stock market and(...) The Case for Put Writing in an Expensive Market [EconomPic]Pensions and Investments wrote about the interest pension plans have shown in put writing (seemingly one of the more misunderstood investment strategies out there) in a recent article Funds Go Exotic with Put-write Options to Stem Volatility. I thought the article did a nice job of outlining the(...) Prospecting Dual Momentum With GEM [TrendXplorer]Gary Antonacci popularized dual momentum with an effective and simple approach for dynamic asset allocation: Global Equities Momentum (GEM). Using simulated ETF data series, GEM’s performance over past market conditions can be approximated. For longer investment horizons GEM’s implementation(...) The Perils of Backtesting with Unrealistic Data [Allocate Smartly]As readers hear us repeat often, our results tend to be less optimistic than you’ll find elsewhere. We do our best to show backtested results that are as realistic as possible (even though showing results that are as good as possible would probably be better for business). That’s partially a(...) Hidden Markov Models for Regime Detection using R [Quant Start]In the previous article in the series Hidden Markov Models were introduced. They were discussed in the context of the broader class of Markov Models. They were motivated by the need for quantitative traders to have the ability to detect market regimes in order to adjust how their quant strategies(...) Index Front Running: What Happens When a Stock is Added to an Index? [Signal Plot]This post documents some of my research on index front running. This trading strategy is simply buying stocks before they are added to indexes that passively managed funds are designed to track. I initially came across this idea through a Bloomberg article, The Hugely Profitable, Wholly Legal Way to(...) A shock to the covariance system [Flirting with Models]Mean-variance optimization assumes that you can fully describe the risks and returns of assets in a few simple numbers. Extreme market events often cause volatilities and correlations to spike dramatically, but stress testing on an individual asset basis can allow our own biases and oversights to(...) Implementing Python in Interactive Brokers C++ API [Quant Insti]In the previous article on IBPy Tutorial to implement Python in Interactive Brokers API, I talked about Interactive Brokers, its API and implementing Python codes using IBPy. In this article, I will be talking about implementing python in IB’s C++ API using a wrapper, written by Dr. Hui Liu. About(...) Tactical Asset Allocation in September [Allocate Smartly]This is a summary of the recent performance of a number of excellent tactical asset allocation strategies. These strategies are sourced from books, academic papers, and other publications. While we don't (yet) include every published TAA model, these strategies are broadly representative of the(...) Podcast: Reducing Drawdown with Scott Phillips [Better System Trader]Who wants a steadily rising equity curve with little or no drawdown? I'm sure most traders do, but unfortunately it doesn't usually end up that way. Drawdown is a big part of trading and can be one of the the biggest challenges traders face, so what techniques can we use to potentially(...) Buyback Bulls and Bears [Investing Research]A lot of attention has been paid to share repurchases recently, which makes sense given the amount of money involved. As of June 30th, 2016, there had been almost $450 billion net transferred from companies to shareholders over the trailing twelve months through repurchase programs, very close to(...) Really, Beware of Low Frequency Data [EP Chan]I wrote in a previous article about why we should backtest even end-of-day (daily) strategies with intraday quote data. Otherwise, the performance of such strategies can be inflated. Here is another brilliant example that I came across recently. Consider the oil futures ETF USO and its evil twin,(...) Research Review | 30 Sep 2016 | Managing Volatility Risk [Capital Spectator]Managed portfolios that take less risk when volatility is high produce large alphas, substantially increase factor Sharpe ratios, and produce large utility gains for mean-variance investors. We document this for the market, value, momentum, profitability, return on equity, and investment factors in(...) Option Pricing Methods in the Late 19th Century [Quantpedia]This paper examines option pricing methods used by investors in the late 19th century. Based on the book called “PUT-AND-CALL” written by Leonard R. Higgins in 1896 and published in 1906 it is shown that investors in that period used routinely the put-call parity for option conversion and static(...) Trading with different time frames [Milton FMR]Time frames are used in order to forecast future price trends. Many traders are missing out on this important aspect of trading by only looking at one time frame when trying to define a trend. Therefore its important to categorize trends as primary, intermediate and short-term trends. As a rule of(...) Profitable Market Timing with the Unemployment Rate [iMarketSignals]If the unemployment rate is higher than three months ago the model exits the stock market and enters the bond market, and re-enters the market when the unemployment rate is equal or lower than where it was three months ago. From 2001 to 2016 switching between bonds and stocks provided significant(...) Introducing the Global Earnings Announcement Premium [Alpha Architect]How do stock prices react to earnings announcements? Sometimes prices go up, and sometimes they go down. But here is a potentially more interesting question: What is the average performance across all stocks that have an announcement? The question of whether stocks earn excess returns in(...) The Optimal ETFs For Each Market Segment [Signal Plot]In one of my previous posts, I wrote about my framework for choosing ETFs since I wanted a method of choosing the optimal ETFs for expressing my market views. Generally, the framework is to choose an ETF with a low expense ratio, low trading costs, low tracking error, and a tax-advantaged structure.(...) Taming High Return and High Risk [Alvarez Quant Trading]I was at a recent talk of the Northwest Traders and Technical Analysts group where they presented a VXX strategy with some huge return and drawdown numbers. Trading this would be very difficult. This got me thinking. If I had a strategy like this, how could I tame the numbers? Through the years, I(...) Learning with kernels: an introductory approach [Quant Dare]Time series pervade financial markets and, although some embrace the so-called efficient market hypothesis, stating that current market prices reflect all available information about a security into its price, I am more inclined to think they provide us with a lot of information that we rarely know(...) Momentum Rotation System AmiBroker Code [DTR Trading]I've received several requests for details on the AmiBroker (AB) code and settings used for the backtest shown in my April post: Momentum Rotation 60 Day ROC System Results. That post used the AmiBroker Formula Language (AFL) code from my article in March 2015. That was a long time ago, so here(...) QuantStart Events in October and November 2016 [Quant Start]This is a short post to let QuantStart readers know that I'll be speaking at some events in New York and Singapore over the next couple of months: Wednesday, October 5th 2016, NYC - I'll be talking about "The Quest for Profitability", along with Seong Lee who will be talking(...) The Cost of Contango—It’s Not the Daily Roll [Six Figure Investing]It’s well known that long volatility Exchange Traded Products (ETPs) like VXX, UVXY, and TVIX often experience devastating losses during market quiet spells—even when the value of the VIX is staying relatively stable. These heavy losses occur when the VIX futures that underlie these funds are in(...)