theres a block called, close profitable positions. blue
you could also you the pink blocks for a few options too
you could close by opposite condition, so long as its profitable
you could close by % of daily starting balance.
you could close partials with the pink blocks, but technically, in mt5 there are no partials...its technically a new trade being entered so this makes things complicated in terms of defining new TP and SL's for this new trade.