Modify TP on open trade

 
How can I modify an order when my set TP is hit on a trend? I have tried various methods where Bid=OrderTakeProfit, Bid<OrderTakeProfit && Bid>=OrderTakeProfit-(difference value). I am stymied as what I may be missing here. Any help would be huge. Thanks.
 
I should note I have been researching through this site and what I have found has been vague or I just cannot see what the code is doing that makes sense.
 
qdpitts:
How can I modify an order when my set TP is hit on a trend? I have tried various methods where Bid=OrderTakeProfit, Bid<OrderTakeProfit && Bid>=OrderTakeProfit-(difference value). I am stymied as what I may be missing here. Any help would be huge. Thanks.


If your set TP is hit, the order is closed.

You cannot modify a closed order

Reason: