Skip to content
All library documents

Configuring a Candlestick Pattern Expert Advisor

Article MQL5 code base

Summary

This document describes an Expert Advisor that trades signals from thirty popular candlestick patterns. Users can enable or disable individual patterns or groups based on whether they use one, two, or three bars. The document explains configurable trade modes, position sizing, stop loss and take profit settings, slippage, and chart annotations. It also notes that the EA contains its own pattern calculations, so a separate indicator is not required.

The EA applies shared stop and target distances to positions and adjusts invalid stop settings to the symbol’s minimum allowed distance. It can reduce an oversized lot to a volume the account can open, and skip a signal if even the minimum lot is unaffordable. The page provides no evidence of profitability, performance testing, or details of how individual patterns generate directional signals. Its default example uses a single-position mode and specifies a sell for the Outside pattern, so the settings should not be mistaken for a tested trading system.

Key ideas

  • The EA detects thirty popular candlestick patterns using calculations included with the program.
  • Users can enable pattern groups or individual patterns and select how trades are opened.
  • Stop loss and take profit distances are shared across positions and can be disabled by setting them to zero.
  • The EA adjusts invalid stop distances and oversized lots, and skips a signal when the minimum lot is unaffordable.
  • The document provides configuration details but no backtest results or evidence of profitability.

Tags

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