Close all orders on first TP

Good Afternoon,

I am looking for a code with which I can close all operations when I reach the first TP

Set all orders to the same "first TP."