Prop Firm Equity Guard Pro
- Utilitários
-
Cristian Ciunae
MQL5 developer specialized in ICT / Smart Money Concepts trading systems: liquidity sweep entries, order blocks, market structure shifts and session-based logic. I build complete Expert Advisors with strict prop-firm risk management (FTMO-style daily and max drawdown protection). Clear - Versão: 2.1
- Ativações: 10
Stop losing prop-firm evaluations over one bad moment.
You know the feeling. The challenge is going fine, and then one spread spike, one surprise news candle, or one revenge trade pushes you past the daily loss limit by a few dollars. The evaluation fee is gone.
I coded this because I needed it for my own evaluations. It is not a trading robot. It is a safety net that watches your whole account and acts before your emotions or the market can break the rules for you.
What it does
Attach it to one chart. It monitors the equity of the entire account (all symbols, manual trades and other EAs) and when you get close to your limit, minus a safety buffer you choose, it:
- closes all open positions
- deletes all pending orders
- closes any new trade you open while trading is halted, so revenge trading is simply not possible
PRO features (not in the free CodeBase version)
- Live panel: daily and max loss used, distance to the stop in money, profit target progress, next high-impact news. Green, orange and red at a glance.
- Phone alerts: push, popup or e-mail at 70% and 90% of a limit, before it is too late.
- News window: deletes pendings, optionally closes positions and blocks new trades around HIGH-impact events (MT5 economic calendar).
- Friday close and weekend lock: no weekend gap surprises.
- Daily profit lock: stop for the day after +X%, which helps with consistency rules.
- Profit target: alert when reached, and an optional lock to secure the pass.
- Daily limit your way: % of initial account size (most prop firms) or % of day-start level. Max loss static or trailing.
- Survives restarts: its state is saved per account, so a terminal restart or a VPS move does not reset your protection.
- Works with your EAs: they can respect the halt with one line: if(GlobalVariableGet("DDGUARD_HALT") > 0.0) return;
Quick setup
Enter your account size, daily and max loss %, and a safety buffer (for example 1%). That's it.
Input parameters
Account & limits
- Initial account size (default 10000): your challenge / account size.
- Daily loss limit, % (default 5.0)
- Daily limit is measured as (default: % of initial account size): or % of the day-start level.
- Max overall loss limit, % (default 10.0)
- Max loss mode (default Static): Static from initial size, or Trailing from the highest closed balance.
- Safety buffer, % of initial size (default 1.0): the guard stops this much BEFORE the real limit.
- Trading-day rollover hour (default 0, server time): set it to your prop firm's daily reset.
- Day-start level = max(balance, equity) (default true)
- Profit target, % (default 10.0, 0 = off)
- Close all and lock when target is reached (default false)
- Daily profit lock, % of initial (default 0 = off)
Enforcement
- Close all positions and pendings on breach (default true)
- While halted, close any NEW trade immediately (default true)
- Global variable name (default DDGUARD_HALT): 0 = OK, 1 = halted, 2 = news window, 3 = weekend lock.
Alerts
- First / second warning at % of a limit used (default 70 / 90)
- Popup / Push / E-mail (default on / on / off): push needs your MetaQuotes ID in the terminal settings.
News protection (live only, MT5 economic calendar)
- Enable news window (default false)
- Currencies to watch (default USD,EUR,GBP)
- Minutes before / after a HIGH-impact event (default 5 / 5)
- Delete pending orders / Close open positions / Close trades opened during the window (default true / false / true)
Weekend protection
- Close all on Friday and lock the weekend (default false)
- Friday close hour (default 21, server time)
Panel
- Show panel, X / Y offset, font size (default true, 10, 25, 9)
Important, please read
- The guard acts only while your terminal (or VPS) is running and connected.
- It stops at a level BEFORE the real limit, but it cannot prevent price gaps or slippage (weekend gaps, major news). This is why the buffer and the weekend and news options exist.
- The news window works in live trading only; the economic calendar is not available in the Strategy Tester.
- It does not trade and does not generate profit. It protects the rules you set.
Not affiliated with, endorsed by, or connected to FTMO or any prop firm.
