MQLXpert Prop Firm Risk Headroom Monitor
- 지표
-
Luke John Smith
I'm a full-time MQL4/MQL5 developer and trader with over 5 years of experience developing automated trading systems.
I build Expert Advisors, indicators, dashboards and trading tools for traders who want reliable automation based on clearly defined rules.
I specialise in: - 버전: 1.1
Overview
MQLXpert Prop Firm Risk Headroom Monitor is a free MetaTrader 5 indicator designed to help traders monitor account-wide risk against configurable prop-firm loss limits.
The indicator analyses the current account condition together with the risk attached to existing stop losses and pending orders. This provides a clearer view of both current drawdown and projected exposure if all monitored stop losses are reached.
The indicator is display-only and does not open, modify or close trades.
Key Features
-
Account-wide risk monitoring across all symbols
-
Daily loss tracking
-
Maximum loss tracking
-
Remaining daily-loss headroom
-
Remaining maximum-loss headroom
-
Current floating profit/loss
-
Today's closed profit/loss
-
Open-position stop-loss exposure
-
Pending-order stop-loss exposure
-
Detection of positions without stop losses
-
Projected equity if all configured stop losses are reached
-
Projected daily-loss headroom
-
Projected maximum-loss headroom
-
Safe remaining risk capacity
-
Clear SAFE, WARNING, OVEREXPOSED and LIMIT BREACHED status
-
Optional popup alerts
-
Optional MetaTrader push notifications
-
Configurable broker-server reset hour
-
Adjustable warning threshold
Risk Monitoring
The indicator uses the configured initial account balance together with the Daily Loss and Maximum Loss percentages to calculate the applicable monetary limits.
It then compares those limits against:
-
Today's realised trading result
-
Current floating profit/loss
-
Current account equity
-
Risk attached to existing stop losses
-
Risk attached to monitored pending orders
This allows the dashboard to show both the current remaining headroom and the projected headroom if all monitored stop losses are reached.
Stop-Loss Exposure
The monitor calculates the monetary risk between the current market price and the stop loss of each open position.
For pending orders, the risk between the pending entry price and the configured stop loss can also be included.
If an open position or monitored pending order has no stop loss, projected values are displayed as UNKNOWN because the total downside exposure cannot be reliably quantified.
Dashboard Status
The dashboard uses four clear risk states:
SAFE
Current and projected exposure remain within the configured limits.
WARNING
Risk exposure has reached the configured warning threshold or one or more monitored trades do not have a stop loss.
OVEREXPOSED
The projected stop-loss exposure would exceed one of the configured loss limits.
LIMIT BREACHED
The current account condition has already reached or exceeded one of the configured limits.
Dashboard Information
The dashboard displays:
-
Balance
-
Equity
-
Initial account balance
-
Daily reset time
-
Today's closed profit/loss
-
Floating profit/loss
-
Daily loss limit
-
Daily loss used
-
Daily loss remaining
-
Maximum loss limit
-
Maximum loss used
-
Maximum loss remaining
-
Open-position stop-loss risk
-
Pending-order stop-loss risk
-
Positions without stop losses
-
Pending orders without stop losses
-
Projected equity at all stop losses
-
Projected daily headroom
-
Projected maximum-loss headroom
-
Safe remaining risk capacity
Input Parameters
InitialAccountBalance
Starting account balance used to calculate the configured loss limits.
DailyLossPercent
Maximum permitted daily loss percentage.
MaximumLossPercent
Maximum permitted overall loss percentage.
DailyResetHour
Broker-server hour used to define the beginning of a new trading day.
IncludePendingOrders
Includes pending-order stop-loss exposure in projected risk calculations.
IncludeCommissionSwap
Includes available commission, swap and fee information in account calculations.
WarningThresholdPercent
Percentage of the configured loss limit at which the WARNING status is triggered.
EnablePopupAlert
Enables MetaTrader popup alerts when the risk status changes.
EnablePushNotification
Enables MetaTrader push notifications when the risk status changes.
ShowDashboard
Shows or hides the on-chart dashboard.
KeepDashboardOnTop
Keeps the dashboard visible above chart objects.
DashboardX / DashboardY
Controls the dashboard position.
RefreshSeconds
Controls the dashboard refresh interval.
Recommended Setup
The indicator can be attached to any chart and timeframe.
Because monitoring is account-wide, the selected chart symbol does not limit the positions being analysed.
Before use, configure:
-
Initial account balance
-
Daily loss percentage
-
Maximum loss percentage
-
Broker-server daily reset hour
These values should match the specific rules of the account being monitored.
Important Information
Prop-firm rules differ between firms, account types and trading programmes. Some firms may calculate daily or maximum loss using different reference values, reset methods, equity rules or profit adjustments.
This indicator provides configurable generic risk monitoring and should be configured according to the exact rules applicable to the account.
The indicator does not guarantee compliance with any particular prop firm's rules and does not prevent trading losses.
Trading involves a high level of risk. Losses can occur, and historical or current account information does not guarantee future results.
Developed by MQLXpert
Code for Traders. By Traders.
