Grid Trading
Medium RiskPlacing a grid of buy and sell orders across a price range to profit from sideways market movement.
How It Works
Grid trading divides a price range into evenly spaced levels and places buy orders below the current price and sell orders above it. As price oscillates within the range, the grid automatically buys low and sells high at each level, capturing profit from every completed round-trip. On perpetual DEXs, you can run grids with both long and short positions, profiting from volatility itself rather than predicting direction. The strategy works best in ranging (sideways) markets where price bounces between support and resistance. When the market trends strongly in one direction, the grid accumulates a losing position on one side.
Step-by-Step Guide
- Identify a trading pair that has been ranging — look for at least 2 weeks of sideways price action with clear support and resistance.
- Define your grid range. For example, if ETH has been trading between $2,800 and $3,200, set your range from $2,750 to $3,250 (slightly wider for safety).
- Choose the number of grid levels — 10 to 20 levels is typical. More levels means more trades but smaller profit per trade.
- Calculate your order size: divide total capital by the number of grid levels.
- Place limit buy orders at each level below the current price and limit sell orders at each level above.
- As price moves, orders fill automatically. When a buy fills, immediately place a sell one level above. When a sell fills, place a buy one level below.
- Monitor daily and adjust the range if price breaks out. Close all positions if the trend invalidates your range.
Example with Real Numbers
ETH-PERP is ranging between $3,000 and $3,400. You set up a 10-level grid with $200 per level ($2,000 total capital). Grid spacing is $40. Your buy orders sit at $3,000, $3,040, $3,080, $3,120, $3,160 and sell orders at $3,200, $3,240, $3,280, $3,320, $3,360. Price oscillates between $3,050 and $3,300 over two weeks, completing 35 round-trips. Each round-trip captures $40 on a $200 position (1.25% per grid trade after fees of ~$0.40). Total profit: 35 x $4.60 = $161 on $2,000 capital in 14 days. Annualized, that is approximately 21% APY — assuming the range holds.
Risk Factors
- Range breakout: If price breaks below your grid floor, you accumulate long positions at a loss. If it breaks above, you miss the move after selling too early.
- Capital efficiency: Funds are spread across many orders, so most of your capital sits idle at any given time.
- Fee accumulation: Each grid trade incurs fees. With 20+ levels and frequent fills, fees can significantly reduce net returns.
- Trending markets: Grid trading loses money in strong trends — you keep buying into a falling market or selling into a rising one.
- Funding costs: If using leverage, holding positions across funding intervals adds to costs.
Where to Execute
Grid trading requires a platform that supports limit orders and has low fees. dYdX (v4) is ideal with its full order book and maker fee rebates. Hyperliquid supports limit orders with minimal fees and fast execution. Drift on Solana offers a DLOB (decentralized limit order book) suitable for grid strategies. GMX (v2) is less suitable because its oracle-based model does not support traditional limit orders in the same way. Some platforms like Hyperliquid also offer built-in grid bot functionality.
Tips for Success
- Only grid trade assets with high historical range-bound behavior — check the average true range (ATR) relative to price.
- Set your grid range 5-10% wider than the observed range to avoid immediate breakout.
- Use no leverage or maximum 2x — leverage amplifies losses when the grid breaks.
- Reinvest profits by adding new grid levels rather than widening existing ones.
- Have a clear exit plan: define the price at which you close all positions and accept the loss if the range breaks.
- Track your actual APY weekly and compare to simply holding — if holding outperforms, the market is trending and grids are the wrong strategy.
Disclaimer: This content is for educational purposes only and does not constitute financial advice. Trading perpetual futures involves significant risk of loss. Always do your own research before trading.
