Noooo, with using pink blocks it can be more optimized, if one loop is used for many purposes. The problem is that the number of blocks becomes bigger.
There are loops everywhere - in every blue block, in every brown block, and this is because in MT we can work with multiple trades at once and in order to control them we must select those that we want to work with.
SL and TP are levels in fact, price levels, like 1.3456. There are options to get SL and TP as pips, but sometimes this is not a good idea. If SL as pips is the difference between OpenPrice and StopLoss, then what is SL as pips if after trailing we have our StopLoss on the opposite side of OpenPrice?
But to just check if there is a SL or TP, it is enough to check if they are > 0.