Harami Pattern Signals with Configurable Alerts in MQL5
Summary
This document describes adding alert delivery to a Harami candlestick indicator. Buy and sell signals are read from indicator buffers at a configurable bar offset, then reported through platform alerts, email, or mobile push notifications. Inputs control the signal bar, notification channels, and alert count. The functions also format a timestamp, symbol, and chart timeframe for each message, and derive displayed bid and ask values from the close and spread.
The article explains that the signal functions should be called after indicator calculations and that buffer entries must use either zero or an empty-value marker when no signal exists. It presents implementation details rather than an evaluation of the Harami pattern as a trading strategy: there are no performance results, entry or exit rules, or risk controls. The alert code assumes one call per function in the calculation block, and its notification behavior depends on the indicator buffers and platform settings.
Key ideas
- The indicator detects Harami buy and sell signals through separate buffers.
- A configurable bar offset determines which buffer value is checked for a signal.
- Signals can trigger sound alerts, email messages, and mobile notifications.
- Messages include the symbol, timeframe, timestamp, and price values derived from close and spread data.
- The document describes alert plumbing and provides no evidence of trading profitability.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.