Seriously though, looking at your bot, you will end up in all fiat as bitcoin goes up past your "trading corridor". That's definitely losing money in my book.
It secretly worships satoshi
Yes, you are right, all fiat at the upper bound all BTC at the lower bound. Pick bounds carefully. Now I'm trading at 450-1350. If the 1300 is broken, bot is all FIAT and losing opportunity, so I turn it off for the rallies, buy all in, and sit back. Nothing beats plain old HODL during the rally. This one is intended for periods of instability and range-bound volatility. Of course, you should never give this bot all your money, that would be quite silly