Automatic trailing is activated with the Trail variable. It is stored in TradeTrailDiff, so for disabling the trailing, set TradeTrailDiff to 0. Or do not use automatic trailing at all and trail by script in the TMF.