Skip to content
All library documents

Counting Consecutive Candles to Trigger Trading Alerts

Article MQL5 code base

Summary

This indicator identifies runs of candles moving in the same direction and can alert the trader when a chosen run length appears. Its configurable inputs set the required candle count and the bar used to deliver a signal. Sound alerts are enabled by default, while email and mobile push notifications can be switched on; the number of alerts is also configurable.

The document describes the indicator’s purpose and settings, but gives no rules for entering or exiting trades, performance results, or evidence that consecutive candles predict future price moves. It is therefore best understood as a notification aid for observing short-term price sequences, rather than a tested trading strategy. The description says the original was written in MQL4 and published in 2017.

Key ideas

  • The indicator detects a chosen number of consecutive candles moving in the same direction.
  • The required run length and signal bar can be configured.
  • Sound, email, and push notifications are available as alert options.
  • The document provides no performance evidence or complete trading rules.

Tags

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