Would adding a setting in for the fee help at all? Such that it will only sell if it covers the fee? That way it wouldn't sell at a loss. Of course this only works if the price is rising. This might mess with the EMA portion of the bot, but I'm not completely sure if this would help at all. But I am loving the bot! Great work on it and thanks!