Overnight Protector
- Yardımcı programlar
- Sürüm: 2.0
- Güncellendi: 26 Ağustos 2026
Overnight Protector is a professional MetaTrader 5 utility designed to temporarily remove Stop Loss levels during a configurable time window and automatically restore them afterward. 🛡️
It is designed for traders who want to manage open positions around specific overnight conditions, rollover periods, temporary spread widening, low liquidity or other scheduled market events, while keeping the original Stop Loss information safely stored.
⭐ Main Features
-
⏰ Automatic Stop Loss removal at a configurable hour and minute
-
🔄 Automatic Stop Loss restoration at a configurable hour and minute
-
🌙 Full support for protection windows that cross midnight
-
🕒 Uses broker server time
-
🎯 Optional Magic Number filter
-
📊 Can monitor all positions when the Magic filter is disabled
-
💹 Multi-symbol support
-
🧩 Improved compatibility with hedging accounts
-
🎫 Position management by ticket and persistent position identifier
-
✅ Take Profit is preserved and never intentionally removed
💾 Persistent Stop Loss Backup
Before removing a Stop Loss, Overnight Protector stores all required information in a persistent journal.
The EA never intentionally removes a Stop Loss unless its value has first been successfully written to disk.
This allows the system to recover after:
-
🔁 MetaTrader 5 restart
-
🖥️ VPS restart
-
⚠️ Terminal crash
-
📡 Temporary internet disconnection
-
🌐 Temporary broker connection problems
If MetaTrader 5 is restarted during an active protection cycle, the EA automatically reloads the saved state and continues the recovery process.
✋ Manual Stop Loss Changes
Overnight Protector is designed to respect manual trader actions.
Outside the protection window, the EA does not modify positions.
If you manually change or remove a Stop Loss outside the configured period, the EA leaves it untouched.
During the protection window, if a new Stop Loss is manually applied, the EA:
-
Detects the new Stop Loss
-
Saves the new value to persistent storage
-
Updates the recovery information
-
Removes the Stop Loss again
-
Restores the latest valid value at the end of the protection period
A Stop Loss value of zero generated by the EA never overwrites a previously stored valid Stop Loss.
🔁 Automatic Recovery & Retry System
If a broker operation fails, the EA does not immediately abandon the position.
Failed Stop Loss removal or restoration operations can be retried automatically using a configurable retry interval.
The EA also checks:
-
📶 Terminal connection status
-
🤖 AutoTrading availability
-
🔐 MQL trading permission
-
🏦 Account trading permission
-
⚙️ Expert Advisor trading permission
If the terminal is disconnected, the EA does not incorrectly assume that a position has been closed.
🧠 Advanced Error Diagnostics
Overnight Protector includes detailed diagnostic information for failed trading operations.
The Expert log can display:
-
Trade return code
-
Human-readable error description
-
Native MT5 server description
-
GetLastError() code
-
Requested Stop Loss
-
Current Take Profit
-
Bid and Ask
-
Stops Level
-
Freeze Level
-
Symbol Tick Size
🌍 Multilingual Interface
Debug messages and dashboard information are available in:
-
🇬🇧 English
-
🇮🇹 Italian
-
🇪🇸 Spanish
-
🇩🇪 German
-
🇫🇷 French
🔔 Notifications
Optional notifications can be enabled for important events and errors.
Supported notification channels:
-
📱 MetaTrader 5 Push Notifications
-
📧 Email
-
🚨 Terminal Alerts
Notification severity levels:
-
INFO
-
WARNING
-
ERROR
-
CRITICAL
A built-in cooldown system helps prevent repeated notifications from flooding your phone while the EA continues retrying failed operations.
📊 Simple Dashboard
A lightweight on-chart dashboard displays:
-
Current EA status
-
Broker server time
-
Stop Loss removal time
-
Stop Loss restoration time
-
Magic Number filter
-
Active protection cycle
-
Monitored positions
-
Current Stop Loss
-
Stored Stop Loss
-
Pending restorations
-
Connection status
-
Notification status
🎯 Typical Use Cases
Overnight Protector can be useful when managing positions around:
-
🌙 Daily rollover
-
📈 Temporary spread widening
-
💧 Low-liquidity periods
-
🕐 Overnight trading sessions
-
🛠️ Broker maintenance periods
-
📅 Scheduled market conditions where temporary SL removal is part of the trader's strategy
⚠️ Important
Overnight Protector does not predict market movements and does not open trades.
It is a position-management utility designed to manage existing Stop Loss levels according to the user's configuration.
Removing a Stop Loss exposes a position to significantly higher market risk during the protection window. Always test the EA on a demo account first and use settings appropriate for your trading strategy and risk tolerance.

Kullanıcı değerlendirmeye herhangi bir yorum bırakmadı