It doesn't make since to have a bot that buys or sells at a loss. It's math. If the bot sold at 188 it should know not to buy back at 205...
You are right, it is math. You are wrong about it not making sense. I suggest you seek out and study common trading strategy. Start with EMA, MACD, and RSI. There are thousands of books written on it.
Or an alternative, is to just let it work for you... it will work even if you choose not to understand it.