have you tried making a condition block with 5MA < 20MA and connect the trailing stop to it. when the block condition is false it will stop activating the trailing stop block.
@woman yes, just a single pass. "Max times to pass" changes that amount - if 5, for example, the block will pass 5 times (on the first 5 price updates of that particular candle).