EquityCutter
- 实用工具
- 版本: 1.0
- 激活: 7
EquityCutter v3.10 — Technical Specification
Overview
EquityCutter is an automated account protection Expert Advisor for MetaTrader 5 (MQL5). It provides a real-time graphical control panel with multi-layered equity protection, a global kill engine
Protection Engine ( OnTimer — 1-second cycle)
Four independent triggers, each armed/disarmed via toggle buttons:
Table
| Trigger | Condition | Action |
|---|---|---|
| Equity SL | Equity ≤ threshold | Kill all |
| Equity TP | Equity ≥ threshold | Kill all |
| % SL | (Equity-Balance)/Balance ≤ -threshold% | Kill all |
| % TP | (Equity-Balance)/Balance ≥ +threshold% | Kill all |
All thresholds are user-editable in real-time via OBJ_EDIT fields.
Kill Engine ( StartKillSequence )
- Multi-pass closure with configurable delay ( inp_KillDelay , default 5s) and max attempts ( inp_MaxKillPasses , default 10)
- Closes all positions across all magic numbers and all symbols
- Deletes all pending orders across the entire account
- Uses CTrade::PositionClose() and CTrade::OrderDelete() with per-symbol filling mode detection ( GetFillingModeForSymbol )
- Idempotent: repeats until account is flat or max passes reached
- Post-kill: auto-disarms all protections to prevent re-trigger loops
Key Design Decisions
- No magic number filtering — global scope by intention
- No external dependencies — single-file, self-contained (only #include <Trade\Trade.mqh> )
- No OnTick logic — prevents CPU load during high-frequency ticks
- State journaling — all triggers and failures logged via Print() with ★EquityCutter★ prefix for grep/filtering
Input Parameters
Table
| Parameter | Type | Default | Description |
|---|---|---|---|
| inp_EquitySL_Default | double | 0 | Default equity stop-loss ($) |
| inp_EquityTP_Default | double | 0 | Default equity take-profit ($) |
| inp_PctSL_Default | double | 0 | Default % stop-loss |
| inp_PctTP_Default | double | 0 | Default % take-profit |
| inp_KillDelay | int | 5 | Seconds between kill passes |
| inp_MaxKillPasses | int | 10 | Safety cap on closure attempts |
| inp_PanelX / inp_PanelY | int | 10 / 25 | Panel screen position |
| inp_MaxSystems | int | 8 | Max rows in positions table |
Copyright: ★BotManager© Alex JPJ B★
Version: 1.10
Platform: MetaTrader 5 (MQL5, #property strict )

Very happy with the purchase. A very good option , works perfectly with percentages and Take Profit in $. Very useful for prop firms