Skip to content
All library documents

Candlestick Pattern Trading with Optional Higher-Timeframe Trend Filtering

Article MQL5 code base

Summary

This expert-advisor description outlines a trading system that acts on several candlestick patterns. It allows separate stop-loss, take-profit, and trailing-stop settings for long and short positions, plus a shared trailing increment. The system is designed to keep no more than one position open, supporting both hedging and netting account types.

A configurable main timeframe can be used to determine trend direction from the prior bar, or this trend check can be disabled. Position size can be entered as a fixed volume or calculated from a risk percentage; the two sizing inputs are meant to be mutually exclusive. The description lists controls but does not identify the candlestick patterns, define the entry rules, or provide performance evidence. Without those details or testing results, it is not possible to assess the strategy’s expected behavior or risk.

Key ideas

  • The expert advisor trades using multiple candlestick patterns, but the patterns are not specified.
  • Long and short trades have separate stop, target, and trailing settings.
  • A prior bar on a selected timeframe can optionally filter trades by trend.
  • Position size can be fixed or calculated from a risk percentage.
  • The design limits the system to one open position across hedging and netting accounts.

Tags

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