Version 4.0 — Now Live

Your Positions. Protected. Every Night.

NightGuard EA automatically removes Stop Loss and Take Profit before overnight spread spikes — and restores them after. Sleep. Your trades are safe.

2,000+ Nights Protected
< 0.3s Response Time
Any MT5 Broker
NightGuard EA v4.0 — Expert Advisor
ACTIVE Build 2024.03.16
Window Start
22:45
Window End
00:15
Countdown
02:14:33
Positions
3 Protected
SymbolSLTPP/L
EURUSD 1.08420 1.09100 +$47.20
GBPUSD 1.26800 1.28200 -$12.80
XAUUSD 2304.50 2340.00 +$128.40
EURUSD SPREAD — OVERNIGHT WINDOW ● HIGH RISK ZONE
50 pips 30 pips 15 pips NIGHT WINDOW ↑ 48 pips 20:00 22:45 00:15 03:00
Spread
Danger Zone
NGP Active

What Happens
While You Sleep

Spreads Widen 5–15x Overnight
During low-liquidity sessions, brokers widen spreads dramatically. A 2 pip spread becomes 30–50 pips — briefly, invisibly, with no news event to justify it.
🎯
Your SL Gets Triggered by Noise
The bid price ticks into your Stop Loss zone — not because price genuinely moved, but because the spread expanded. Your position closes. Price recovers by morning.
📱
You Wake Up to Unexplained Losses
No news, no breakout. Just a trade that closed at 3 AM for no logical reason. Spread-induced stop hunting. It happens every night on nearly every broker.

NightGuard EA Takes Over at 22:45

Fully automated. Zero intervention required. Works while you sleep.

22:45
SL & TP Removed
All Stop Loss and Take Profit values are stored to disk and atomically removed from the broker.
During Window
3-Phase Watch
Grace period → per-position multiplier → hard account backstop. Three layers of real protection.
00:15
SL & TP Restored
Spreads normalize. Every SL and TP is restored to its stored level — or better if trailing logic improved it.
Always
Push Notification
Your phone gets notified when protection starts, ends, and instantly if any emergency close fires.
One chart.  All symbols.  Fully automated.  Zero effort.
NightGuard EA v4.0 ACTIVE
Positions Under Management
3 positions
SymbolSLTPP/L
EURUSD 1.08420 1.09100 +$47.20
GBPUSD 1.26800 1.28200 -$12.80
XAUUSD 2304.50 2340.00 +$128.40
Window Status Standby
01 / 06
01
— 22:45 BROKER TIME —

Window Opens.
SL & TP Removed.

At exactly 22:45, NightGuard EA reads all open positions and atomically removes every Stop Loss and Take Profit. Values are written to a local backup file before touching the broker — zero data loss risk.

Atomic Removal File Backup < 0.3s
02
— PHASE 1: GRACE PERIOD —

Brief Dips
Ignored.

The first layer of protection is a configurable grace period. Price is allowed to dip toward your original SL zone without action — this filters out micro-fluctuations that are pure spread noise, not real moves.

Noise Filter Configurable Timer
03
— PHASE 2: DRAWDOWN CHECK —

Per-Position
Multiplier Analysis.

If the grace period expires, Phase 2 checks whether the drawdown exceeds a position-specific multiplier of your original SL risk. Each position has its own threshold — sized positions don't trigger on small floats.

Position-Level Risk-Scaled
04
— PHASE 3: HARD BACKSTOP —

Account Equity
Protected.

The final layer is a hard account percentage backstop. If total floating loss reaches your configured max drawdown percentage, NightGuard closes the worst offender and alerts you instantly via push notification.

Account-Level Hard Stop Push Alert
05
— CRASH RECOVERY SYSTEM —

MT5 Restarts.
Protection Continues.

On restart, NightGuard detects it's inside a protection window, reads the backup CSV file written at 22:45, and immediately resumes monitoring. No manual intervention. No data loss. Fully transparent recovery.

File Recovery Auto-Resume Zero Manual
06
— 00:15 BROKER TIME —

Window Ends.
Everything Restored.

Spreads normalize. NightGuard restores every SL and TP to its precise stored level — or to a better position if break-even or trailing logic improved it during the window. You wake up in full control.

Precise Restore Break-Even Ready Push Confirmation

Everything You Need.
Nothing You Don't.

Emergency Close
If price genuinely breaches your SL zone, the EA closes cleanly. Configurable buffer and time delay filter out spread noise. No false closes.
3-Phase Drawdown Protection
Grace period → per-position multiplier check → hard account % backstop. Layered risk management that scales with your position size.
Break-Even Automation
If a position moves X pips in profit during the window, stored SL updates to entry. Restore brings you back to break-even at worst.
Trailing Stop Memory
The EA tracks the best SL level reached overnight and restores that — not just the original. You wake up to a tighter stop, not a wider one.
Crash Recovery
All SL/TP values written to disk on removal. If MT5 restarts mid-window, the EA reads the backup and continues protecting without any manual action.
Push Notifications
Instant push to your phone when protection starts, ends, and when emergency close fires. Requires MT5 mobile app.
Master / Slave Mode
One Master chart runs all logic across every symbol. Slave charts display status only. No duplicate actions, no conflicting logic.
Live Spread Indicator
During the window, each position shows live spread in pips, color-coded green / yellow / red so you know exactly what the broker is doing.
FIFO & Broker Compatibility
FIFO compliance mode for US brokers. Retry on requotes. Specific logging for large-lot rejections. Works on all MT5 brokers globally.
MetaTrader 5 — Experts Journal
[2024.03.15 22:44:58] NightGuard EA v4.0 — Initializing window...
[2024.03.15 22:45:00] ━━ PROTECTION WINDOW STARTED ━━━━━━━━━━━━━━━
[2024.03.15 22:45:01] EURUSD | SL=1.08420 TP=1.09100 → REMOVAL OK
[2024.03.15 22:45:01] GBPUSD | SL=1.26800 TP=1.28200 → REMOVAL OK
[2024.03.15 22:45:02] XAUUSD | SL=2304.50 TP=2340.00 → REMOVAL OK
[2024.03.15 22:45:02] Saved to file: nightguard_backup.csv
[2024.03.15 22:45:03] Push notification sent → "Protection started"
 
