The thing to keep in mind is that Wealth-Lab is position-based. In other words, your script works with positions, each of which has many properities such as entry date, price, number of shares, etc.
Consequently, when your script triggers a "buy", it buys a
Position based the Position Sizing rules, which may be as complex as you like. (See
MS123 PosSizers)
Likewise, when you sell, your trading logic needs to specify
which Position to sell (or all of them).
Practically speaking, however, in the context of adding or trimming a few "dollars" worth of positions in a single instrument for "balancing" is not for the meek.