Because of this behavior, it often happens that the bot sells for less than it buys especially for "small" amounts*. It usually resolves by itself when the PA is above break even and the whole bag is sold. Given how setpGrid works, it might take a while before it happens since there is no DCA involved to lower the break-even PA. A workaround I applied is to increase the fees of the exchange. For Binance, I set it to 0.75 instead of 0.1. The bot trades less, but the trades are more meaningful. If I'm not misleading, the sell price is computed so the profit is larger than 2 * exchange fees. With my settings, the net profit taken should be at least 1.5 - 0.2 = 1.3 %, minus the 'dust'.
With this approach, I am rarely disappointed of the results when the position is sold, which was happening in the past. I used to have a position in a coin which lasted several days only to realize that I had made like 0.30 USDT of profit while investing hundreds of USDT.
However, it is worth noting that when the PA is close to the ATH, it might be difficult to sell the whole bag. So pay attention to shitcoins if you are using the same approach. More generally, trading close to the ATH is risky anyway.
* small in comparison to the coin unit, so $100 is considered a small amount. Moreover, one needs to take into account that a market order implies an unpredictable sell price, adding some uncertainty to the actual profit taken.