[2024.03.15 23:12:44] GBPUSD | Spread=48.2 pips | RE-ENFORCE CHECK
[2024.03.15 23:12:44] Phase 1 | Drawdown=-0.84% | Within limit | No action
 
[2024.03.15 23:34:17] ⚠ XAUUSD | SL BREACH WARNING detected
[2024.03.15 23:34:17] Spread=12.4 pips | Buffer=8 | SPREAD-INDUCED
[2024.03.15 23:34:17] False trigger blocked. Position held.
[2024.03.15 23:41:02] PENDING recheck in 30s — spread still elevated
 
[2024.03.16 00:15:00] ━━ PROTECTION WINDOW ENDED ━━━━━━━━━━━━━━━━
[2024.03.16 00:15:01] EURUSD | SL=1.08420 TP=1.09100 → RESTORED
[2024.03.16 00:15:01] GBPUSD | SL=1.26800 TP=1.28200 → RESTORED
[2024.03.16 00:15:01] XAUUSD | SL=2304.50 TP=2340.00 → RESTORED
[2024.03.16 00:15:02] Push notification sent → "All positions restored"

Exactly What You'd
Want It To Do

01

Atomic Removal with File Backup

At 22:45, all SL/TP values are stored to disk first, then removed from the broker. Even a crash immediately after leaves your data safe.

02

Intelligent False-Trigger Detection

The RE-ENFORCE system checks spread, buffer distance, and drawdown phase before any emergency close fires. Spread breach ≠ position close.

03

Clean Restoration at Window End

At 00:15, the EA restores every SL and TP precisely — or at a better level if break-even or trailing logic improved them overnight.

04

Full Audit Trail

Every action is logged to the MT5 Experts Journal with timestamps. You can replay exactly what happened and why, for any night it ran.

4.0
Current Version
9
Active Protection Features
0
Positions Closed by Spread Noise*
24/7
Continuous Monitoring
// Trader feedback — received via email — 2024.03.18 09:42 UTC
> Running NightGuard on 4 live accounts across Ultima Markets and ICMarkets.
> Before NGP, I had 7 SL hits in 14 nights — all during the 23:00-00:30 window.
> After installing: 0 spread-induced closes in 6 weeks. Same positions, same broker.
> The crash recovery worked correctly when MT5 updated mid-window on week 3.
> BE automation moved 2 stops to entry while I slept. Woke up already at break-even.
— T.M. | Prop trader, London | Account: ****4829

*With correct buffer and delay settings configured. Results vary by broker and market conditions.

Why NightGuard EA?

Protection Method No Protection Manual SL Removal NightGuard EA
Spread noise protection △ Partial
Works while you sleep
3-phase drawdown watch
Crash / MT5 restart recovery
Push notifications △ Manual
Break-even automation
FIFO broker compliance △ Manual
Execution time Minutes (manual) < 0.3 seconds

Simple, Transparent Pricing

Full access to every feature. No hidden tiers. No feature gates.

Knight
99  / month

Join the NightGuard Pro community and let the system protect your trades automatically every night. Your Stop Loss and Take Profit are guarded while you sleep, following the community leader's settings. Simply install, subscribe, and rest easy — no configuration needed.

  • Full EA access — all 9 features
  • All future updates included
  • Push notification support
  • Email support within 24 hours
  • Cancel anytime, no penalties
Secure payment via Stripe
License delivered instantly by email
Full setup guide included

Common Questions

Yes. NightGuard EA runs inside MetaTrader 5, which is available on Mac via Wine or CrossOver. Full feature support — the EA has no platform-specific dependencies and runs wherever MT5 runs.
A VPS is strongly recommended. MT5 must be running and connected during the protection window (22:45–00:15). If your desktop shuts down during the window, protection will not activate. Any affordable MT4/MT5 VPS works fine.
NightGuard EA works with any MetaTrader 5 broker. It has been specifically tested with Ultima Markets. For US-regulated brokers with FIFO requirements, enable FIFO compliance mode in the EA settings.
No. NightGuard uses Magic Number and Comment filters to target only your specified positions. It does not place trades, modify lot sizes, or interfere with trade logic — it only manages SL/TP during the protection window.
The crash recovery system handles this. SL/TP values are written to nightguard_backup.csv before removal. On restart, the EA reads this file and continues monitoring as if nothing happened. No manual intervention required.
The license binds to your MT5 account number on first activation. Each account requires a separate license. Contact us before purchasing if you trade multiple accounts — bulk licensing is available.
The 3-phase emergency close system handles genuine adverse moves. Grace period → per-position multiplier → hard account equity backstop. All three phases must confirm before any close fires. Buffer and spread checks filter spread from real price movement.
Copy the .ex5 file into MQL5/Experts, restart MT5, drag NightGuard onto any chart, set your window times and risk parameters, enable AutoTrading. Full guide is included with every purchase. Average setup time: under 5 minutes.