Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
j0b0t v3: S&P500 w/ Leverage -- RSI, STOCH, MACD with pretty good returns!

Please check out my program and feel free to add on to it to see where it can go! As of now the main goals are to minimize risk, the drops are simply too steep as it seems my decision/scoring algorithm must be optimized.

We're making decisions based on the RSI, STOCH and MACD values of SPY. Utilizing UPRO 3x leverage to optimize return.

Let me know what you think! (It's my first, and due to current time EST, pardon the chicken-scratch code).

3 responses

I ran this as a backtest and noticed a pretty big issue. Regardless of the time period selected or the security chosen, this algorithm makes one large purchase at the very beginning of it's run and then doesn't make an buy or sell moves for the rest of the duration of the backtest.

I will have to look into this issue. I have recently dropped this algorithm in favor of another:

https://www.quantopian.com/posts/vix-trading-algorithm-return-150-percent-a-year-over-past-5-years-but-has-50-percent-drawdown-from-2015-meltdown

But, I have noticed that this algorithm is flawed. It buys UPRO, and in fact does worse than the UPRO benchmark. Thus, this algorithm is a dud in terms of total possibility. Maybe more return than SPY, but the volatility VS UPRO is bad. I agree 100%.

Almost exactly same as UPRO