Trailing Stop For Exiting On Momentum Strategy


Was reading in the docs there are 3 ways to exit a position QuantRocket:

Exit by rebalancing
Attach exit orders
Close positions with the blotter

If we wanted to exit a position using an 5% trailing stop, what would be the best way to do this? My hunch would be that the trailing stop logic would need to be part of the prices_to_signals logic in which a position returns 0 as a signal for rebalancing if the latest closing price divided by the newest 52-week high is less than 0.95?


Yes, that sounds like a reasonable strategy.