There are different ways to do this, so it depends. Here are some ways:
The easiest way is to use those blocks that create grid of pending orders - you will see them, I'm sure.
Another way is like this:
https://fxdreema.com/shared/8YhJbEFqb Note the settings in blocks 1 and 3. Here the problem is that "once per trade/order" remembers if a given trade was passed through it, but when you restart the EA it will remember everything. Again, note the setting in block 1, the "Not more than..." parameter, this is important one in this case.
Another way is with this block called "Round numbers detector", but it snaps to round values, you still need to get TP from the last trade - in a similar way as in the example above if you only use blocks 1 and 4.