SignalX Margin Buffer Guard
- Utilità
-
Ahmed Ismail Muhammad Ismail Al Talhat
SignalX — Algorithmic Trading Systems | MQL4 · MQL5 · MetaTrader 4 & 5
I build trading software I can defend line by line: Expert Advisors, indicators and utilities for MT4 and MT5 — each with hard risk controls, documented inputs, and no hidden grid or martingale.
◆ WHAT I BUILD - Versione: 1.0
- Attivazioni: 5
What this is
When margin runs low, the broker closes whatever it decides to close, usually the largest position and usually at the worst moment. This utility acts before that point with two stages: an alert at a warning level you set, and then an orderly close of the least profitable position once a lower level is reached, pausing between closes and stopping as soon as margin recovers.
What it does
Warns at one margin level and starts closing the least profitable position, one at a time with a cooldown, once a lower level is reached, until margin recovers.
- Two-stage escalation with a recovery level and a cooldown, so the tool closes the position you would have chosen instead of letting the broker choose.
- Runs on a single chart; it does not need to be the chart you trade from.
- No DLL calls. No external services. No network requests.
- No account, terminal, symbol or time limitation is embedded.
Inputs
| Input | Type | Default |
|---|---|---|
| InpWarnLevelPct | double | 300.0 |
| InpActLevelPct | double | 150.0 |
| InpRecoverLevelPct | double | 250.0 |
| InpMaxClosesPerRun | int | 1 |
| InpSkipProfitable | bool | true |
| InpMagicFilter | int | -1 |
| InpSymbolFilter | string | |
| InpSlippage | int | 30 |
| InpCooldownSec | int | 30 |
| InpAlertOnClose | bool | true |
| InpShowPanel | bool | true |
| InpX | int | 12 |
| InpY | int | 24 |
How to use it
- Attach the EA to a chart of the symbol you trade.
- Set the inputs to match your own risk approach. Defaults are deliberately conservative.
- Allow live trading in the Expert Advisors settings for this EA.
- Test on a demo account first. That is not a formality; the defaults are not tuned to your broker.
Notes
- Written for MetaTrader 4, any broker, any account currency. Sizing maths uses the symbol's own tick value.
- Works alongside other EAs, including with a magic number you choose, so it will not fight them for orders it does not own.
- It performs management and measurement only; it does not generate trading signals.
Honest limits
- This is a tool, not a strategy. It does not predict anything and it cannot make a losing method profitable.
- No performance figures are published for it because tools of this kind do not have a meaningful backtest curve of their own.
- If your broker quotes oddly (very wide spreads, non-standard tick values) verify the sizing on a demo account before using real funds.
Trading involves risk of loss. Nothing here is financial advice.
