Open brettelliot opened 2 years ago
Ive spent more time on this and the trailing stop loss is definitely busted. I've managed to build one using a loop but the one above has issues.
Ive spent more time on this and the trailing stop loss is definitely busted. I've managed to build one using a loop but the one above has issues.
You should avoid using a for loop and try to find a vector-based solution since you're working in Pandas. Looping through each ticker in the universe is going to be extremely inefficient.
Let me know if you ever made any progress on this btw.
Hi all,
I didn't see stop loss or trailing stop loss functionality anywhere so I tried implementing it myself. The stop loss was easy but the trailing stop loss took a little work. I figured I'd post here so that other people might benefit.. or maybe other people can tell me where I messed up!
Would love feedback on these.
Thanks, Brett