Skip to content
All library documents

A Five-Level Spot Grid with Configurable Exits and Grid Shutdown

Article Strategy library · Author: thequantscience

Summary

This source describes a spot grid approach bounded by user-selected upper and lower prices. It divides that range into ten evenly spaced levels and, when there are no open trades, places five long limit entries at lower grid levels. Each order is sized as one fifth of the account equity converted at the current price. The strategy offers a selectable grid-level exit and an optional grid destroyer that closes positions if price crosses a configured stop level.

The code specifies a 0.10% commission assumption, allows up to five concurrent entries, and recalculates on every tick. The supplied excerpt ends partway through the exit selection logic, so the full exit behavior cannot be established from the document. No asset, backtest period, or performance results are given. Grid trading depends on price remaining within a useful range; a sustained move beyond the selected bounds can leave the strategy holding positions or require the shutdown mechanism. Fees and order execution also affect results.

Key ideas

  • The strategy sets a grid between user-defined upper and lower prices and divides it into ten levels.
  • It places five long limit orders at lower levels when it has no open trades.
  • Each entry is sized at one fifth of account equity converted at the current price.
  • An optional stop level can shut down the grid and close positions.
  • The excerpt omits the complete exit logic and reports no performance evidence.

Tags

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