Guarda come scaricare robot di trading gratuitamente
Ci trovi su Telegram!
Unisciti alla nostra fan page
Script interessante?
Pubblica il link!
lasciare che altri lo valutino
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
Script

Prop Firm Drawdown Monitor Daily and Total DD with Auto-Close - script per MetaTrader 5

Visualizzazioni:
258
Pubblicato:
Freelance MQL5 Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

Prop Firm Drawdown Monitor - Real-Time Protection for Funded Accounts

Prop Firm Drawdown Monitor Dashboard example

This utility monitors your drawdown in real time and automatically closes all positions before you breach your prop firm's limits.


WHY

82% of funded account terminations are caused by rule violations, not bad trading decisions. Most traders track drawdown manually or rely on the prop firm's dashboard, which often updates with a delay. This tool solves that by running directly inside MetaTrader 5 with sub-second monitoring.


FEATURES

- Daily Drawdown Tracking: Configurable daily loss limit with timezone-aware reset logic. Supports any reset hour and timezone offset (FTMO uses midnight CET, others use 5 PM EST, etc.)

- Total Drawdown: Both STATIC mode (measured from initial balance, floor never moves) and TRAILING mode (measured from highest equity peak, floor follows profits up)

- Auto-Close on Breach: When drawdown reaches the limit minus a configurable safety buffer, all positions are closed and all pending orders are cancelled immediately. Uses generous slippage (50 points) to guarantee execution.

- Trade Blocking: After a breach, OnTradeTransaction catches any new positions opened by other EAs or manual trading and closes them within milliseconds. Also sets a GlobalVariable flag that other EAs can check before opening trades.

- On-Chart Dashboard: Live display showing daily DD %, total DD %, current equity, and status (SAFE / WARNING / BREACH) with color coding.

- State Persistence: All critical values (daily reference balance, high equity watermark, breach state) are saved via GlobalVariables and survive EA/terminal restarts.

CONFIGURATION

Account Size: Your funded account amount (used as denominator for DD calculation — NOT current balance)
Daily DD Limit: Percentage (e.g. 5.0 for FTMO)
Total DD Limit: Percentage (e.g. 10.0 for FTMO)
Trailing Mode: false for static, true for trailing total DD
Reset Hour: Hour of daily reset in reset timezone
Reset TZ Offset: UTC offset of your prop firm's reset timezone
Safety Buffer: Percentage margin to close BEFORE the actual limit
Warning Threshold: Alert when this % of the limit is reached

HOW IT WORKS

1. Attach to any chart. Configure your prop firm's rules.
2. The timer runs every 500ms, comparing current equity against reference values.
3. At daily reset time (timezone-aware), the daily reference balance resets to the higher of balance or equity.
4. If daily or total drawdown reaches (limit - buffer), emergency close triggers.
5. After breach, OnTradeTransaction blocks any new trade entries.
6. Dashboard shows real-time status on chart.

IMPORTANT NOTES

- Account Size input should be your INITIAL funded amount, not current balance. DD percentages are always calculated from initial size.
- The safety buffer (default 0.5%) means positions close slightly before the actual limit, giving execution room for slippage.
- This is a monitoring utility, not a trading EA. It does not open any trades.
- For timezone: FTMO uses UTC+1 (CET) or UTC+2 (CEST during summer). Check your prop firm's rules.
- State survives MT5 restarts via GlobalVariables. A full terminal reinstall will reset state.

FULL VERSION

For additional features including news event filter, prop firm presets (FTMO, The5ers, FundedNext, E8, etc.), session time controls, risk-per-trade enforcement, and CSV logging, see Prop Firm Shield Pro on the MQL5 Market:

Free Market version (same core as this Code Base entry but packaged as compiled utility):

Trend based on WPR Trend based on WPR

This indicator combine WPR and total profit/loss. I don't know how to tell you more about this indicator but you can try it.

Multi-timeframe RSI scanner with visual dashboard and alerts Multi-timeframe RSI scanner with visual dashboard and alerts

Production-ready multi-timeframe RSI scanner with intelligent alert retry system. Monitors up to 7 timeframes simultaneously, highlights convergence zones when 3+ TFs align, and now auto-retries failed notifications to ensure you never miss critical overbought/oversold setups.

ZigZag BOS CHoCH Detection ZigZag BOS CHoCH Detection

ZigZag BOS CHoCH Detection indicator is based on the original MetaQuotes ZigZag algorithm and extends it by detecting and marking market structure events. It tracks recent ZigZag swing points and automatically identifies Break of Structure (BOS) and Change of Character (CHoCH) using pivot trend confirmation. BOS and CHoCH levels are drawn directly on the chart with labeled horizontal lines for clearer price action analysis.

Quantum Neural Calculator Risk Manager Utility Quantum Neural Calculator Risk Manager Utility

Risk management is the cornerstone of institutional trading. The Quantum Neural Calculator is a lightweight utility designed to bridge the gap between technical analysis and position sizing. This tool automatically calculates the correct lot size based on your defined risk in USD and your Stop Loss in points. It eliminates manual calculation errors and helps traders maintain discipline. Features Dynamic Calculation: Instantly calculates lots based on current Tick Value and Account Currency. Volatility Scanner: Uses ATR (Average True Range) to detect high-volatility environments (displayed on the panel). Institutional UI: A clean, non-intrusive dashboard designed for professional charts. How to Use Attach the EA to any chart (XAUUSD, EURUSD, etc.). In the inputs, set your Risk Amount (e.g., $50) and Stop Loss distance (e.g., 500 points). The panel will display the recommended Lot Size in real-time. Developed by Amanda V - Engineer & Algo Trader.