Kalifx Equity Guard EA
- Utilitaires
-
Calvin Andile Mahlangu
I build both free and paid tools for MetaTrader 4 & 5.
🔹My goal is to keep things simple, useful, and realistic.
🔹Free tools are meant to be genuinely helpful — not limited trials.
🔹Paid tools are thoroughly backtested and created with care for practical use in live conditions. - Version: 1.30
- Mise à jour: 1 juin 2026
Kalifx Equity Guard — Account Protection Utility (MT4)
Kalifx Equity Guard is a MetaTrader 4 risk-management utility designed to protect trading accounts from excessive losses and uncontrolled drawdowns. It continuously monitors account equity, floating losses, and daily performance, automatically taking protective action when predefined risk limits are reached.
The utility operates independently of trade-entry logic and is fully compatible with both manual trading and automated Expert Advisors.
Once attached to any chart and timeframe, Kalifx Equity Guard runs in the background and monitors the account in real time.
Main Features
- Equity drawdown protection using percentage or monetary limits
- Floating loss protection using percentage or monetary limits
- Daily loss protection with automatic daily reset
- Equity trailing lock to protect accumulated profits
- Automatic closure of all open positions when protection rules are triggered
- Automatic deletion of pending orders
- Trading lock function to prevent new trades after a protection event
- Peak equity tracking with persistence across terminal restarts
- Compatible with manual trading and Expert Advisors
- Optional on-chart monitoring panel
Input Parameters
Global Equity Protection
UseEquityDrawdownPercent
Enables protection based on percentage equity drawdown from the highest recorded account equity.
MaxEquityDrawdownPercent
Maximum percentage equity drawdown allowed from peak equity before protection is triggered.
Example:
If peak equity reaches $10,000 and this value is set to 20, protection triggers when equity falls to $8,000.
UseEquityDrawdownMoney
Enables protection based on a fixed monetary equity drawdown.
MaxEquityDrawdownMoney
Maximum monetary drawdown allowed from peak equity before protection is triggered.
A value of 0 disables this protection method.
PersistPeakEquity
Stores the highest recorded account equity and restores it after MT4 restarts.
Floating Loss Protection
UseFloatingLossPercent
Enables floating loss protection based on a percentage of account balance.
MaxFloatingLossPercent
Maximum floating loss allowed as a percentage of account balance.
Example:
If account balance is $5,000 and this value is set to 10, protection triggers when floating losses reach $500.
UseFloatingLossMoney
Enables floating loss protection based on a fixed monetary amount.
MaxFloatingLossMoney
Maximum floating loss allowed in account currency.
A value of 0 disables this protection method.
Daily Loss Protection
UseDailyLossPercent
Enables daily loss protection based on percentage loss from day-start equity.
MaxDailyLossPercent
Maximum percentage loss allowed from the equity recorded at the start of the trading day.
UseDailyLossMoney
Enables daily loss protection based on a fixed monetary amount.
MaxDailyLossMoney
Maximum monetary loss allowed from day-start equity.
A value of 0 disables this protection method.
ResetDailyLockNextDay
Automatically removes a daily-loss trading lock when a new trading day begins.
Equity Trailing Lock
UseEquityTrailingLock
Enables equity trailing lock protection.
EquityTrailDistancePercent
Trailing distance below peak equity expressed as a percentage.
Example:
If peak equity reaches $10,000 and this value is set to 10, protection triggers if equity falls below $9,000.
EquityTrailDistanceMoney
Trailing distance below peak equity expressed as a fixed monetary amount.
A value of 0 disables this protection method.
Trade Control
CloseAllTradesOnTrigger
Closes all open market positions when a protection rule is triggered.
DeletePendingOrdersOnTrigger
Deletes all pending orders when a protection rule is triggered.
LockTradingAfterTrigger
Prevents new trades and pending orders from remaining active after a protection event.
UnlockTradingNow
Used to manually remove the trading lock. Set to true, reload the EA, then return the setting to false.
ResetProtectionStateNow
Resets protection data including peak equity, daily tracking values, and trading lock status.
Slippage
Maximum slippage allowed when closing positions.
Visual Panel
ShowPanel
Displays the on-chart information panel showing protection status and account statistics.
Operating Logic
After installation, Kalifx Equity Guard continuously monitors account equity, floating losses, daily performance, and profit-lock conditions.
When any configured protection threshold is reached, the utility can:
- Close all open positions
- Delete all pending orders
- Lock further trading activity
- Record the protection event for account safety
The utility does not generate trade signals, open trades, or modify trading strategies. Its sole purpose is account-level risk protection.
Typical Use Cases
- Protecting funded or prop-firm trading accounts
- Enforcing maximum daily loss rules
- Preventing catastrophic drawdowns
- Locking in profits after strong account growth
- Providing account-wide risk management across multiple strategies
Support
Support is provided through the product comments section and the MQL5 private messaging system.


So good!!Thank you!