Stop loss and take profit for a grid bot, explained for beginners

A grid bot has a range. Stop loss and take profit decide what happens when the price leaves it. Here is how they work, what they cost, and how to choose them without guessing.

SettingsBeginner29 November 20265 min readThe Rungwise team

A grid bot is built for a market that moves back and forth inside a range. Most of the time that is what happens. But sometimes the price leaves the range and does not come back for a long time. Stop loss and take profit are the two rules that decide what your bot does then.

If you have not met grid bots yet, start with What is a grid bot? This article assumes you know what levels and pairs are.

A grid with its range, a stop loss line below it and a take profit line above it
A grid with its range, a stop loss line below it and a take profit line above it

First, what happens without them

Every grid has a lowest and a highest level. Between them, it buys on the way down and sells on the way up. Outside them, it simply stops trading:

Where the price is What the bot holds What it does
Inside the range Some coins, some USDT Trades every step
Below the range Only coins Waits, and the coins lose value as the price falls
Above the range Only USDT Waits, safe but idle

The second row is the dangerous one. A grid that has spent all its USDT on the way down holds a full bag of coins. If the fall continues, the loss keeps growing and the grid can do nothing about it. In our six-month backtest, the worst four-week windows lost 18% to 30% for exactly this reason.

Stop loss: a floor under the range

A stop loss is a price below the lowest level. If the price reaches it, the bot ends: it sells everything it holds back to USDT and stops trading. The loss is then fixed instead of open.

On Rungwise you set it as a distance below the range: 2%, 5% or 10%, or off. With a 1% step and 10 levels a side, the lowest level sits about 10% below where you started. A 5% stop then sits about 15% below the start price.

What a stop loss costs

  • A fee to sell. Selling the coins pays the normal trading fee, about 0.1%.
  • The risk of a whipsaw. The price can touch the stop, end your bot, and bounce straight back into the range. The grid would have earned on that bounce; a stopped bot cannot.
  • No guarantee on price. In a fast fall the sale can fill below the line.

That is the trade-off: a stop loss gives up some good outcomes to avoid the worst ones.

Take profit: a ceiling above the range

A take profit is a price above the highest level. If the price reaches it, the bot ends and keeps its result.

Above the range a grid already holds only USDT, so it is not at risk there. It is just waiting. Take profit is useful when you would rather end the bot and start a new grid around the new price than wait for the price to come back down. On Rungwise it is set the same way, 2%, 5% or 10% above the range, or off.

How to choose, without guessing

  1. Look at the total distance from today's price, not only the setting. A 10-level grid with a 1% step plus a 5% stop puts the exit about 15% below the start. A 3% step with the same stop puts it about 33% below.
  2. Compare with how far the coin moves. If a coin often drops 8% in a day and recovers, a stop 5% under a narrow range will end your bot on an ordinary bad day.
  3. Decide what you are protecting against. A stop is for the long slide that does not come back, not for every red candle.
  4. Write the decision down before you start. The worst time to choose a stop is while the price is falling.

A worked example

Say BTC is at 60,000 USDT. You start a grid with 10 levels a side and a 1% step, so the range is roughly 54,000 to 66,000.

Setting Where it sits What it means
Lowest level about 54,000 Below this the bot holds only BTC
Stop loss 5% about 51,300 The bot sells everything and stops here
Highest level about 66,000 Above this the bot holds only USDT
Take profit 5% about 69,300 The bot ends and keeps the result here

Between 54,000 and 66,000 the grid trades as usual. Between 51,300 and 54,000 it holds BTC and waits. At 51,300 the stop ends it, about 14.5% below the start. Whether that was a good exit you will only know afterwards, and that is fine: the point of a stop is to make the decision before you need it.

Three common mistakes

  • Putting the stop inside the range. Then the grid's own buy levels and the stop compete, and an ordinary dip ends the bot before the grid has done its job. Keep the stop below the lowest level.
  • Moving the stop down while the price falls. It feels like giving the market room. In practice it turns a planned exit into an open-ended loss. If you change the stop, change it on a calm day, not in the middle of a slide.
  • Forgetting that a stopped bot stays stopped. After a stop loss the bot holds only USDT and does nothing. If you still want a grid, you start a new one around the current price, ideally after looking at why the old one was stopped.

What the Grid Agent adds

Stop loss reacts to price. The Grid Agent reacts to news: on a rough day it can pause the grid before the price moves. They work at different moments and you can use both. The agent's pause is temporary and the grid comes back when the day calms; a stop loss ends the bot for good.

Try it on paper first

The cheapest way to learn where your stop belongs is to watch it on paper. On Rungwise you can set a stop loss and take profit on a grid with 10,000 USDT of paper money and live prices, change them while it runs, and see how close the price comes to them on an ordinary week.

Questions people ask

Where should I put the stop loss on a grid bot?

Below the lowest level of the range, not inside it, so ordinary dips are traded by the grid. Rungwise offers 2%, 5% or 10% below the range. A wider range with a closer stop and a narrow range with a wider stop end up in a similar place, so think about the total distance from today's price.

Does a stop loss guarantee my maximum loss?

No. It decides when the bot sells, not the price it gets. In a sudden fall the sale can fill below the stop. On Rungwise the simulation uses live prices, so you can see how far the fills land in a fast market.

Should a beginner use take profit?

It is less important than a stop loss. Above the range a grid already holds only USDT, so it is not losing money, just waiting. Take profit simply ends the bot there and records the result, which is useful if you would rather start a new grid than wait.

Can I change them while the bot runs?

Yes. On Rungwise you can set or change both on a running bot. The new lines apply from that moment and are measured from the bot's current range.

The Rungwise teamWe build Rungwise, a grid bot terminal on paper money, and write down what our own grids teach us, losses included.
Try a grid bot on paper moneyLive prices, no deposit, the Grid Agent watches the news for you.
Start free

Paper money only. Nothing here is investment advice. Past and simulated results do not tell you what will happen next.