Some hints:
Use different tree blocks for launching/trailing stopping trades. Trailing stop should have its own tree of conditions.
Same for close trades. Are those conditions on blocks 2, 3 and 4 for buys exactly the same for closing trades? I guess not. So you need another tree of conditions for closing your trades.
I see you are using candle ID 1 on your condition blocks, Good for you! 😉 That's a common issue for newbies, so you are not a newbie anymore. 😉
Try redo your project again with these recommendations and let me know.