Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
XIV strategy that survived 2008 (don't miss this one!)

This simple strategy is inspired by Gary Antonacci's GEM strategy. The strategy uses a dual momentum model with a risk-on securities basket containing SPY (US equities), EFA (international developed equities), EEM (emerging market equities) and XIV (inverse volatility). AGG (bonds) is used as the absolute momentum filter and TLT (long-term treasuries) is used as the out-of-market asset. The strategy has 4 holding slots of 25% each and can be filled by any of the securities mentioned above.

One small difference: this strategy uses a 1-month look-back period and only trades quarterly vs. Antonacci's 12-month look-back period and monthly trading. The reasoning is explained in this post.

Here's the link to this strategy on Portfolio Visualizer for confirmation: http://bit.ly/2w0dqog

Below is a pre-2008 backtest of the strategy on Portfolio Visualizer using synthetic XIV data found here. Read this for the caveats of using synthetic XIV/VXX data. Note that the stats are based on monthly return data.

Enjoy! Please help me improve it if you can. If anything is off or weird, please let me know as well! For any collaboration request or general consultation, feel free to email: [email protected]

7 responses

indeed it's a low risk one. A lot improvement on performance can be made.

This one was created with institutional level scalability in mind, hence its low trading frequency

Hi Kory,
Very nice to look at your algos. Maybe a newbie question, but is there a way to see the total commissions paid per year of quarter? Also, is there a way to make the same algo without leverage to see the adjusted performance? I wanna know the applicability for a retail investor paying high commissions and no access to low interest leverage (or not interested in it anyway).

Thanks,
JD

Hi JD,

The current algo uses default commission and slippage. There is also no leverage used. To see the full effect of what commissions can do, use the below codes. I have 2 commission rates coded (one is commented out) that you can play with. One is for Interactive brokers and one is for TradeStation, both of which I have accounts with. You can set commissions to 0 and then compare it to other rates to see what the difference in performance would be.

The total amount of $ for variable commission rates like Interactive Brokers depends on the number of shares. For fixed rates like TradeStation, it's easier to figure out. Below pic shows how many trades the algo made in the backtest. Total TradeStation commissions for 2016 would have been about $5 x 27 trades = $135

Thank you for posting your idea Kory. I know that you had posted a similar algo, using GLD instead of XIV.
Can you comment on making such change?
Thank you.

Also I observed that trading monthly / bimonthly makes the algo far less robust. Any insight behind this to share?

Thank you.

Obviously, this article didn't see the fateful day when Credit Swiss's XIV ETF blow up. I lost a lot of money and I had to put an investment policy unto myself no more leverage (if using derivative only notional principals can be traded).
If you want to know what I do. I do very simple things, invest prudently. www.uakdiversified.com