PropFirm Risk Gatekeeper
- Utilities
- Version: 3.0
PropFirm Risk Gatekeeper MT5
Advanced Account-Wide Risk Protection for MetaTrader 5
PropFirm Risk Gatekeeper MT5 is an account-level risk-management Expert Advisor designed to help traders control drawdown and protect trading accounts against predefined daily, overall, and individual-position loss limits.
The EA operates independently of any trading strategy and can monitor positions opened by other Expert Advisors or through manual trading.
Key Features
Daily Drawdown Protection
Define a daily loss limit as a percentage of the configured reference or day-start level.
When the specified protection threshold is reached, the EA can:
- Halt further trading
- Close open positions
- Delete pending orders
- Preserve the protection state
The trading-day rollover hour can be configured according to broker server time.
Overall Drawdown Protection
Define a maximum overall account loss as a percentage.
The EA continuously monitors account equity against the protected reference balance. When the configured threshold is reached, trading can be halted automatically, and existing positions and pending orders can be closed.
Safety Buffer
A configurable safety buffer enables the EA to stop trading before the actual prop-firm limit is reached.
This provides an additional margin between the EA's protection threshold and the account's maximum permitted drawdown.
Individual Position Loss Protection
The EA can monitor each open position independently.
You can configure:
- Maximum loss as a percentage of the reference balance
- Optional fixed monetary loss limit
- Automatic closure of the affected position
- Account-wide trading halt following a single-position loss breach
This feature helps reduce the risk of a single position causing excessive account-level losses.
Works Alongside Other EAs
PropFirm Risk Gatekeeper is designed as a risk-management layer, not as an entry or signal-generating strategy.
It can monitor the account while other Expert Advisors or manual trades are active.
A terminal Global Variable can also be used as a shared halt flag, allowing compatible EAs to coordinate with the risk-protection system.
Persistent Protection State
Important protection states are stored using MetaTrader 5 Global Variables.
This enables the EA to preserve critical risk states across EA or chart restarts.
⏱ Continuous Monitoring
Risk monitoring is performed through both:
- Market ticks
- A one-second timer
This allows the protection system to continue monitoring even when the chart receives limited or no new tick activity.
Main Inputs
Daily Loss Limit (%)
Defines the maximum daily drawdown protection threshold.
Maximum Overall Loss (%)
Defines the maximum overall drawdown protection threshold.
Safety Buffer (%)
Provides an additional protection margin before the configured drawdown limit is reached.
Trading Day Start Hour
Defines the daily rollover hour according to broker server time.
Close Positions on Breach
Automatically closes open positions when an account-level protection threshold is triggered.
Single Trade Loss (%)
Defines the maximum permitted loss for an individual position.
Single Trade Loss (Money)
Defines an optional fixed-currency loss limit for individual positions.
Halt on Single Trade Loss
Stops further trading after an individual-position protection breach.
Close on Single Trade Loss
Automatically closes the affected position.
Important Information
This EA is a risk-management and protection tool. It does not generate trading signals and does not guarantee profits, successful prop-firm challenges, or compliance with the rules of every prop firm.
Prop-firm requirements may differ regarding daily drawdown calculations, equity and balance treatment, floating losses, commissions, swaps, trading-day rollover, and other restrictions. Traders should configure the EA according to the specific rules of their account provider.
The EA's reference balance is established from the account balance when the protection state is first initialized. It cannot automatically determine a prop firm's original nominal account size if that information is not provided by the broker or account environment.
Recommended Use
Use PropFirm Risk Gatekeeper MT5 as an additional protection layer alongside your existing trading strategy or Expert Advisor.
Before deploying it on a live or prop-firm account, test the configured limits on a demo account and verify that the broker's server time and the prop firm's drawdown methodology correspond to your settings.
No Martingale • No Grid • Risk Protection • Account-Wide Monitoring • EA-Compatible
