Under "on Trade" better don't put that Buy block above the event-filter purple blocks. Like that you would see a new trade every time some trade event happens...even the creation of the buy trade itself... the chance is that you now have endless loop of buying trades.

First of all, for the EA to work with manually created trades, do this:
0_1550688730449_1e224310-9791-47be-ac14-8c76a3a9a9a2-image.png

To set SL/TP on a newly created trade, you can use the "on Trade" event, but with something like Trade created -> Modify stops

It's similat to detect when TP or SL is hit - with those "Trade closed" blocks. Open their parameters and you will see options. You can detect the type (buy or sell) also in "Trade closed". "For each Closed Trade" are not needed.