Long-Only EURUSD Grid Strategy with Geometric or Arithmetic Levels
Summary
This script implements a long-only grid for EURUSD between user-defined upper and lower price bounds. It divides the range into levels using either geometric spacing, which maintains proportional gaps, or arithmetic spacing, which uses equal price increments. A downward close-to-close crossing of an unowned level opens a buy sized from the total investment allocated per level. When price later crosses upward through the next level, the script closes that slot and sends a corresponding alert.
The example is calibrated for a specific market and timeframe, and includes a historical date filter, transaction-cost assumptions, position tracking, and chart displays for grid levels and performance. It deliberately has no stop loss or trailing exit; its stated structural limits are the grid bounds and allocated capital. That design leaves exposure if price falls below the range or does not recover, and the document supplies no test results to establish how the defaults perform. The example also uses a webhook format that requires valid user configuration before connecting to a trading bot.
Key ideas
- The grid buys when price crosses down through an unowned level and sells that slot after an upward crossing of the level above.
- Levels can be spaced geometrically or arithmetically within fixed bounds.
- The total investment is divided across grid slots to determine each order size.
- The strategy has no stop loss or trailing stop, so losses and inventory exposure can persist outside the intended range.
- Its example includes alert messages and backtest settings but reports no evidence of profitability.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.