A Quantopian user asked for help improving code to implement trailing stop losses for stocks purchased through Robinhood, since Robinhood does not natively support this feature. Commenters provided suggestions on how to reference the position's average cost and loop through held positions rather than hardcoding a single stock. They also discussed potential issues around determining the time of purchase and whether an algorithm could detect manually opened positions on Robinhood.
A Quantopian user asked for help improving code to implement trailing stop losses for stocks purchased through Robinhood, since Robinhood does not natively support this feature. Commenters p…