Quant Mashup
Quantocracy is now on Bluesky and Threads. See the links in the header. - Mike
Avoiding Gap Trades [Alvarez Quant Trading]
Should you avoid trades that have recently gapped? What if you are trading a mean reversion strategy and a stock has recently had a large gap? Is that a good trade to take? Avoid? Does it depend on the direction of the gap? I did research on this about 15 years ago. Let’s see what the current
- 3 years ago, 20 Jan 2021, 07:45pm -
Keller's Resilient Asset Allocation [Allocate Smartly]
This is a test of the latest tactical strategy from Dr. Wouter Keller: Resilient Asset Allocation (RAA). RAA is intended to be a low turnover strategy, only shifting from a balanced risk portfolio to a defensive portfolio during the most potentially bearish of times. Backtested results from 1970
- 3 years ago, 19 Jan 2021, 08:19pm -
Extracting Interest Rate Bounds from Option Prices [Sitmo]
In this post we describe a nice algorithm for computing implied interest rates upper- and lower-bounds from European option quotes. These bounds tell you what the highest and lowest effective interest rates are that you can get by depositing or borrowing risk-free money through combinations of
- 3 years ago, 19 Jan 2021, 08:18pm -
Oh, Quality, Where Art Thou? [Factor Research]
Quality and quality income ETFs have underperformed the S&P 500 since 2005 The most recent underperformance is explained by an underweight to technology stocks However, more importantly, quality ETFs have not reduced drawdowns during stock market crashes INTRODUCTION Investing is never easy, but
- 3 years ago, 18 Jan 2021, 07:45pm -
Statistics of Point&Figure Charts [Philipp Kahler]
Point&Figure charts have been around for more than a 100 years and they are still quite popular, especially with commodities and forex traders. This article will do some statistical analysis of the most basic Point&Figure signal. Point&Figure Charts – price movements only Unless bar
- 3 years ago, 18 Jan 2021, 07:45pm -
Historical Returns for Newly Elected Presidents [Quantifiable Edges]
Back in the 1/20/2009 blog I looked at inauguration day returns. I wondered at the time whether a new president brought about new hope and optimism for the market. I have decided to update that study today. I limited the instances to only those inaugurations where a new president was entering
- 3 years ago, 18 Jan 2021, 07:44pm -
More factors, more variance...explained [OSM]
Risk factor models are at the core of quantitative investing. We’ve been exploring their application within our portfolio series to see if we could create such a model to quantify risk better than using a simplistic volatility measure. That is, given our four portfolios (Satisfactory, Naive, Max
- 3 years ago, 16 Jan 2021, 10:15am -
How To Create A Fully Automated AI Based Trading System With Python (h/t @PyQuantNews)
A couple of weeks ago I was casually chatting with a friend, masks on, social distance, the usual stuff. He was telling me how he was trying to, and I quote, detox from the broker app he was using. I asked him about the meaning of the word detox in this particular context, worrying that he might go
- 3 years ago, 15 Jan 2021, 09:49am -
How to Get Historical Market Data Through Python Apis [Quant Insti]
As a quant trader, you are always on the lookout to create and optimise your trading strategies. Backtesting forms a very important part of this process. And for backtesting, access to historical data is a necessity. But it’s a very daunting task to find decent historical price data for
- 3 years ago, 15 Jan 2021, 09:45am -
Research Review | 15 January 2021| Forecasting [Capital Spectator]
Long-Term Stock Forecasting Magnus Pedersen (Hvass Laboratories) December 17, 2020 When plotting the relation between valuation ratios and long-term returns on individual stocks or entire stock-indices, we often see a particular pattern in the plot, where higher valuation ratios are strongly
- 3 years ago, 15 Jan 2021, 09:45am -
Bayesian Portfolio Optimisation: Introducing the Black-Litterman Model [Hudson and Thames]
The Black-Litterman (BL) model is one of the many successfully used portfolio allocation models out there. Developed by Fischer Black and Robert Litterman at Goldman Sachs, it combines Capital Asset Pricing Theory (CAPM) with Bayesian statistics and Markowitz’s modern portfolio theory
- 3 years ago, 13 Jan 2021, 10:08am -
The Definitive Study on Long-Term Factor Investing Returns [Alpha Architect]
Interest in factor investing was hot several years back but seems to have died on the back of poor relative performance and a move to hotter products in thematics and ESG. But, for better or worse, we haven’t moved on. We are boring and we trust the process. We still believe that markets do a
- 3 years ago, 12 Jan 2021, 09:49am -
How Does ETF Liquidity Affect ETF Returns, Volatility, and Tracking Error? [Alpha Architect]
Although the ETF market has grown exponentially over the recent 20 years, ETFs that are less popular are not always liquid. A majority of the dollars flowing into ETFs are concentrated in 3 products, accounting for 46.7% of total ETF trading volume (see Figure 3 below). If the next 8 ETFs are
- 3 years ago, 12 Jan 2021, 09:49am -
Musings about Factor Exposure Analysis [Factor Research]
There are few alternatives to regression analysis when explaining investment performance Too few as well as too many independent variables can be problematic The results are often not intuitive, but also encourage asking further questions that may prove insightful INTRODUCTION The older I become,
- 3 years ago, 11 Jan 2021, 10:40am -
Recovering Accurate Implied Dividend and Interest Rate Term-Structures from Option Prices [Sitmo]
In this post we discuss the algorithms we use to accurately recover implied dividend and interest rates from option markets. Implied dividends and interest rates show up in a wide variety of applications: to link future-, call-, and put-prices together in a consistent market view de-noise market
- 3 years ago, 10 Jan 2021, 10:36am -
Classifying market states [SR SV]
Typically, we cannot predict a meaningful portion of daily or higher-frequency market returns. A more realistic approach is classifying the state of the market for a particular day or hour. A powerful tool for this purpose is artificial neural networks. This is a popular machine learning method that
- 3 years ago, 10 Jan 2021, 10:36am -
Value and Momentum and Investment Anomalies [Alpha Architect]
The predictive abilities of value and momentum strategies are among the strongest and most pervasive empirical findings in the asset pricing literature. (here is a deep dive) For example, the study “Value and Momentum Everywhere” by Clifford Asness, Tobias Moskowitz and Lasse Pedersen, published
- 3 years ago, 7 Jan 2021, 08:50pm -
Exporting Zorro Data to CSV [Robot Wealth]
Earlier versions of Zorro used to ship with a script for converting market data in Zorro binary format to CSV. That script seems to have disappeared with the recent versions of Zorro, so I thought I’d post it here. When you run this script by selecting it and pressing [Test] on the Zorro
- 3 years ago, 6 Jan 2021, 08:31pm -
Using maximum drawdowns to set capital sizing - not as bad as I first thought [Investment Idiocy]
Risk. Love it or hate it, well as a trader you have to deal with it even though none of us really like it. No, we'd all prefer to be one of those mythical traders you hear about on youtube or instagram who consistently make $1000 a day, and never lose any money. Sadly I am not in that unicorn
- 3 years ago, 5 Jan 2021, 08:02pm -
Simple versus Advanced Systematic Trading Strategies - Which is Better? [Quant Start]
An age-old question in the quant community asks whether systematic traders should stick with simple quant strategies or expend the effort to implement more advanced approaches. It is often the perception that retail algo traders solely utilise simpler strategies while quantitative hedge funds carry
- 3 years ago, 5 Jan 2021, 10:40am -
Hurst Exponent - finding the right market for your trading strategy [Philipp Kahler]
The Hurst exponent is a measure for the behaviour of the market. It shows if the market behaves in a random, trending or mean-reversion manner. This can be used to select the right trading strategy for your market. Hurst Exponent hurst spx hurst exponent spx The hurst exponent describes the self
- 3 years ago, 5 Jan 2021, 10:39am -
Factor Olympics 2020 [Factor Research]
Momentum has been the clear winner across markets in 2020 Value has been the laggard like in recent years Low Volatility ended a 10-year fantastic run INTRODUCTION We present the performance of five well-known factors on an annual basis for the last 10 years. We only present factors where academic
- 3 years ago, 4 Jan 2021, 10:03am -
Equity Fundamentals: Part 3 [Kyle Downey]
I have been thinking a lot about different models for backtesting and strategy development. While I would like to think it's possible to develop one universal backtester, I believe that different time horizons require materially different programming interfaces. In particular, tick-by-tick
- 3 years ago, 3 Jan 2021, 08:01pm -
Stock Market Valuation and Volatility with R [Light Finance]
Building on the work of Robert Shiller, in recent posts I investigated the use of the CAPE ratio to predict future stock market performance and examine for the structural change in market valuation over time. This work revealed that stock market returns depend significantly on valuation and are
- 3 years ago, 3 Jan 2021, 08:00pm -
Does It Make Sense to Use 1-Hour 1% VaR and ES for Bitcoin? [Quant at Risk]
Another day, another record. Today, at 17:35 GST+1, Bitcoin crossed U$33,000 in trading at Coinbase Pro exchange and did not fall sharply down. It took about 4.5 hours to accelerate from a psychological level of U$30k with more greed among investors rather than fear of bursting Bitcoin (second)
- 3 years ago, 2 Jan 2021, 08:43pm -
Macro variance [OSM]
In our last post, we looked at using a risk factor model to identify potential sources of variance for our 30,000 portfolio simulations. We introduced the process with a view ultimately to construct a model that could help to quantify, and thus mitigate, sources of risk beyond a simplistic
- 3 years ago, 31 Dec 2020, 11:08pm -
The 2021 Annual Finance Research Geek Fest: Top 5 Most Interesting Papers [Alpha Architect]
The American Finance Association Annual Meetings are here. 1 The conference is virtual this year but that doesn’t mean the organization hasn’t done a good job collecting the brightest minds in academia to discuss hundreds of new finance research papers — a gold mine for new and exciting ideas!
- 3 years ago, 31 Dec 2020, 11:07pm -
Most popular posts - 2020 [Eran Raviv]
Littered with Corona, this year was not easy. But looking around me, I feel grateful. The following quote by Socrates comes to mind: “If all our misfortunes were laid in one common heap whence everyone must take an equal portion, most people would be content to take their own and depart.” On
- 3 years ago, 30 Dec 2020, 08:14pm -
Trend-Following Filters: Part 1/2 [Alpha Architect]
Many traders use strategies based on trends that occur in stock, bond, currency, commodity, and other financial asset price time series in order to “buy low” and “sell high”. A trend is considered to be the overall direction of prices over a period of time. If prices have generally increased
- 3 years ago, 29 Dec 2020, 09:20pm -
P-Hacking Via Academic Finance Research Conferences [Alpha Architect]
This research is an update to “Documentation of the File Drawer Problem in Academic Finance Journals” published by the same authors in the Journal of Investment Management in 2018. A summary of that article can be found here. The “file drawer problem” refers to the idea that journal editors
- 3 years ago, 29 Dec 2020, 09:19pm -
Research Compendium 2020 [Factor Research]
In 2020 we published more than 50 research notes on mostly factor investing and smart beta ETFs, but also on topics like ESG, tail risk hedge funds, long volatility strategies, and private equity. The Research Compendium 2020 contains all of our research published this year. We would like to thank
- 3 years ago, 28 Dec 2020, 10:33am -
Equity Fundamentals: Part 2 [Kyle Downey]
In Part 1 we looked at using TimescaleDB and SQLAlchemy to build a relational database model of the Sharadar equity dataset with a Python object model sitting on top. The initial cut of this project ran on my desktop and broke up each of the dataset loads into a simple script that I could run in
- 3 years ago, 27 Dec 2020, 01:28am -
What traders should know about seasonal adjustment [SR SV]
The purpose of seasonal adjustment is to remove seasonal and calendar effects from economic time series. It is a common procedure but also a complex one, with side effects. Seasonal adjustment has two essential stages. The first accounts for deterministic effects by means of regression and selects a
- 3 years ago, 26 Dec 2020, 06:39pm -
New Equities Strategy (p2) [Tr8dr]
In the prior post I showed results for a new equities strategy which uses a combination of signals to create and risk manage a high-momentum portfolio. Further investigation revealed that I had neglected on a couple of fronts: failed to account for dividends (which are substantial) some data issues
- 3 years ago, 24 Dec 2020, 10:51am -
How Should Trend-Followers Adjust to the Modern Environment?: Enter Adaptive Momentum [CSS Analytics]
The premise of using either time-series momentum or “trend-following” using moving averages is the same only the math differs very slightly (see Which Trend Is Your Friend? by AQR): using some fixed lookback you can time market cycles and capture more upside than downside and therefore improve
- 3 years ago, 24 Dec 2020, 03:26am -
Petra on Programming: Short-Term Candle Patterns [Financial Hacker]
Japanese traders invented candle patterns in the 17th century. Some traders believe that those patterns are still valid. But alas, no one yet got rich with them. Still, trading book authors are all the time inventing new patterns, in hope to find one that is really superior to randomly entering
- 3 years ago, 23 Dec 2020, 10:20am -
‘Twas 3 Nights Before Christmas: NASDAQ version [Quantifiable Edges]
I’ve posted and updated the “Twas 3 Nights Before Christmas” study on the blog here several times since 2008. The study will kick in at the close today (12/22). This year I will again show the Nasdaq version of the study. While all the major indices have performed well during this period, the
- 3 years ago, 23 Dec 2020, 10:20am -
Monte Carlo option pricing - comparison of R and Julia languages [Mateusz Dadej]
This example investigates the performance of R in comparison to Julia language. Additionally shows how to easily call Julia inside R code. With that being said, we will load JuliaCall library that enables us to do so. Alternatively, there is also XRJulia library available. library(JuliaCall) It is
- 3 years ago, 21 Dec 2020, 08:47pm -
Visualizing Correlations Among Dow 30 Stocks Via NetworkX [Machine Learning Applied]
NetworkX is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks. Using daily adjusted close data from 20201118 to 20201218 for Dow 30 stocks, we compute correlation coefficients, apply a threshold of 0.8 to find similar stocks, and
- 3 years ago, 21 Dec 2020, 08:47pm -
Fed Model Improvement? [CXO Advisory]
Is there a better way than the Fed model to measure relative attractiveness of equities and bonds. In his October 2020 paper entitled “Towards a Better Fed Model”, Raymond Micaletti examines seven Fed Model alternatives, each comparing a 10-year forward annualized estimate of equity returns to
- 3 years ago, 21 Dec 2020, 11:24am -
Another miserable year for market forecasters [Mathematical Investor]
Suppose, during a nightly TV weather broadcast, that a reporter presented forecasts by persons, with no credentials in mathematical meteorology, who based their analysis on eyeballing a few charts and graphs. If anyone took such amateur forecasts seriously, when a severe storm was approaching,
- 3 years ago, 21 Dec 2020, 11:23am -
Bitcoin Mempool & Momentum [Tr8dr]
I have been thinking about the recent institutional buying that has propelled the price of bitcoin to stratospheric levels; in particular considering how one might detect some of this interest early. Bitcoin and crypto in general is quite interesting in that at some level, due to the decentralized
- 3 years ago, 19 Dec 2020, 09:39am -
Is Size a Useful Investing Factor or Not? [Alpha Architect]
In his famous 1981 paper, “The Relationship Between Return and Market Value of Common Stocks,” Rolf Banz found that small firms have higher risk-adjusted returns than large firms. This was one of the first major challenges to the capital asset pricing model (CAPM) and market efficiency in
- 3 years ago, 19 Dec 2020, 09:39am -
QQQ:IWM for Risk-on and GLD:TLT for Risk-off? [CXO Advisory]
A subscriber asked about a strategy that switches between an equal-weighted portfolio of Invesco QQQ Trust (QQQ) and iShares Russell 2000 ETF (IWM) when the S&P 500 Index is above its 200-day simple moving average (SMA200) and an equal-weighted portfolio of SPDR Gold Shares (GLD) and iShares 20+
- 3 years ago, 18 Dec 2020, 11:14am -
Reinforcement Learning for Trading [Quant Dare]
One of the most appealing areas of Artificial Intelligence is Reinforcement Learning, for its applicability to a variety of areas. It can be applied to different kinds of problems, in the present article we will analyze an interesting one: Reinforcement Learning for trading strategies. Reinforcement
- 3 years ago, 18 Dec 2020, 11:14am -
Explaining variance [OSM]
We’re returning to our portfolio discussion after detours into topics on the put-write index and non-linear correlations. We’ll be investigating alternative methods to analyze, quantify, and mitigate risk, including risk-constrained optimization, a topic that figures large in factor research.
- 3 years ago, 15 Dec 2020, 07:53pm -
The Value Factor’s Pain: Are Intangibles to Blame? [Factor Research]
The rise of intangibles has been increasingly used as an argument for the poor performance of the value factor However, this idea is not supported by data The type of market environment is marginally more useful for explaining the value factor performance INTRODUCTION Great storytelling may be the
- 3 years ago, 14 Dec 2020, 10:31am -
December Opex Week Historically Bullish [Quantifiable Edges]
I have written many times over the years about the bullish tendency of the market during opex week in December. I used to refer to it as “The Most Wonderful Week of the Year”. And it was…up until 2018. So below is an updated look at the stats and profit curve for owning SPX from the close of
- 3 years ago, 14 Dec 2020, 10:30am -
Inflation and precious metal prices [SR SV]
Theory and plausibility suggest that precious metal prices benefit from inflation and negative real interest rates. This makes gold, silver, platinum, and palladium natural candidates for hedges against inflationary monetary policy. Long-term empirical evidence supports the inflation-precious metal
- 3 years ago, 14 Dec 2020, 10:30am -
The Active vs Passive: Smart Factors, Market Portfolio or Both? [Quantpedia]
We would like to present our newest own-research about factor allocation and passive versus active strategies clash. However, respecting our blog format, this version is largely shortened and we invite you to read the full version. Introduction In the equity market, there are two types of investing:
- 3 years ago, 11 Dec 2020, 11:44pm -