Hi all! First time poster, long time lurker.
First off, I am so thankful I stumbled upon this site. Thank you for providing us little guys with the means to research strategies, Quantopian!
I am having some issues with an algo I cannibalized from here:
https://www.quantopian.com/posts/etf-rotation-strategy
when trying to marry it with a trailing stop loss idea found here:
https://www.quantopian.com/posts/trailing-stop-loss
The error I am getting is in line 143 of the "set_trailing_stop" funciton. The error is as follows:
TypeError: unhashable type: 'list'
...
USER ALGORITHM:143, in set_trailing_stop
if context.portfolio.positions[context.stock].amount:
Any help would be greatly appreciated.