Hi,
It is not clear for me why this algo outperform SPY so much with no leverage (the only thing it does is to short financial sector during recession, then buy SPY). Could someone explain please ?
Thank's!
Hi,
It is not clear for me why this algo outperform SPY so much with no leverage (the only thing it does is to short financial sector during recession, then buy SPY). Could someone explain please ?
Thank's!
Almost 40 views and no responses :-(
I understand there is a problem with passing the orders, but how is it possible ?
Your code never sells. You just keep buying when your condition is true over and over. Leveraging continually.
I added a function to record your leverage and exposure, it looks like the algo does go haywire borrowing. My guess is that it is placing new orders when there are already open orders that have not filled.