Skip to content
All library documents

Absorption Pattern Expert Advisor with Pending Orders and Trade Management

Article MQL5 code base

Summary

This document describes an expert advisor that trades an absorption pattern using pending buy stop and sell stop orders. It outlines controls for order size, separate take-profit distances by direction, order expiry, and the distance of entries from price extremes found over a configurable number of bars. The advisor can also move a stop loss toward breakeven after a specified profit threshold and apply a trailing stop with a configurable step.

The document gives a brief description of the EA’s behavior and lists its adjustable inputs. It mentions a GBPUSD hourly test using real tick data over a stated historical period, but supplies no performance figures, benchmark, or explanation of the absorption pattern’s exact detection rules. The test therefore offers little basis for judging profitability or robustness. The strategy’s results may depend on instrument, timeframe, spread, execution, and parameter choices; the listed trade-management options do not establish that losses are controlled.

Key ideas

  • The EA places pending buy stop and sell stop orders based on an absorption pattern.
  • Entry placement is linked to price extremes found over a configurable lookback.
  • Buy and sell orders can have separate take-profit settings and a configurable expiry.
  • Breakeven and trailing-stop controls are available for managing open trades.
  • The cited GBPUSD test provides no performance statistics or robustness analysis.

Tags

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