I am pretty sure that TrailLock, Stop and so on are only for entering a new trade and don't change already open trades.
All entry and exit parameters must be set before calling enterLong / enterShort. They have no effect on already entered trades. For changing a stop or profit target of a particular trade after it has already been opened, use either a TMF, or call exit with the new target