Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
RSI Hopping

Every two weeks it sells $1000 of the stock with the highest RSI and buys $1000 of the stock with the lowest RSI.

Info is based on 14 stocks. Primarily tech stocks but also includes 3 or 4 Oil/Gas companies.
Used 'QQQ' as the benchmark.

Known weakness: Should sell 'up to' $1000 of a the highest RSI stock 'that we own' then buy 'up to $1000' of the lowest RSI. Currently allows shorting on possibly healthy stock.

10 responses

sells $1000 = short $1000?

If you don't own the stock already, yes.

How to know the highest or lowest RSI in 2 weeks, Is it >70 or <30?

If RSI>70 in 10 days, Trade or not?

Every two weeks it looks at the RSI for each stock and then sells whatever the highest is. So the highest RSI could be only 55 and it would still get sold. It would then be replaced by the stock with the lowest RSI which, in this case, could be anywhere from 0-54.

Lather, rinse, repeat.

Thanks!

No problem, and you have a good point. It might be more efficient to sell the stock that had the highest RSI over the last two weeks and buy the stock that had the lowest over the same two weeks. That way you're more likely to sell a stock that has already peaked and buy one that has just started recovering from a dip.

Did you trade with real-money?

I made a few changes, stopped it from borrowing money (It's easy to beat the market by 3 times if you borrow 3 times your capital) and prevented it from shorting. Results are less than stellar but it's certainly a starting point. I also multiplied the capital by 10 and added a $10 commission on each trade.

Note that it has nearly zero alpha, a sharpe ratio of 1 and an IR of slightly less than 0.

Thanks, I'll have some time later to fiddle with it.
But you definitely saved me some work. And good idea adding the commission, that makes sense.