Skip to content
All library documents

Adaptive Grid Trading with Periodic Price Bounds

Article Strategy library · Author: ChaoZhang

Summary

This document describes a long-only grid strategy for volatile markets. It divides a price range into evenly spaced levels, opens positions as price falls below grid lines, and closes them as price rises through the next line. Users can set the bounds manually or recalculate them periodically from recent candle data, using either recent highs and lows or an average price as the source. Grid count and spacing determine how many positions can accumulate and the distance between trading levels.

The document gives a conceptual explanation, parameter examples, and a short published backtest configuration for BTC/USDT futures, but reports no performance results. It argues that limiting grid count can cap the number of grid positions, while also acknowledging that this does not remove losses from a sustained move beyond the grid. Rapid reversals may create losses, insufficient capital may prevent orders from being supported, and automatic bounds can be influenced by short-term price moves. The strategy description also mentions longs and shorts, but the provided source code implements long entries and exits only. Stop losses and drawdown limits are suggested as possible safeguards.

Key ideas

  • The strategy spaces grid levels evenly between upper and lower price bounds.
  • It opens long positions below grid lines and closes them as price recovers through adjacent levels.
  • Bounds may be set manually or periodically recalculated from recent price data.
  • Grid count limits the number of positions, but does not eliminate risk from sustained price moves.
  • The accompanying source implements long trades, despite the overview's reference to both long and short positions.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.