Skip to content
All library documents

Bounded Long Grid Strategy with Geometric or Arithmetic Levels

Article TradingView scripts

Summary

This TradingView strategy runs a long-only price grid between user-set upper and lower bounds. It divides the allocated investment evenly among grid levels, with either geometric spacing, which keeps percentage gaps more consistent, or arithmetic spacing, which uses equal price gaps. A downward close crossing a level opens a slot; an upward crossing the next level above closes that slot. The script also plots the grid and position status and can send entry and close alerts to a connected bot.

The document describes the rules and default settings, but supplies no backtest results or performance evidence. The author explicitly omits trailing exits and stop losses: the bounds and investment allocation are presented as structural limits, though they do not guarantee protection from losses or execution risks. The defaults are calibrated for a specific crypto perpetual market and timeframe, so results may differ elsewhere. The code detects close-to-close crossings, and its bounded range means it may not adapt when prices move outside the selected grid.

Key ideas

  • The grid divides the chosen investment evenly across its configured levels.
  • Geometric spacing targets more even percentage intervals, while arithmetic spacing uses equal price increments.
  • A downward level crossing opens a long slot, and a subsequent upward crossing to the level above closes it.
  • The design uses fixed bounds and allocated capital instead of stop losses or trailing exits.
  • The script includes visual status displays and webhook alerts for bot entries and closes.

Tags

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