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!
This has been proposed by many. But it's a risky strategy imo (based on the highly emotional assumption that the price WILL go up, and every down-trend is just very temporary). It may put you in a very bad position, and all it really does it that it "hides" your loss and make it worse. It will also cripple the EMA-strategy (the strategy is symmetric and should not prefer "buying" over "selling").
But maybe something will show up in the "experimental section" in the future

The bot can fetch the fee from the user info from MtGox, and the latest trades could also be fetched, so it's possible to use the last paid price in the strategy. But be warned: Your last paid price really has nothing to to with where the price will go from here!

Just a quick note on your bot, not sure if this is intentional or not, but whether you check or uncheck "disabled on start," when you close out of the browser and boot it up the bot is always disabled. Basically it's always disabled on start whether you check or uncheck that box.