Loading…

Price Alert Manager Panel

MT4's built-in price alerts fire once and go quiet, and offer no way to keep pestering you if you genuinely stepped away while price kept trading through a level that matters. This panel adds an escalation policy on top of the same idea: the first touch fires a normal Alert() and optional sound, then if price stays beyond the level without you pressing Acknowledge, it re-alerts on a fixed cadence instead of firing once and falling silent. Eight independent slots are available, each with its own symbol, level, direction (crossing up or down through the level) and on/off toggle. Alerts are watched on a one-second timer rather than only on tick, so a quiet symbol with few ticks still gets checked promptly. Slot state is persisted via GlobalVariable and a small sandboxed file per slot, so the watch list survives an EA restart or terminal restart the way ad-hoc custom alert code normally does not. The panel never sends an order and never touches an existing position - it is a watcher and a noisemaker only, nothing more. Notes and limitations - This panel never opens, closes or modifies a trade under any circumstance; it is alert-only. - A slot automatically re-arms once price returns inside the level without the trader pressing Acknowledge, so a brief spike-and- return does not need manual clearing every time. - Persistence covers symbol, price and direction; the enabled toggle and armed/breached state reset to "armed" on the next Save All or EA restart, so a breach discovered while the panel was closed is not itself remembered across a restart. - Alerts depend on the terminal's own Alert() and sound delivery (popup allowed, sound file present, terminal not muted); the panel cannot verify the trader actually saw or heard one. - Fixed at eight slots.

Expert advisor · MT5 · v1.0 · Free

About Price Alert Manager Panel

Price Alert Manager Panel is a script for MetaTrader 5. It can alert you with a pop-up, sound, email or push message. It has 6 settings, such as Escalate seconds, Play sound and Sound file. MQL source code included.

Files in the download: PriceAlertManagerPanel.ex5, PriceAlertManagerPanel.mq5, PriceAlertManagerPanel.txt.

Settings

SettingDefaultWhat it does
Escalate seconds60Seconds an unacknowledged breach must persist before re-alerting
Play soundtruePlay a sound file in addition to the Alert() popup
Sound filealert2.wavSound file name, must exist in Sounds folder
Corner1Panel corner: 0=top-left 1=top-right 2=bottom-left 3=bottom-right
X offset12Panel offset from the chosen corner, X pixels
Y offset18Panel offset from the chosen corner, Y pixels

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 5 open File → Open Data Folder, then go to MQL5 → Scripts.
  3. Copy the .mq5 file(s) there. Put any .mqh files in MQL5 → Include.
  4. Open the .mq5 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the script onto a chart to run it once.

Download the PDF guide

Tags: Alerts · MT5 Expert Advisor · MQL5 Source Code

Expert advisors (EA) for MT4 & MT5 · PolyMaria