This is a simplified version of my recent strategy.
I wrote the same strategy using Quantopian's "Algorithms" and "Notebooks", but the results are significantly different (including return and max drawdown).
If I use TQQQ only, the results are consistent. It seems that the data of UVXY has some problems.
Could anyone help figure out why?
The Notebook is posted in the following post.