Max Daily DD Prop Guard
- Experts
- Version: 2.53
- Activations: 5
Daily Drawdown Tracking: Establishes a midnight baseline (using the higher of balance or equity at 00:00 server time) and tracks real-time net PnL by combining both closed and floating profits/losses.
Automated Emergency Protection: If the maximum daily drawdown limit ( InpMaxDDPercent , default 5.0%) is breached, it locks trading for the day and automatically purges all open positions and pending orders.
Real-Time Trade Interception: Uses OnTradeTransaction to instantly detect and shut down any unauthorized trades or orders opened after a max drawdown breach.
Modern On-Chart UI Panel: Renders custom dark-theme interface buttons displaying live net PnL, the remaining dollar buffer before the limit, and dynamic color-coded status indicators (Profit, Loss, Warning, Locked).
Automatic Daily Rollover: Automatically resets the midnight baseline, clears the emergency lock, and restarts protection when a new trading day begins at server midnight.