How to hold variable value at max price instead of moving with price?

Any idea on doing this with strategy builder?
I want partial trailing as the strategy takes profit at certain points and leaves remaining on trailing stop.
thanks