Glass Prop Firm Guard

Prop Firm Guard

Your automatic risk manager for prop firm challenges and funded accounts.
Enforces daily loss, max drawdown and trade rules, filters ForexFactory high-impact news, and shows everything on a Liquid Glass dashboard.

It does not open trades. Prop Firm Guard watches your whole account (manual trades and other EAs) and acts the moment a rule is broken, so one bad moment cannot end your challenge.

Product Attributes

Attribute Details
Type Expert Advisor (risk manager / utility, no entries)
Platform MetaTrader 5
Price Free
Version 1.00
Symbols Any (attach to one chart, protects the whole account)
Timeframes Any
News source ForexFactory calendar via nfs.faireconomy.media (High impact only)
Interface Liquid Glass panel, draggable and collapsible
Chart theme Never modified
Requires Algo Trading enabled, WebRequest URL allowed
Language English

Key Features

Block What it does
Account Protection Max daily loss limit
Max overall drawdown: static, trailing from peak equity, or trailing locked at initial balance
Profit target tracking with optional auto-close and lock
Optional daily profit lock
Configurable daily reset hour (broker server time)
Warning level and enforcement level as a percentage of each limit
On breach: closes all positions, deletes pending orders and locks trading
Trade Rules Max lot per position, max total lots, max open positions
Max trades per day
Require Stop Loss (with grace period)
Max risk per trade (% of balance, calculated from SL distance)
Lock or cooldown after N consecutive losses
Optional filter for a single magic number
Time Rules Close all positions before the weekend (Friday cut-off)
Optional trading session window
News Filter High-impact events only, no MQL5 calendar used
Scope: traded symbol, custom currency list, or all currencies
Minutes before and after each event
Action: block new entries, or close all affected positions
Local cache and automatic retry with back-off on rate limits
Event times shown in your PC local time
Liquid Glass Panel Balance, equity, floating and total P/L
Progress bars for daily loss, drawdown and profit target
Trades, positions and lots counters against your limits
Next 4 high-impact events with live countdown
CLOSE ALL and LOCK / UNLOCK buttons

Quick Setup

  1. Copy PropFirmGuard.mq5 to MQL5\Experts and compile it.
  2. Open Tools > Options > Expert Advisors, tick Allow WebRequest for listed URL and add:
    https://nfs.faireconomy.media
  3. Enable Algo Trading and attach the EA to one chart.
  4. Enter your challenge rules in the inputs (initial balance, daily loss %, max drawdown %).

Main Inputs (defaults)

Input Default Description
InpInitialBalance 0 Challenge initial balance (0 = auto)
InpDailyLossPct 5.0 Max daily loss % (0 = off)
InpMaxDDPct 10.0 Max overall drawdown % (0 = off)
InpDDMode Static Static / Trailing / Trailing locked
InpProfitTargetPct 10.0 Profit target % (0 = off)
InpTriggerAtPct 95 Enforce when limit usage reaches this %
InpWarnAtPct 70 Warn when limit usage reaches this %
InpResetHour 0 Daily reset hour (server time)
InpRequireSL true Close positions without Stop Loss
InpCloseBeforeWeekend true Friday close at 21:30 server time
InpUseNews true Enable high-impact news filter
InpNewsBeforeMin / AfterMin 10 / 10 News window in minutes
InpNewsAction Block new Block new entries or close all
InpNewsRefreshMin 240 News refresh interval (minimum 30)

Good to Know

  • The EA reacts within about one second after a violation by closing or deleting the offending order. MetaTrader 5 does not let an EA block an order before it is sent.
  • Keep the EA running (a VPS is recommended) so trailing drawdown and daily statistics stay accurate.
  • News data comes from a third-party service that may change or limit access at any time.
  • The Strategy Tester does not support WebRequest, so the news filter uses the cached file only.
  • Rules differ between prop firms. Always check the settings against your firm's current terms.

FAQ

Does it place trades?
No. It only monitors and protects.

Does it work with other EAs and manual trading?
Yes. It manages all positions on the account, or only one magic number if you set a filter.

Why does the news section show an error?
Add https://nfs.faireconomy.media to the WebRequest list in MetaTrader 5 options. If it shows a rate-limit message, the EA retries automatically.

Can I unlock after a lock?
Yes, use the UNLOCK button on the panel. If a limit is still breached, the EA locks again.

Disclaimer: This tool is a risk-management aid and does not guarantee compliance with any prop firm's rules or protect against losses. Trading involves substantial risk. Test on a demo account first. Use at your own risk.

More from author
Glass Trade Panel
Susanto Adhi Pranoto
Minimalist liquid-glass trading panel: risk-based lot size, market and pending orders, trade management, high-impact news and an account growth dashboard. Installation Guide https://www.mql5.com/en/blogs/post/782481 === FULL DESCRIPTION  === Glass Panel is a clean, glass-style trading panel for MetaTrader 5. Place orders with automatic risk-based lot sizing, manage your open positions, watch high-impact news and review your account growth, all from one compact panel on your chart. Glass Pane
Filter:
No reviews
Reply to review