Blog

Explore the research behind our trading, plus some just-for-fun stuff....

Posted on Aug 20, 2021 by Kris Longmore
2 comments.
158 Views

rsims is a new package for fast, quasi event-driven backtesting in R. You can find the source on GitHub, docs here, and an introductory blog post here. Our use case for rsims was accurate but fast simulation of trading strategies. I've had a few questions about how I made the backtester as fast as it is - after all, it...

Posted on Aug 13, 2021 by Kris Longmore
3 comments.
319 Views

rsims is a new package for fast, realistic (quasi event-driven) backtesting of trading strategies in R. Really?? Does the world really need another backtesting platform…?? It's hard to argue with that sentiment. Zipline, QuantConnect, Quantstrat, Backtrader, Zorro… there are certainly plenty of good options out there. But allow me to offer a justification for why we felt the need to...

Posted on Apr 27, 2021 by Kris Longmore
No Comments.
1,192 Views

It's easy to lose money trading if you do certain things: Trade too much (paying fees and market impact on each transaction) Size positions too big (high volatility hurts compounding ability, and in the extreme can cause you to blow up) Short positive drift/risk premia Perhaps surprisingly, it's actually quite hard to lose money consistently if you avoid these things....

Posted on Apr 16, 2021 by Robot James
No Comments.
1,944 Views

If you have some factor that you think predicts future stock returns (or similar) and you are making charts like below, then here are some tips... We'll go through an example of trying to "time" SPX with the level of VIX. You get daily SPX index prices and daily VIX close data You align them by date and plot them...

Posted on Apr 08, 2021 by Robot James
No Comments.
1,058 Views

Many beginner traders don't realize how variable the p&l of a high-performing trading strategy really is. Here's an example... I simulated ten different 5 year GBM processes with expected annual returns of  20% and annualized volatility of 10%. (If you speak Sharpe Ratios, I'm simulating a strategy within known Sharpe 2 characteristics.) I plotted the path with the highest ending...

Posted on Apr 02, 2021 by Robot James
No Comments.
1,121 Views

I've been helping a family friend with his trading. I've given him a simple systematic strategy to trade by hand. First, we set expectations We can plot the distribution of historic trade returns from past trading or a backtest as a histogram.   This is useful because it gives us a hint as to what the "edge" of our strategy...

Posted on Feb 10, 2021 by Kris Longmore
2 comments.
2,691 Views

Broadly, there are three types of systematic trading strategy that can "work." In order of increasing turnover they are: Risk premia harvesting Economically-sensible, statistically-quantifiable slow-converging inefficiencies Trading fast-converging supply/demand imbalances This post provides an overview of each. 1. Risk Premia Harvesting Risk Premia Harvesting is typically the domain of wealth management, but it's important to any trader who likes money....

Posted on Jan 06, 2021 by Kris Longmore
1 Comment.
654 Views

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 interface, you are asked to select a...

1 2 3 14