Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Simple monthly SPY leveraged long-only strategy

Hi Quantopians,

Happy to research and learn from this community.

I have the following request. I need to code this strategy.
Monthly disposable capital: $1000.
Every start of the month:
If last daily SPY close is 0-5% down from all time high -> buy 1x SPY ($1000).
elif last daily SPY close is 5-10% down from all time high -> buy 2x SPY ($2000).
elif last daily SPY close is 10-20% down from all time high -> buy 3x SPY ($3000).
elif last daily SPY close is 20%+ down from all time high -> buy 4x SPY ($4000).
Hopefully you never sell.

The basic idea is to leverage-buy drops so as to increase returns, but not get stopped out in the process.

Cheers.