The trailing stop block checks all trades one by one if their stop needs to be moved, and moves it when needed. This happens on every execution of this block. Recently I added this option "Trail what?", so now you can use that block to trail take-profits. One for stop-loss and another for take-profit will work fine.
Here is how to use this block: https://fxdreema.com/demo/mt4-trailing-stop
basically, make it run on every tick. In your case you can connect 2 blocks one after another somewhere under "on Tick", they will work.