Skip to content
All library documents

Adding Breakout and Trend Alerts to a Weight Oscillator

Article MQL5 code base

Summary

This document explains how to extend a Weight Oscillator indicator with configurable breakout or trend alerts. Inputs select the signal mode, the bar to evaluate, the alert count, and whether to use sound, email, or mobile notifications. Buy and sell routines inspect the indicator’s color buffer to detect transitions into overbought or oversold states, or to report an ongoing trend, then attach price, time, symbol, and chart period to the alert.

The explanation identifies where to add the routines and call them after indicator calculations, and notes that the color indices represent overbought and oversold zones. It gives no performance tests or evidence that these signals are profitable. The alert logic depends on correct buffer indices and bar-series orientation, and its notification features require a compatible trading terminal and configured services. The document also refers to a smoothing library needed by the underlying indicator, but does not explain the oscillator’s calculation or provide a strategy evaluation.

Key ideas

  • The indicator can report either new signal transitions or continuing trend states.
  • Alert settings control the evaluated bar, alert limit, and sound, email, or push delivery.
  • Buy and sell conditions are inferred from specified color-buffer indices.
  • The document describes implementation mechanics but provides no evidence of trading performance.

Tags

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