PropShield Risk Manager
- 实用工具
-
Ida Bagus Githa Dyatmika
✅ My signal is only to use Live account, Not using Demo account because there will be Big differences in trading result due to Slippage, Spread, and Commission
❎ My products are ONLY SOLD via MQL5 website. If you see it somewhere else, be aware of scam.
⚠ HIGH RISK WARNING: ⚠ - 版本: 1.20
- 激活: 5
Short description (Market field): Account-level risk guardian for prop firm challenges: daily/overall loss locks, SL risk limits, news filter, daily profit cap and consistency tracking.
PropShield Risk Manager protects a prop firm challenge or funded account from the mistakes that end it: a daily drawdown breach, an overall drawdown breach, an oversized trade, a trade opened into high-impact news, or one oversized winning day that ruins the consistency rule.
It is a utility, not a trading robot. It never opens entry trades. It watches the whole account in real time, measures every limit the way prop firms do, and blocks or closes exposure before a rule is broken. Attach it to any one chart and it guards manual trades, other EAs and trade copiers alike.
Everything is visible on a clean dashboard with dark and light themes and an adjustable font size: current state, daily and overall drawdown, open SL risk, projected worst-case loss, today's P/L, consistency score, news countdown and evaluation progress.
Key features
Prop firm loss limits
- Max Daily Loss with two calculation modes: from day-start equity or from the day's highest equity (trailing).
- Warning level at a chosen % of the daily limit, before the lock fires.
- Max Overall Loss measured from the initial balance, auto-detected on first run or entered manually.
- On a breach: close all managed positions and pending orders, then keep new trades blocked until the prop day resets.
Risk per trade (based on stop loss)
- Max risk per trade and max total open risk, calculated from entry to SL with the broker's own contract math.
- Optional risk lock, and optional auto-close of any new trade whose SL risk is too large.
- Positions without a stop loss are flagged on the dashboard.
Execution guard
- Projected loss headroom guard: if every open SL were hit right now, would the account still be inside its limits (minus a safety buffer)? If not, new trades are blocked.
- Spread guard blocks new trades when the spread is above your maximum.
- Trading session filter with its own hours, including sessions that cross midnight.
High-impact news filter
- Uses the built-in MetaTrader 5 Economic Calendar. No WebRequest, no URL setup.
- News trade Allowed or Not allowed. When not allowed, new orders are blocked X minutes before and Y minutes after each event (default 10 / 10).
- Positions and pending orders that already existed before the window are not touched.
- Filter by impact (High, or High + Medium) and by currency. Block all symbols, or only symbols that use the news currency.
Daily profit limit and consistency
- Profit Limit Per Day: when today's profit (closed + floating) reaches the cap, new positions are blocked for the rest of the prop day. Optionally close open positions to lock the profit in.
- Consistency score on the dashboard: best day profit divided by total profit, with a warning level you set.
Hedge protection mode
- Alternative overall-limit action for hedging accounts: neutralize net exposure per symbol with protective hedge trades instead of closing.
- Hedge status is verified against live positions: Pending, Complete, Partial, Unsupported or Failure.
- One-click Release hedge & unlock closes only the hedges.
Reliability
- State is saved in terminal Global Variables, so locks, day-start equity and hedges survive restarts and VPS migrations.
- Run it on several charts: one becomes the master, the others show the same dashboard and forward button clicks.
- Global Variables such as TRADING_ALLOWED let your own EAs check before they enter.
- Alerts by terminal popup, push notification and email.
How it works
PropShield checks the account every second and on every trade event. Each new position or pending order is tested against the active rules the moment it appears; if a rule blocks it, it is closed or deleted immediately.
- Daily loss = (reference equity − current equity) ÷ reference equity. The reference is the equity at the start of the prop day, or the day's highest equity in trailing mode. The prop day follows your firm's timezone (GMT offset and start hour).
- Overall loss = (initial balance − current equity) ÷ initial balance.
- Daily profit = current equity − equity at the start of the prop day (closed + floating).
- Projected loss = the drawdown if every open stop loss were hit from the current price, so floating loss is never counted twice.
- Consistency score = best day's closed profit ÷ total closed profit since the evaluation start.
The dashboard shows one state at a time, in this order of priority:
| State | What triggered it | New trades |
|---|---|---|
| OVERALL LOCK | Overall loss limit reached | Blocked until manually unlocked (if allowed) |
| DAILY LOCK | Daily loss limit reached | Blocked until the prop day resets |
| RISK LOCK | Risk limit breached with risk lock on | Blocked until the prop day resets |
| PROFIT LOCK | Daily profit limit reached | Blocked until the prop day resets |
| OVERRIDE | A lock was released manually | Allowed |
| NEWS | Inside a high-impact news window | Blocked until the window ends |
| SESSION | Outside the trading session | Blocked if session blocking is on |
| HEADROOM | Projected loss is too close to a limit | Blocked if the guard is on |
| WARNING | Daily loss passed the warning level | Allowed |
| NORMAL | Everything inside limits | Allowed |
Daily, risk and profit locks can be released with a button for the rest of the day when Allow Manual Unlock Daily is on. The overall lock can only be released when Allow Manual Unlock Overall is on, and every manual unlock asks for confirmation.
Input parameters
| Group | Parameter | Default | What it does |
|---|---|---|---|
| Prop Firm Limits | Max Daily Loss (%) | 5.0 | Daily drawdown limit |
| Prop Firm Limits | Daily Warning Threshold (% of Max) | 60 | Warning before the daily lock |
| Prop Firm Limits | Max Overall Loss (%) | 10.0 | Overall drawdown limit from initial balance |
| Daily Loss Calculation | Daily Loss Mode | From Day Start Equity | Or From Day High Equity (trailing) |
| Initial Balance | Initial Balance Mode | Auto On First Run | Or Manual Input |
| Initial Balance | Manual Initial Balance | 10000 | Used in Manual mode |
| Initial Balance | Reset stored state on start | false | Set true once when starting a new challenge |
| Risk Limits | Enable Risk Per Trade Limit | true | Checks SL risk of each position |
| Risk Limits | Max Risk Per Trade (%) | 2.0 | Of equity |
| Risk Limits | Enable Total Open Risk Limit | true | Checks the sum of all SL risk |
| Risk Limits | Max Total Open Risk (%) | 5.0 | Of equity |
| Risk Limits | Lock Account On Risk Limit Breach | false | Breach = risk lock for the day |
| Risk Limits | Close new trades over max risk | false | Auto-closes oversized new trades |
| Daily Profit Limit | Enable Profit Limit Per Day | false | Turns the daily profit cap on |
| Daily Profit Limit | Max Profit Per Day (%) | 2.0 | Of initial balance, closed + floating |
| Daily Profit Limit | Close positions when limit is reached | false | Locks the profit in |
| Daily Profit Limit | Consistency score warning level (%) | 40 | Dashboard turns amber above this |
| Execution Guard | Projected loss headroom guard | true | Uses worst-case loss if all SL hit |
| Execution Guard | Safety buffer (%) | 0.25 | Distance kept from the hard limit |
| Execution Guard | Auto-block when guard is active | true | Blocks new trades in HEADROOM state |
| Execution Guard | Spread guard / Max spread (points) | false / 30 | Blocks new trades on wide spread |
| Prop Timezone & Session | Use Prop Timezone / GMT Offset | true / 0 | Your firm's daily reset timezone |
| Prop Timezone & Session | Prop Day Start / End Hour | 0 / 24 | Prop day window |
| Prop Timezone & Session | Session filter, Start / End Hour, Block outside | false, 8 / 17, false | Optional trading hours |
| News Filter | News Trading | Not allowed | Or Allowed (filter off) |
| News Filter | News impact | High only | Or High + Medium |
| News Filter | Minutes before / after | 10 / 10 | Blocking window |
| News Filter | News currencies | ALL | Or a list such as USD,EUR,GBP |
| News Filter | Block ALL symbols | true | False = only symbols using the news currency |
| Lock Behavior | Close All On Daily / Overall Hit | true / true | Close managed exposure on a breach |
| Lock Behavior | Auto-Block New Trades When Locked | true | Closes trades opened while locked |
| Lock Behavior | Allow Manual Unlock Daily / Overall | true / false | Shows the unlock buttons |
| Lock Behavior | Overall Protection Action | Close Positions | Or Hedge Exposure (hedging accounts) |
| Hedge Protection | Hedge magic number / Max slippage | 77007700 / 30 | Used for hedge and close orders |
| Symbol Filter | Use Symbol Filter / Symbol List | false / XAUUSD,EURUSD,GBPUSD | Prefix match, so XAUUSD covers XAUUSD.m |
| Notifications | Terminal alerts / Push / Email | true / false / false | Where alerts are sent |
| Evaluation Tracker | Show tracker, Profit Target (%) | true, 8.0 | Progress toward the target |
| Evaluation Tracker | Min Trading Days / Min Profitable Days | 5 / 3 | Challenge day rules |
| Evaluation Tracker | Profitable day threshold (%) | 0.5 | Minimum closed profit for a profitable day |
| Evaluation Tracker | Evaluation start time | 0 | 0 = first run |
| UI | Panel theme / Font size | Dark / 10 | Also switchable on the panel (A− / A+) |
| UI | Panel X / Y, Monitoring interval (s) | 10 / 25, 1 | Position and refresh rate |
Quick start
- Turn on Algo Trading in MetaTrader 5.
- Attach PropShield Risk Manager to any one chart and tick Allow Algo Trading.
- Enter your firm's rules: Max Daily Loss, Max Overall Loss, Daily Loss Mode and Initial Balance.
- Set the prop timezone so the daily reset matches your firm.
- Choose News Trading, the profit limit and the risk limits you want, then press OK.
- Trade as usual, manually or with other EAs. PropShield stays on the chart and does the rest.
For a new challenge, set Reset stored state on start to true once, then back to false.
Example settings
| Account type | Daily loss | Overall loss | Daily mode | Profit per day |
|---|---|---|---|---|
| Standard 2-step challenge | 5% | 10% | Day Start | 2–3% |
| Trailing daily drawdown firm | 4–5% | 8–10% | Day High | 2% |
| Funded account with consistency rule | Firm's value | Firm's value | Firm's rule | Below the firm's best-day share of the target |
Always copy the exact values and timezone from your own firm's rules. With a 10% target and a best-day limit of 30–40%, a daily profit cap of about 3% keeps the consistency score safe.
Important notes
- PropShield is a risk management utility. It does not open entry trades and does not guarantee profit or that a challenge will be passed.
- Keep MetaTrader 5 running, ideally on a VPS. Protection only works while the terminal is online and Algo Trading is on.
- Closing on a breach uses market orders. Gaps, slippage and weekend opens can push the final loss past the limit, which is why the headroom guard and safety buffer exist.
- SL-based risk ignores positions without a stop loss. Daily and overall drawdown still cover them, because they are equity based.
- The news filter needs the MetaTrader 5 Economic Calendar. The calendar is not available in the Strategy Tester, so test the news filter on a demo account.
- Hedge Exposure mode needs a hedging account. On netting accounts it shows Unsupported and the overall lock stays active.
- Prop firms calculate drawdown in different ways. Match the daily mode, initial balance and timezone to your firm's written rules.
