Weekend and News Guard
Automatically widen MT5 stops and freeze levels or switch symbols and groups to close-only during weekend and high-impact news windows, with crash-safe restoration.
What it does
9 capabilities- Recurring weekly weekend schedules with exact weekday validation and 24:00 support
- Multi-event UTC news windows in pre/post minute or explicit range formats
- Dynamically widens MT5 stops_level and freeze_level in points
- Optional close_only or disabled trade mode during guard windows
- Supports both server-wide symbol scope and group-level rule scope
- Configurable post-window restore delay to let news volatility settle
- Crash-safe persistence of original values guarantees exact restoration after restart
- Immediate cleanup and restoration when windows or targets are removed in config
- Dry run by default with condition_guard CRM audit report
How it works
Protects MT5 brokers against news pending-order straddling and Friday-close gap sniping by dynamically tightening symbol trading conditions during recurring weekly weekend schedules and UTC economic calendar news windows. Can widen stops_level and freeze_level (symbol scope) and switch trade_mode to close_only or disabled either server-wide per symbol or scoped to specific MT5 client groups. Before applying any modification, the plugin snapshots and persists exact original values so they are restored cleanly after the window and configurable post-window restore_delay_seconds elapse, even across an MT5 server crash or restart. Reconfiguring or removing an active window restores affected targets immediately. Starts in dry run mode and logs every activation and restore to the condition_guard CRM report.
Parameters & options
Configured directly in MetaTrader 5 Administrator and testable live in the simulator.
| Parameter | Type | Default | Description |
|---|---|---|---|
symbols | group mask | * | Symbols or symbol paths to guard (MT5 mask with wildcards and ! exclusions). * means all |
groups | group mask | empty | Optional MT5 group mask. When set, applies group-level symbol rules; when empty, applies server symbol settings |
weekend_window | text | fri 21:00-23:59; sat 00:00-23:59; sun 00:00-22:00 | Recurring weekly guard windows separated by ; using exact weekday names (mon..sun) and HH:MM-HH:MM (24:00 end allowed). Empty disables |
news_windows | text | empty | Semicolon-separated UTC news windows: YYYY-MM-DD HH:MM,pre_min,post_min or YYYY-MM-DD HH:MM-HH:MM. Empty disables |
stops_level | int | 50 | MT5 stops level in points during active guard windows (0 keeps original; symbol scope) |
freeze_level | int | 30 | MT5 freeze level in points during active guard windows (0 keeps original; symbol scope) |
trade_mode | text | keep | Trade mode during active guard windows: keep, close_only, or disabled |
restore_delay_seconds | int | 60 | Seconds to wait after a guard window ends before restoring original values |
dry_run | bool | 1 | 1: report activations and restores without modifying MT5 symbol or group config. 0: apply live |
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 |
Risk management



