Howdy,
Been working with Cesar Alvarez on this recently. Finally got it coded on Quantopian thanks to Jacob Lower's help. This algorithm plays both momentum and mean-reversion in XIV on the daily interval using the RSI2 indicator. The algorithm takes a long position in XIV when its 2-day RSI reading crosses above 75 (momentum) and when its 7-day RSI crosses above 25 (mean-reversion). If the 2-day RSI crosses below 75, it sells XIV. Profit target and stop loss are set at +5% and -2%, respectively. When not holding XIV, the algorithm "hides" out in TLT.
Please note that the recent underperformance was due to TLT tanking post election. The version I'm trading in MultiCharts has been making new highs because it does not hide in TLT when not in XIV; it simply goes to cash.
Original strategy in MultiCharts (this version does not hide in TLT):
- http://imgur.com/a/Ydm0y
- http://imgur.com/a/eiCEQ