Mira cómo descargar robots gratis
¡Búscanos en Facebook!
Pon "Me gusta" y sigue las noticias
¿Es interesante este script?
Deje un enlace a él, ¡qué los demás también lo valoren!
¿Le ha gustado el script?
Evalúe su trabajo en el terminal MetaTrader 5
Asesores Expertos

PropFirm Equity Protector - Institutional Risk Manager (Open Source) - Asesor Experto para MetaTrader 5

Noe De Jesus Ramos Cruz
Noe De Jesus Ramos Cruz
  • MQL5 Developer | Prop Firm Risk Management en  Independent Developer
  • México
  • 125
MQL5 Developer | Expert Advisors | Prop Firm Risk Management
I develop and improve MetaTrader 5 Expert Advisors with a strong focus on risk control, code reliability and clear trading rules.
Core capabilities:
• Custom MQL5 Expert Advisors and strategy automation
Visualizaciones:
16
Publicado:
MQL5 Freelance ¿Necesita un robot o indicador basado en este código? Solicítelo en la bolsa freelance Pasar a la bolsa

🛡️ PropFirm Equity Protector (Institutional Risk Manager)

1. Recommended Symbol & Timeframe

  • Symbol: Any (Highly recommended for volatile assets like XAUUSD, GBPUSD, or Indices such as US30).

  • Timeframe: Any. This Utility EA is timeframe-independent because it relies on the OnTimer() event (1-second intervals) rather than OnTick() , ensuring constant risk monitoring even if the market freezes.

2. Core Ideas Deposited in the Code The primary idea behind this code is to provide an institutional-grade risk management framework for Prop Firm traders. Traditional Stop Losses are vulnerable to extreme slippage during news events. This EA mitigates that by introducing a Dual-Tier Risk Mitigation System:

  • Tier 1 (Soft Limit): When the account reaches a warning drawdown level, the EA identifies the worst-performing open position and executes a partial close (e.g., 50% of the volume) to inject free margin back into the account and avoid a total breach.

  • Tier 2 (Hard Limit): If extreme volatility pushes the equity to the absolute daily Prop Firm limit, the EA triggers an aggressive panic-close loop, bypassing broker requotes to secure the account.

3. External Variables Description

  • InpMaxDailyLossPercent : The absolute maximum daily loss allowed by your Prop Firm (e.g., 4.5%). Triggers Tier 2.

  • InpAutoCloseOnLimit : Enables the Tier 2 absolute panic close.

  • InpRemoveEAOnLimit : If true, the EA detaches itself from the chart after a Tier 2 breach to block further automated trading.

  • InpMitigationLossPercent : The warning threshold (e.g., 3.5%). Triggers Tier 1.

  • InpEnableMitigation : Activates the Tier 1 partial closing module.

  • InpPartialClosePercent : The percentage of the worst position's volume to close during Tier 1 mitigation (Default: 50.0).

  • InpSlippagePoints : Allowed deviation to enforce closure in fast markets.

  • InpSendPushNotification : Sends a mobile push alert upon limit breaches.

  • InpMaxRetries : How many times the EA will force-send the close command if the broker server returns an error.

4. Brief Explanation of the Code Structure To help other users understand the implementation, this EA was developed using strict Object-Oriented Programming (OOP) principles.

  • CPropFirmProtector Class: Encapsulates all risk logic, preventing global variable conflicts.

  • CalculateDailyStartBalance() Method: Instead of relying on static variables, it scans the HistorySelect() from 00:00 server time to mathematically calculate the exact daily starting balance, accounting for swaps, commissions, and closed profits.

  • Self-Healing GUI: The on-chart dashboard utilizes a Z-order locked background and a self-repairing loop ( ObjectFind ). If another indicator accidentally deletes the risk dashboard, the EA reconstructs it in a millisecond.


Prop Firm Protector Dashboard
Breakout Distance - Donchian channel with distance-to-trigger panel in ATR units Breakout Distance - Donchian channel with distance-to-trigger panel in ATR units

La mayoría de los indicadores de canal te indican dónde se encuentra el nivel de ruptura. Este te indica a qué distancia te encuentras de él, en este preciso momento, de una forma que te permita actuar en consecuencia. El panel muestra, tanto para el borde superior como para el inferior del canal: el nivel en sí mismo; la distancia respecto al precio actual, en las propias unidades de precio del valor; esa misma distancia expresada en unidades de ATR; una barra de proximidad que se va llenando a medida que el precio se acerca al umbral de activación; Por qué es importante la columna de ATR. Una distancia de 8 dólares respecto a una ruptura significa algo completamente diferente en una sesión asiática tranquila que durante la publicación de una noticia. Dividir la distancia por el ATR actual hace que la cifra sea comparable entre sesiones, entre regímenes de volatilidad y entre símbolos. Un valor de 0,30 ATR significa lo mismo en el oro que en el EURUSD. Código de colores: texto normal: a más de InpNearATR de distancia (por defecto, 1,0 ATR) dorado: dentro de InpNearATR naranja-rojo: dentro de InpVeryNearATR (por defecto, 0,5 ATR)

PRO SCREENER PRO SCREENER

Toma el control del rendimiento de tus operaciones con el Pro Dashboard Screener. Diseñada para operadores profesionales, esta herramienta ofrece una visión general clara, profesional y en tiempo real del estado de tu cuenta directamente en tu gráfico.

Accumulation/Distribution Accumulation/Distribution

El indicador Accumulation/Distribution (Acumulación/Distribución) queda determinado por los cambios que se producen en el precio y en el volumen.

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

El indicador Acceleration/Deceleration (AC, Aceleración/Desaceleración) mide la aceleración y la desaceleración de la fuerza impulsora del mercado.