You can find in the TradeTest script an example of how to use TradeIsMissed.