Back to Community
Less is more: small and simple mixed strategies

Hi there,

I will share two simplified classic strategies and their respective mashup:

I. Simplified version of "Sell in May and go away" with SPY
Based on: https://www.quantopian.com/posts/time-to-sell-in-may-and-go-away

Clone Algorithm
365
Loading...
Backtest from to with initial capital
Total Returns
--
Alpha
--
Beta
--
Sharpe
--
Sortino
--
Max Drawdown
--
Benchmark Returns
--
Volatility
--
Returns 1 Month 3 Month 6 Month 12 Month
Alpha 1 Month 3 Month 6 Month 12 Month
Beta 1 Month 3 Month 6 Month 12 Month
Sharpe 1 Month 3 Month 6 Month 12 Month
Sortino 1 Month 3 Month 6 Month 12 Month
Volatility 1 Month 3 Month 6 Month 12 Month
Max Drawdown 1 Month 3 Month 6 Month 12 Month
# Backtest ID: 53759a9ec49455071ee0dd71
There was a runtime error.
7 responses

II. Simplified version of "50/200MA Crossover" with SPY
Based on: https://www.quantopian.com/posts/50-slash-200ma-crossover-strategy-spy-no-short-component

Clone Algorithm
365
Loading...
Backtest from to with initial capital
Total Returns
--
Alpha
--
Beta
--
Sharpe
--
Sortino
--
Max Drawdown
--
Benchmark Returns
--
Volatility
--
Returns 1 Month 3 Month 6 Month 12 Month
Alpha 1 Month 3 Month 6 Month 12 Month
Beta 1 Month 3 Month 6 Month 12 Month
Sharpe 1 Month 3 Month 6 Month 12 Month
Sortino 1 Month 3 Month 6 Month 12 Month
Volatility 1 Month 3 Month 6 Month 12 Month
Max Drawdown 1 Month 3 Month 6 Month 12 Month
# Backtest ID: 53759dc496cf5f0716ce7608
There was a runtime error.

III. Smart SPY
Both strategies mixed: It reduces the max drawdown and improve the returns ;)

  • I think it's a good practice to work progressively with simple and effective strategies.
  • Alternatively you can short SPY instead of sell it: the returns will be better but the max drawdown will increase by 27%!!
Clone Algorithm
365
Loading...
Backtest from to with initial capital
Total Returns
--
Alpha
--
Beta
--
Sharpe
--
Sortino
--
Max Drawdown
--
Benchmark Returns
--
Volatility
--
Returns 1 Month 3 Month 6 Month 12 Month
Alpha 1 Month 3 Month 6 Month 12 Month
Beta 1 Month 3 Month 6 Month 12 Month
Sharpe 1 Month 3 Month 6 Month 12 Month
Sortino 1 Month 3 Month 6 Month 12 Month
Volatility 1 Month 3 Month 6 Month 12 Month
Max Drawdown 1 Month 3 Month 6 Month 12 Month
# Backtest ID: 53759f8ec25fc8070d7e35ea
There was a runtime error.

IV. Smart SPY tweaked w/short component

  • NO leverage, SPY=benchmark, code easy to read
  • The rebalance frequency can be improved.
  • Does this strategy could be optimized if it works with a group of stocks?
  • How would implement the minute mode?

Enjoy!

Clone Algorithm
365
Loading...
Backtest from to with initial capital
Total Returns
--
Alpha
--
Beta
--
Sharpe
--
Sortino
--
Max Drawdown
--
Benchmark Returns
--
Volatility
--
Returns 1 Month 3 Month 6 Month 12 Month
Alpha 1 Month 3 Month 6 Month 12 Month
Beta 1 Month 3 Month 6 Month 12 Month
Sharpe 1 Month 3 Month 6 Month 12 Month
Sortino 1 Month 3 Month 6 Month 12 Month
Volatility 1 Month 3 Month 6 Month 12 Month
Max Drawdown 1 Month 3 Month 6 Month 12 Month
# Backtest ID: 5375a3f5c49455071ee123d2
There was a runtime error.

Hi Martin,

thanks your interesting strategy and let us could see the powerful about quantopian backtest platform.

Thanks for sharing!

Simple strategy but look graphic data is pretty.

A minute backtest version of this strategy

Clone Algorithm
45
Loading...
Backtest from to with initial capital
Total Returns
--
Alpha
--
Beta
--
Sharpe
--
Sortino
--
Max Drawdown
--
Benchmark Returns
--
Volatility
--
Returns 1 Month 3 Month 6 Month 12 Month
Alpha 1 Month 3 Month 6 Month 12 Month
Beta 1 Month 3 Month 6 Month 12 Month
Sharpe 1 Month 3 Month 6 Month 12 Month
Sortino 1 Month 3 Month 6 Month 12 Month
Volatility 1 Month 3 Month 6 Month 12 Month
Max Drawdown 1 Month 3 Month 6 Month 12 Month
# Backtest ID: 54d917929ae2410d3f0aecb1
There was a runtime error.