EquityCutter

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 )

评分 1
jeancharles4225
29
jeancharles4225 2026.06.03 19:15 
 

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

作者的更多信息
Equity Balance Chart
Alexandre Jean Besnard
Equity Balance Chart (Indicator Description) This is an advanced MQL5 indicator designed to track and display an account's performance directly on the chart. It plots the account's Equity (in lime green) and Balance (in orange) as two separate lines in a sub-window. Its two primary features are: Persistent History: The indicator saves the equity and balance data from each bar to a history file. When you restart MetaTrader 5 or reload the indicator, it automatically loads this file to redraw the
FREE
筛选:
jeancharles4225
29
jeancharles4225 2026.06.03 19:15 
 

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

回复评论