Adding Sound, Email, and Push Alerts to BrainTrend2Sig
Summary
This document explains how to add notifications to the BrainTrend2Sig semaphore indicator in MetaTrader. It introduces inputs for selecting the signal bar, enabling sound, email, or mobile push alerts, and setting an alert limit. Buy and sell routines inspect the corresponding indicator buffer, choose the bar index according to the array's series orientation, and build messages containing the signal type, price fields, time, symbol, and chart period.
The routines are intended to be called after the indicator's calculations in OnCalculate, with empty buffer values represented by zero or EMPTY_VALUE. The document provides implementation code but no trading-performance evidence and does not explain how BrainTrend2Sig generates its underlying signals. Its alert counter resets when the number of calculated bars changes, and the displayed price fields are derived from the close and spread arrays; users should verify that these values match their intended quote conventions before relying on notifications.
Key ideas
- The indicator adds configurable sound, email, and push notifications for buy and sell signals.
- The alert routines inspect a selected bar in the signal buffer and account for whether arrays use series indexing.
- Signal messages include the instrument, timeframe, timestamp, and price fields derived from close and spread data.
- The routines should be called after indicator calculations, and the document gives no evidence about the profitability of the underlying indicator.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.