Grid Trading Bots: How They Work, and Grid vs DCA
By the AlgolaneBots research team · Published November 13, 2026 · 6 min read
A grid trading bot places a ladder of buy orders below the current price and sell orders above it, at fixed steps, inside a price range you choose. Each time the price drops a step it buys, and each time it rises a step it sells, collecting a small gain on every bounce. Grid bots make steady money while the price moves sideways. They lose when the price trends out of the range, because the bot is then left holding everything it bought on the way down, or has sold everything on the way up.
Grid bots are most common in crypto and forex. AlgolaneBots does not use grid or DCA strategies. This guide explains how they work and where they break.
How does a grid trading bot work?
You set three things: a lower price, an upper price, and the number of steps between them. The bot splits your money across the steps and places the orders.
Here is a simple example with round numbers:
| Setting | Value |
|---|---|
| Range | $90 to $110 |
| Steps | Every $2 (10 steps) |
| Money per step | $100 |
| Gain per completed step | about 2%, or $2, before fees |
If the price drifts from $100 down to $96, the bot buys at $98 and $96. If it then climbs back to $100, the bot sells those two lots at $100 and $98, each $2 higher than it bought. Two completed steps earn about $4 before fees. The more the price wobbles inside the range, the more steps complete.
Nothing in the grid predicts anything. It is a bet that the price will keep returning to where it was.
When does a grid bot make money?
In a market that moves sideways with plenty of small swings. The ideal chart looks like a zigzag between two flat lines. In that setting a grid can earn a little every day, and the track record shows a smooth, rising line with almost no losing days.
That smooth line is the thing to be wary of. It describes the market the bot met, not the risk it carries.
When does a grid bot lose?
When the price falls through the bottom of the range. By then the bot has bought at every step down. It holds the maximum position, all of it at a loss, and has no orders left. In the example, a grid started at $100 holds five lots bought at the start (to fund the sell steps above) and five more bought on the way down, at an average of about $97. A drop to $80 leaves all ten down roughly 18%, with months of $2 gains needed to make it back.
When the price rises through the top. The bot has sold everything on the way up and sits in cash, missing the rest of the rise. That is a missed gain rather than a loss, but simply holding would have done better.
When fees eat the steps. Every completed step pays two trading fees and two spreads. With steps of 0.5% and fees of 0.1% each way, 40% of each step's gain goes in fees before the spread.
So a grid earns small, frequent gains and takes rare, large losses. That shape is common to many strategies that look safe; how much can a trading bot lose explains why the worst case matters more than the average day.
What is the difference between a grid bot and a DCA bot?
The two are often offered side by side.
| Grid bot | DCA bot | |
|---|---|---|
| What it does | Buys steps down and sells steps up, both ways | Buys on a schedule, or adds on each dip |
| Sells? | Yes, at every step up | Usually only at one overall profit target |
| Best market | Sideways | Rising over time |
| Worst market | A strong trend out of the range | A long fall: it keeps adding |
| What it bets on | Price returning to the middle | Price recovering eventually |
"DCA" here borrows a name from ordinary investing. Dollar-cost averaging in the usual sense means putting a fixed amount into a fund every month for years. A DCA bot is different: it buys more each time the price drops by a set amount, lowering the average price, and aims to sell the lot on a small bounce. On an asset that keeps falling, it runs out of money while holding a large losing position.
Why are martingale grids dangerous?
Some grid and DCA bots increase the size of each new buy, often doubling it. This is a martingale. It makes the average price fall faster, so a smaller bounce clears the loss, and the track record looks even smoother.
The cost is that position size grows very fast. Starting at $100 and doubling, the seventh buy is $6,400 and the total committed is $12,700. One long fall that outlasts the account ends it completely. A backtest of a martingale bot with no losing months has not avoided this. It simply has not met it yet.
Do grid bots work for stocks?
They can be run on shares or ETFs, but they fit poorly. Stock indexes tend to rise over long periods, so a grid keeps selling a rising asset. Stock markets also close overnight and can open far from the last price, jumping over several grid steps at once. Grids were designed for markets that trade all day and swing around a level, which is why they are mostly a crypto and forex tool. See crypto trading bots and forex trading bots.
How should you check a grid bot before using it?
- What happens below the range? Ask for the loss at 20% and 40% under the lower bound.
- Is there a stop-loss? A grid with no stop holds a falling asset all the way down.
- Does position size grow? If each step is larger than the last, it is a martingale.
- Are fees included in the gain per step?
- How does it compare with just holding? Over a period that includes a rise and a fall.
- How much money sits idle? A grid keeps cash waiting at lower steps, which lowers the return on the whole account.
Then run it small, or on a demo account, through at least one sharp move. See the best way to test a trading bot.
Does AlgolaneBots use grid trading?
No. None of AlgolaneBots's ten strategies is a grid, DCA or martingale system.
They work the opposite way. The four US strategies follow trends and market signals, holding what is strong and stepping aside when conditions weaken. Gold Breakout trades breakouts in the direction of the long-term trend and places a stop-loss on every trade. That gives the reverse pattern to a grid: more losing trades than a grid shows, with losses that are cut. About 41% of Gold Breakout's backtest trades were winners. See momentum and trend following.
Key takeaways
- A grid bot buys at fixed steps down and sells at fixed steps up inside a range.
- It earns small gains in sideways markets and takes large losses when price leaves the range.
- A DCA bot keeps adding on dips and sells on a bounce. It fails in a long fall.
- Martingale sizing makes results look smoother and failure more complete.
- Ask what happens below the range, whether there is a stop, and how it compares with holding.
- AlgolaneBots does not use grid, DCA or martingale strategies.
This is general education, not personal advice.
See a different approach on paper
AlgolaneBots gives you a $10,000 paper account for five trend and breakout strategies, with real prices and a 0.05% cost on every fill, free for 90 days with no card needed. Start your paper trial.
Where the numbers come from: every strategy figure is from AlgolaneBots's own historical backtests, run on past prices with the method on how we test. Nobody earned them, and future results will differ. General market facts are checked against regulator and company sources. This guide is general information, not personal advice. Read the risk disclosure and how we write our guides.