thanks in advance.
how to write the dynamic takeprofit going up, following the price going up.
Stop posting help topics with [[ ]] !!!
Obviously you mean for a Buy.
There is little point in such a thing. If you kept modifying the TP so that it is eg. 10 pips above the latest high, it would never reach there unless there is a sudden leap upwards.