Set HEDGING for opening opposite positions at the same time.
When you want to change the TP of the other order immediately when an order exits, you need a trade function that checks if the other function is still open, and modifies the TP otherwise. Look for an example under "Trade Parameters".
For setting the trade size, read workshop 6 and the "Lots" page in the manual.