Skip to content
All library documents

Trading Signals from Runs of Identical Candles

Article MQL5 code base

Summary

This document describes a simple expert advisor that looks for a configurable number of identical candlesticks in a row. It treats a run of bullish candles as a buy signal and a run of bearish candles as a sell signal. The example setting uses three candles, and the listed controls include the run length, trade size, a magic number, and slippage.

The document gives no entry timing details, exit rules, stop placement, performance evidence, or market conditions where the approach might work. It therefore presents only a basic directional signal concept, not a complete trading strategy. Repeated candles may reflect short-term momentum, but the material does not test whether following that direction is profitable or address the risk of entering after a move has already occurred.

Key ideas

  • The advisor searches for a configurable run of identical candles.
  • A bullish run triggers a buy, while a bearish run triggers a sell.
  • The number of candles, trade size, magic number, and slippage are configurable.
  • The description provides no exit rules 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.