PropShield Guardian
- Utilities
- Version: 1.0
- Activations: 5
PropShield Guardian is an automated risk-monitoring tool designed for FundedNext CFD accounts (Stellar 2-Step, Stellar 1-Step, Stellar Lite, and Express/Instant models). Operating in MetaTrader 5, it tracks account equity against FundedNext's published evaluation rules and enforces custom trade-discipline filters without executing market orders.
Core Features & System Architecture
1. Master Compliance Status
The primary dashboard presents a COMPLIANCE STATUS badge. Instead of checking for active breaches, the status evaluates account parameters in real time:
-
Daily Drawdown Limit & Max Drawdown Floor: Evaluated continuously against floating account equity.
-
Minimum Trading Days: Verified against closed trade deal history.
-
Profit Targets & Consistency Thresholds: Checked against current phase objectives.
If non-compliant, explicit reason codes print directly below the badge.
2. Trade-Discipline Enforcers
PropShield Guardian never enters new trades. It features three reactive trade management mechanisms that can automatically close or cancel violating orders:
-
SL/TP Protection ( InpEnforceSLTP ): Monitors open positions and pending orders. Missing stop levels trigger a grace countdown (default: 10s). If unaddressed, positions are market-closed, and pending orders (limits/stops) are cancelled prior to execution.
-
Single Symbol Constraint ( InpEnforceOnePerSymbol ): Detects multiple open positions on the same currency pair or asset and prompts a selection dialog to maintain position limits.
-
Post-Loss Cooldown Timer ( InpEnforceCooldown ): Restricts immediate re-entry on a specific instrument for a set duration (default: 15 minutes) following a realized loss to mitigate revenge trading.
-
Emergency Panic Button ( InpEnablePanicButton ): Optional manual feature requiring double-confirmation to liquidate all open exposure across pairs instantly.
FundedNext Rule Integrations
-
Daily Loss Limit: Tracks (Realized Daily P&L + Floating P&L) <= -(InitialBalance × DailyLossPct) . Uses equity instead of balance to reflect intraday drawdown rules. Synchronizes with 00:00 server time reset cycles.
-
Max Loss Limit: Tracks account equity against a static floor calculated from initial capital.
-
Consistency Rule Tracking: Monitors peak single-day profit against total accumulated profits, flagging metrics that exceed the standard 40% payout threshold.
-
Economic News Filter: Integrates MT5's economic calendar to display alerts near high-impact releases on active pairs.
-
Weekend Holding Flag: Optional notification toggles for accounts restricting overnight or weekend position holds.
Execution Speed & Event Handling
MT5 does not support client-side pre-trade filtering for manual market orders. PropShield Guardian reduces latency by processing via OnTradeTransaction , processing trade events in milliseconds alongside the standard 1-second timer tick.
└─► Check Symbol Cooldown ─► Auto-Close if Within 15m Window
Installation & Setup
-
Copy PropShield_Guardian.mq5 into your terminal's /MQL5/Experts/ directory.
-
Compile in MetaEditor (F7).
-
Attach the EA to a single chart. Account metrics and floating calculations operate globally across all symbols.
-
Enable Allow Algo Trading under the Common tab.
-
Confirm initial balance autodetection upon attachment. Set InpInitialBalance to fix manual account sizing if required.
