Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
simulate a 3x etf

how would you do this: https://quantstrattrader.wordpress.com/2014/11/03/seeking-volatility-and-leverage/

with quantopian? I would like to simulate a 3x SPY and TLT from 2000

3 responses

I don't have the patience to work through the reference you provided, so perhaps you could summarize what is needed. I've attached an algo that simply buys SPY at 3X leverage. Is that what you need?

Not quite. putting 100% cash in the 3x etf cannot have a negative account balance. It would quickly converge to zero in 2008 but not go negatvie

In the Quantopian research platform, you may be able to synthesize securities, and then run backtests on them.