Skip to content
All library documents

Fixed-Interval One-Direction Grid Trading with Position Limits

Article MQL5 code base

Summary

The document describes a forex Expert Advisor that places market orders in one direction at fixed price intervals. A configured maximum price sets the top of the trading range; the examples show a range extending ten yen or ten cents below that level. The strategy can be configured to buy or sell, and the platform timeframe does not affect its operation.

Parameters control the direction, price ceiling, maximum number of open positions, trade size, interval between entries, and profit thresholds for break-even and trailing stops. The document explains the basic configuration but gives no entry rationale beyond fixed spacing, exit rules beyond the named stop settings, performance evidence, or risk analysis. It does not specify how the system handles prices outside the range, adverse trends, or accumulated exposure, so those behaviors and the strategy's profitability cannot be assessed from this description.

Key ideas

  • The system places repeated market orders in one chosen direction at fixed price intervals.
  • The configured maximum price defines the upper boundary of the example trading range.
  • Users can set a maximum position count, trade size, spacing, and stop-related thresholds.
  • The description provides no backtest results or analysis of exposure during sustained price moves.

Tags

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