How Does Grid Trading Work?

🟢 Beginner · 2025-03-28

How Does Grid Trading Work?

Grid trading follows a simple, repeatable cycle: place buy orders below the current price, and when they fill, immediately place a sell order (take-profit) one level above. Let us walk through an actual example to see exactly how this works.

Step-by-Step SOL Example

Suppose SOL is currently trading at $130, and you set up the following grid:

  • Range: $120 to $140
  • Grid Levels: 10
  • Spacing: $2 per level (linear)
  • Order Size: 1 SOL per level

Your grid levels would be: $120, $122, $124, $126, $128, $130, $132, $134, $136, $138, $140.

Step 1: Initial Order Placement

The bot places buy orders at every level below the current price:

LevelOrder
$128Buy 1 SOL
$126Buy 1 SOL
$124Buy 1 SOL
$122Buy 1 SOL
$120Buy 1 SOL

No orders are placed at or above the current price of $130 because we are running a long grid — we only buy when the price dips.

Step 2: Price Drops and Buy Fills

SOL drops from $130 to $125. Two buy orders fill:

  • $128: Bought 1 SOL
  • $126: Bought 1 SOL

The bot immediately places take-profit sell orders one level above each filled buy:

  • $130: Sell 1 SOL (TP for the $128 buy)
  • $128: Sell 1 SOL (TP for the $126 buy)

Step 3: Price Bounces and TP Fills

SOL recovers from $125 back to $131. Both take-profit orders execute:

  • Sold 1 SOL at $130 (bought at $128) — Profit: $2
  • Sold 1 SOL at $128 (bought at $126) — Profit: $2

Total profit from this swing: $4

Step 4: The Cycle Repeats

After the sell orders fill, those grid levels are now empty again. The bot places fresh buy orders at $128 and $126. If the price dips again, the same cycle repeats.

This is the beauty of grid trading — every oscillation within your range generates profit without any manual intervention.

What Happens at the Edges?

Price drops below the grid ($120): All buy orders fill. You hold positions at every level, waiting for the price to recover. No new buys are placed because you have reached the bottom of your range. This is a “grid break” scenario.

Price rises above the grid ($140): All take-profits have executed. You hold no positions and have collected profits from every level. The bot sits idle until the price returns to the range.

The Profit Engine

Each completed buy-sell cycle earns the spread between two adjacent grid levels. With 10 levels and $2 spacing:

  • Profit per cycle per level: $2
  • If each level completes 5 round trips: $2 x 10 x 5 = $100

The more the price oscillates within your range, the more round trips your grid completes, and the more profit accumulates.

Fees and Slippage

Real-world profits are reduced by trading fees. If your exchange charges 0.05% per trade, each round trip costs approximately $0.13 on a $128 trade. Your net profit per level would be $2.00 - $0.13 = $1.87. Always factor fees into your grid spacing to ensure each trade remains profitable.

Summary

  • Grid trading works by buying at lower levels and automatically selling one level above, capturing the spread as profit.
  • Each price oscillation within the grid range triggers new buy-sell cycles, compounding returns over time.
  • Edge cases occur when price moves entirely above or below the grid, pausing the strategy until price re-enters the range.

Next Step

Understand why this strategy is popular by exploring the Advantages of Grid Trading.

✨ Was this article helpful?

Ask your questions on Ask on Discord →