Prop Risk Guard MT4 - Protect Your Account from Daily Losses and Drawdowns
Info
The Prop Risk Guard MT4 - Protect Your Account from Daily Losses and Drawdowns is a Expert Advisor for MetaTrader 4 that protect your trading account from a single bad day with prop risk guard mt4. This powerful tool safeguards your account by monitoring your MT4 account and taking immediate action when predefined limits are reached.
Usage
This tool is typically used for automated trading on major forex pairs and gold.
Platform
This Expert Advisor works exclusively on MetaTrader 4 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL4/Experts folder via File ? Open Data Folder in MetaTrader 4.
How to Install and Use Prop Risk Guard MT4 - Protect Your Account from Daily Losses and Drawdowns
1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.
2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.
3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.
4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.
Frequently Asked Questions
Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.
Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.
Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.
What this tool does
Protect your trading account from a single bad day with Prop Risk Guard MT4.
Typical Use Case
This Expert Advisor excels in automated trading and technical analysis on MetaTrader 4.
Compatible Platform & Setup
This Expert Advisor works on MetaTrader 4. Place the file in the MQL4/Experts folder and restart the terminal.
Description & Settings
Related: Quantora Risk Calculator MT4: Professional Trade Risk and Reward Analysis - another powerful expert for MetaTrader 4 traders.
Protect your trading account from a single bad day with Prop Risk Guard MT4. This powerful tool safeguards your account by monitoring your MT4 account and taking immediate action when predefined limits are reached.Also recommended: heads or tails trading strategy: a high-risk approach - similar expert with strong performance on MetaTrader 4.
What it protects
Daily loss limit: Set a daily loss limit in percentage or monetary value, calculated from the day's starting balance, equity, or the higher of the two. You can choose the hour for the day's start (server time), and it considers both closed and floating P/L.
Max drawdown: Protect your account from excessive drawdowns with a static limit from your starting balance or a trailing limit from the account's peak equity.
Profit target lock (optional): Secure your profits by setting a profit target. Once reached, the guard closes all trades and locks the account to prevent giving back gains.
Early warning: Receive an alert when a certain percentage of your limit is reached (default is 80%).
Safety buffer: Act proactively by setting a buffer to account for fast market movements.
When a limit is hit
The guard takes swift action by closing all open orders, deleting pending orders, and locking the account. It ensures that any new trade is closed instantly, regardless of its origin (EA, phone, or desktop). The daily lock resets at the start of the new day, while max-drawdown and target locks remain until you set a new starting balance for a new challenge. Locks and daily references are saved to ensure continuity even after a terminal or VPS restart.
Panel
A card panel provides a clear overview, displaying the status (PROTECTED, WARNING, LOCKED FOR TODAY, LOCKED), equity, today's P/L, limit usage with a color bar, time until daily reset, and the last event. It's designed to match the chart's dark or light theme.
Usage
Attach the guard to a single chart (any symbol) to monitor the entire account or specific symbols/magic numbers. Configure it according to your prop firm's rules and ensure AutoTrading is enabled to allow the guard to manage trades. The Strategy Tester's Demo mode simulates risky scenarios to demonstrate its effectiveness.
Note: Prop Risk Guard responds to price changes, so fast markets or gaps may result in slightly larger losses than the limit. Use the safety buffer to mitigate this. It doesn't open trades on real accounts, and an MT5 version is available in CodeBase.
You may also like: risk sizer panel lite mt4: simplified lot calculation and one-click trading - excellent alternative for expert users on MetaTrader 4.
Source Code
#property copyright "RobotFX"
#property link "https://robotfx.org"
#property version "1.00"
#property strict
#property description "This code is educational. Feel free to use, modify and upgrade as you wish. Visit ROBOTFX.ORG for professional trading tools"
#include <Canvas\Canvas.mqh>
enum ENUM_LIMIT_MODE { LIMIT_PERCENT = 0, LIMIT_MONEY = 1 };
enum ENUM_DAY_BASE { BASE_BALANCE = 0, BASE_EQUITY = 1, BASE_HIGHER = 2 };
enum ENUM_DD_MODE { DD_STATIC = 0, DD_TRAILING = 1 };
enum ENUM_SCOPE { SCOPE_ACCOUNT = 0, SCOPE_SYMBOL = 1, SCOPE_MAGIC = 2 };
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.