I understand the idea, but the block on the bottom does not close any trades. Currently "Bucket" blocks are only used to get information, they can't do any other actions.
But you can try: Check profit (unrealized) => Close trades
Variables are not input parameters of the EA, Constats are. There were actually checkboxes before to make a Variable input parameter, but now I think I missed to turn them into Constants with the new update 😕