How to close all positions if the price met the conditions for closing positions, but the profit should cover the swap and commisions also.
Sample logic:
If the price is above BB Middle Band, check if the profit covers commisions and swap fees. if yes then close all trades.