Skip to content
All library documents

Engulfing-Candle Expert Advisor Inputs for Reversal Trading

Article MQL5 code base

Summary

This brief description outlines an expert advisor that opens positions according to bullish or bearish engulfing candlestick patterns. Users can specify the position type for each signal, set risk as a percentage for position-volume calculation, and adjust the bar shift and pip-distance parameters. An option can close positions in the opposite direction, allowing the system to reverse when a contrary signal occurs; a magic number is also available to identify the advisor’s trades.

The document describes configurable behavior rather than the pattern-detection rules or a complete trading system. It does not specify entry confirmation, stop placement, profit targets, instruments, timeframes, or any test results. The pip-distance parameter is referenced but not explained in the text, so its precise role depends on material not included here. The description is useful as an overview of the EA’s controls, but insufficient to assess its edge or risk-adjusted performance.

Key ideas

  • The expert advisor uses bullish and bearish engulfing patterns to choose trade direction.
  • Position sizing can be based on a user-set percentage risk per trade.
  • Bar shift and pip distance are configurable inputs, though the distance behavior is not described.
  • A setting can close or reverse positions that oppose a new signal.
  • The document gives no pattern rules, backtest results, or full exit specification.

Tags

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