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 · MT4 · v1.0 · Free
About Price Alert Manager Panel
Price Alert Manager Panel is a script for MetaTrader 4. 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.ex4, PriceAlertManagerPanel.mq4, PriceAlertManagerPanel.txt.
Settings
| Setting | Default | What it does |
|---|---|---|
| Escalate seconds | 60 | Seconds an unacknowledged breach must persist before re-alerting |
| Play sound | true | Play a sound file in addition to the Alert() popup |
| Sound file | alert2.wav | Sound file name, must exist in Sounds folder |
| Corner | 1 | Panel corner: 0=top-left 1=top-right 2=bottom-left 3=bottom-right |
| X offset | 12 | Panel offset from the chosen corner, X pixels |
| Y offset | 18 | Panel offset from the chosen corner, Y pixels |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Scripts.
- Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
- Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the script onto a chart to run it once.
Tags: Alerts · MT4 Expert Advisor · MQL4 Source Code