Tag: backtest

Factor MAX

The paper Factor MAX and Predictable Factor Returns from Liyao Wang and Ming Zeng presents a twist on momentum investing that goes long the factor that had the largest single-day return in the previous month. It is distinct from factor momentum goes long the factor that had the largest return over a specific formation period.

We have been running factor and model momentum for a while now with mixed results so we decided to have a look at this new strategy in the Indian long-only context.

tl;dr: not so hot!

We selected the NIFTY500 factor indices: LOW VOLATILITY 50 TR, MOMENTUM 50 TR, QUALITY 50 TR and VALUE 50 TR to compare Factor MAX vs. Factor Momentum. Factor Momentum out-performed Factor MAX.

The problem with using a single day’s performance to select a factor is that more volatile factors get picked more often. Here’s a plot of the monthly active factor between the two strategies.

Quality and Low-volatility factors do not jump around every day. Hence, their low representation in Factor MAX. You could use volatility adjusted returns to paper over this. However, we felt that went against the main thrust of the paper that investors systematically under-react to factor-level news embedded in these extreme returns, creating exploitable return predictability.

We ran the same backtest over a subset of our momentum and value models. Factor Momentum bested Factor MAX here as well.

If you want to DIY Factor Momentum based on this backtest, you can do so with cheap index funds:

  • Nippon India Nifty 500 Quality 50
  • Nippon India Nifty 500 Low Volatility 50
  • Nippon India Nifty 500 Momentum 50
  • Axis Nifty500 Value 50

Code and charts on github.

Momentum Rebalance Frequency, Part II

Previously, we looked at momentum rebalance frequencies with a monthly increment. However, if you observe the individual returns of momentum stocks (Returns under Momentum), you’ll notice that the returns of momentum stocks tail off after the first two weeks. Does switching to a weekly rebalance frequency make sense?

The biggest problem with a higher frequency of rebalance is the higher transaction cost that comes with it. So, we set the drag to be 0.5% and run 1- through 4-week rebalancing scenarios.

Turns out, there is an advantage to rebalancing a momentum portfolio once in two weeks rather than once a month.

The transaction costs are roughly 5% (annualized) vs. 3% of the monthly rebalanced version.

The main thing to watch out for is the portfolio overlap between rebalancing. The lower the overlap, higher the costs.

Costs are permanent and immediate while returns are hypothetical and distant. Make of this what you will.

Code and charts on github.

Related: Factors

Rolling MADs

Our previous posts introduced portfolios based on Moving Average Distance (Part 1, Part 2). To answer questions regarding the stability of the moving average lookbacks, we ran a rolling window, picked the “best” MA lookbacks and walked the portfolio forward by a month. We expanded the window through 12 to 60 months in 12 month increments.

Turns out, most of them fall within the 20/200 region.

The data-mined parameters create portfolios that perform on par with the 21/200 used in the paper. While we are always skeptical about magical parameters that make the research work, at least in this case, the magic is not too far fetched.

You can follow along the live version of the original strategy here: MAD 21/200

Multiple MADs

Our previous post introduced a paper that used a moving average crossover to create a portfolio of stocks. While the backtest using the parameters in the paper looks good, the presence of these “magic” lookback parameters gives us pause. Did the authors just try a bunch of different parameters and published what worked? What if we do an exhaustive search through all possible combinations?

Here are the annualized returns and Sharpe ratios pre-COVID:

The magic 21/200 lookbacks look legit. However, the post-COVID picture looks different:

The magic parameters don’t quite figure in the top 5. However, even if you used the data-mined set, you would be ok?

Also, the paper used a “sigma” parameter as a threshold to activate the crossover. Getting rid of it seemed to have lopped 10% off the post-COVID returns.

You can follow along the live version of the original strategy here: MAD 21/200

Code and charts on github.

MAD – Moving Average Distance

Sometimes, a research paper comes along that gives academic rigor to an obvious thing that trend-followers were doing for decades and makes you sit up and take notice. Moving Average Distance as a Predictor of Equity Returns, Avramov, Kaplanski and Subrahmanyam (SSRN) does just that.

Turns out, a simple moving average crossover signal proves robust to momentum, 52-week highs, profitability, and other prominent anomalies.

A later paper extends it to international stocks and finds similar results (SSRN).

A quick backtest shows that it works for Indian stocks as well.

It looks like COVID turbo-charged this strategy. The pre-COVID equity curve is saner.

The returns are good but it comes with some nasty drawdowns. Not sure if most investors can stomach a 25% drawdown that lasts over a year. Can it be made better by applying a volatility filter?

By sacrificing 2 points of returns, you can get to a sub 20% drawdown. Also, the filter worked during the most recent 2021-23 drawdown as well.

You can follow along the live version of this strategy here: MAD 21/200

Code and charts on github.