Skip to content
All library documents

Setting Chart-Click Price-Crossing Alerts in MetaTrader 5

Article MQL5 code base

Summary

This document explains an MT5 indicator for placing an alert at a chosen price directly on a chart. A trader selects an alert type and time zone, then clicks the chart to set the price threshold. The alert can appear in a window, arrive as a mobile push notification, or be sent by email. The indicator locks the selected level; pressing the up-arrow key unlocks it so the trader can reposition the alert. Resetting involves configuring the alert again and clicking to set a new level.

The intended use is to notify traders when price crosses a level it has not reached yet, including levels used to check a market-direction hypothesis or monitor a key price. An edit notes that a later version detects crossover direction automatically rather than requiring a bullish or bearish selection. The document gives operating instructions but no performance evidence, and alerts themselves do not validate a trading hypothesis; they only report a crossing. It also provides no details on execution, reliability, or how the threshold is evaluated.

Key ideas

  • A chart click sets the price level for a future crossing alert.
  • Alerts can be delivered through a popup, mobile push notification, or email.
  • The up-arrow key unlocks a set alert so its price level can be moved.
  • The updated version determines crossover logic automatically.
  • A crossing alert can monitor a hypothesis but does not establish that the hypothesis is correct.

Tags

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