StopOut Notifier
Tells clients, and optionally your risk team, when an account reaches the margin call level, stop out level, or is stopped out by the server.
What it does
7 capabilities- Exact 128-bit margin call and stop out threshold detection
- Immediate notification on real MT5 stop out deals (kDeals)
- Optional exclude_credit mode matching Real Margin Stopout
- Once per crossing with re-arm buffer and per-account cooldown
- Client MT5 mail, mobile push notifications, and risk team alerts
- Handles both percentage and money-based group stop-out modes
- Full state persistence across restarts and notifications report
How it works
The plugin watches the margin level of client accounts using exact 128-bit arithmetic. When it falls to the margin call level, the client gets a message with the level and equity; when it falls to the stop out level, or when MT5 executes a real stop out deal (notify_on_stopout_deal), the client gets an urgent stop out notification immediately. Each level is sent once per crossing and re-arms only after the level recovers above the threshold plus rearm_buffer (and after any configured cooldown_minutes). Enable exclude_credit to compute the own-funds margin level (equity minus credit), restoring warning handoff ahead of Real Margin Stopout. Supports MT5 internal mail, mobile push notifications (send_push), risk alerts, money-mode group stop-out thresholds, and persisted state across restarts. The plugin does not close or change positions.
Parameters & options
Configured directly in MetaTrader 5 Administrator and testable live in the simulator.
| Parameter | Type | Default | Description |
|---|---|---|---|
groups | group mask | * | Client groups that are watched (MT5 group mask). * means all |
margin_call_level | number | 0.00 | Margin call level in percent. 0 means the level of the client's group |
stop_out_level | number | 0.00 | Stop out level in percent. 0 means the level of the client's group |
rearm_buffer | number | 5.00 | A level is notified again after the margin level went above the level plus this many percent |
notify_risk | bool | 0 | 1: also raise an alert for the risk team |
exclude_credit | bool | 0 | 1: exclude bonus credit from equity (own-funds margin level, matching Real Margin Stopout) |
notify_on_stopout_deal | bool | 1 | 1: notify immediately when a trade closes with a stop out deal reason |
send_push | bool | 0 | 1: also send an MT5 mobile push notification to the client |
notify_client | bool | 1 | 1: send an MT5 internal mail message to the client |
cooldown_minutes | int | 0 | Minimum minutes between repeat notifications of the same kind for one account. 0: off |
license_key | text | empty | License key from FXOpsPro, for example FXO-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX |
license_server | text | https://plugins.fxopspro.com | License server address |
Release history
- v1.1.0Latest2026-11-24
Fixed mark_dirty persistence, exact 128-bit margin math, money-mode stop-out text, group-leave pruning, and stop_out_level <= margin_call_level validation. Added exclude_credit, notify_on_stopout_deal (kDeals), send_push, notify_client, and cooldown_minutes.
Risk management



