Back

A simple VIX Strategy

A simple, yet untradable (unstable), VIX Strategy using two ETFs.

It has a simple binary (all or nothing) allocation:

1. long vol (buy VXX), 

2. short vol (buy XIV),

3. none.

Signal is just the standard RSI but used as a momentum (rather than a contrarian) indicator. Levels are also those standard to indicate overbought or oversold securities (i.e. 85, 70, 30, 15).

Strategy is, however, a pie in the sky... a simple daily VIX/VXV ratio signal still more stable/reliable.

Update Backtest








0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Another idea for VIX strategy, low DD, high performance.. 

https://collective2.com/details/106901765
1

Hello, I'm tryng to backtest alex meuci strategy until february 2018, because of termination of XIV and I can't.  Runtime Error: A data subscription for type 'PythonQuandl' was not found. Also I want to test this strategy but only with VXX. short VXX under 0.95 and long VXX above 1.05. How I should write these code. 

Thanks

0

Just tried to re-run the first algo I posted above (VIX by RSI) - by limiting the backtesting to end of Jan 2018 (i.e. self.SetEndDate(2018,1,20)) - and it did work as before. 

Gabriel, why do not you try and use long positions in ZIV (which shorts mid-curve VIX futures, rather than shorting VXX) for a safer and, potentially, easier way to hedge vol spikes with either front VIX futures (now available) or VXX calls? 

If I have time will try to post such an example later.

0

Thanks for the advice, but I want to backtest the system with short VXX because I already have wich ratios VIX/VXX are optimal. How could I change the code to allow short VXX and long VXX. I'm still learning the documentation. Thanks anyway for the advice. Later I will try with ZIV.

0

Hello, again. I've proved what you said with the first strategy with RSI, but with the second wich I'm more interested in, it doesn't work.
It show this message:Runtime Error: A data subscription for type 'PythonData' was not found.
0

RIP XIV and the 1+ billions that vaporated during the liquidation event.

That being said, I am reviving this thread. ;) added my fix on data retrival below (may still have bugs!), some minor refactoring, and lastly, switched XIV to SVXY.

0


adding another version below.  Summary of chages listed below:

+ as suggested by Alex, added "momentum" term based on increasing/decreassing z score of the vix/vxv ratio.
+ logic for long/short volatility is based on if vix/vxv is trending towards contago/backwardation based on "momentum".
+ provided 2 kinds of allocation style - aggressive and conservative.

Backtest performance of the 2 kinds of allocation are listed below (timeframe: 2012 to present).
        # aggressive mode: PSR 41%, win/loss rate 59/41, max drawdown 49%, return 1573%
        # conservative mode: PSR 34%, win/loss rate 57/43, max drawdown 18%, return 246% (displayed below)

Happy holidays.

0


Ted  that great coding Ted, thanks for sharing! ... got a good laugh looking at the code (braveheart vs babies with 30 year mortgage LOL)

 

1

Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed