What a grid bot does
You set a price range and a number of levels. The bot places buy orders below price and sell orders above, and each filled buy is paired with a sell one level up. Profit per round trip is the level spacing minus two fees. The risk is a move out of the range, where the bot holds a full bag or stops trading.