creating trailing stop to protect profit

create 20 pips stop and 40 pips tp
after 20 pips. protect 10 pips. etc