Skip to content
All library documents

A Bollinger Band Swing EA with Trailing Stops and Lot Scaling

Article MQL5 code base

Summary

This description outlines an automated swing-trading system using Bollinger Bands. It is presented for hourly and four-hour charts on major forex pairs and Nasdaq stocks, and can be configured for single trades or multiple trades in a hedging grid. The listed controls cover moving-average periods, fractal highs and lows, maximum open trades, stop loss and take profit, break-even behavior, and trailing stops. Profit targets and trailing controls can also be expressed in money or percentage terms.

The system can increase position size after losses, with a setting to disable that behavior, and includes an equity-stop control intended to limit account drawdown. The document supplies configurable ranges and advises trying a demo and periodically optimizing inputs. It gives no backtest results, trading rules precise enough to reproduce, or evidence that the settings are profitable. Loss-driven lot increases and grid trading can amplify risk, and performance may depend on market, timeframe, and broker conditions.

Key ideas

  • The EA uses Bollinger Bands for a swing strategy and offers hourly and four-hour chart settings.
  • It supports single trades or multiple trades in a hedging grid configuration.
  • Risk controls include stop losses, equity stops, break-even settings, and trailing stops.
  • A loss-based lot multiplier can increase exposure and can be disabled.
  • The description provides no performance evidence or reproducible evaluation.

Tags

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