Well, things are getting complex when searching for something is involved. As I explained, there are 2 ways of working with this:
Not searching at all, but using some variables to set some values when certain events happen and then check those variables before doing something. This is intuitive and fast (because you don't search for something in the history), but when you close the EA - it's all gone (sometimes you may prefer this).
Searching the past data for whatever you need. But there are not many blocks for this. Those that are available are pretty simple, for example "No trade is running" is a block that searches for a trade that is currently running.
There is no block to search for a trade that was closed today on TP, but here is something alternative: https://fxdreema.com/shared/IesEuQiyd The only thing is... if you don't get how variables work, then I think you will not get this as well 🙂