Long-Only Gold Grid Trading with Fixed Bounds and Two Spacing Modes
Summary
This script describes a long-only grid strategy for XAU. It places grid levels between user-defined upper and lower prices, using either geometric spacing or arithmetic spacing. A close crossing downward through a level triggers a buy; a later upward crossing through the next higher level closes that grid slot. Investment is divided across the grid slots, and the script omits trailing stops by design.
The document provides implementation details and configurable defaults, including bounds, level count, allocated capital, fees, and slippage, but it supplies no performance results or comparative tests. The grid’s fixed range and finite allocation constrain planned exposure, yet they do not guarantee protection if price falls below the lower bound or remains outside the range. Its signals use close-to-close crossings, and live execution may differ from the strategy simulation because of fees, slippage, and order handling. The listed XAU pair and USDT allocation also require confirmation against the actual venue and instrument before use.
Key ideas
- A grid is defined by fixed upper and lower prices with geometric or arithmetic spacing.
- A close crossing down through a level opens a long slot, and an upward crossing through its next higher level closes it.
- The configured investment is divided among grid slots, while the strategy allows multiple long entries.
- The script does not use trailing stops and 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.