Close All Order Group Monitoring Ai2Fx
- Utilities
- Version: 1.312
- Updated: 1 June 2026
- Activations: 20
Have You Ever Faced This Problem?
Are you running a Grid EA, Martingale system, or any multi-order
strategy — and struggling to close the whole basket at the right moment?
Your Grid or Martingale EA opens a basket of orders. The combined profit
hits your target — and nothing closes.
The basket keeps running. The risk keeps growing!!
It happens from many causes — EA bugs, brokers, or unpredictable
conditions — any of them can cause it.
"Close All Order Group Monitoring Ai2Fx" will help to be your safety net.
It silently monitors your open positions in the background, groups them
by Symbol + Magic Number, and closes the entire group the instant your
profit, loss, or position-count threshold is reached.
And when things go really wrong — losses pile up or the order count
explodes — an optional Critical-Chart Safety Mode goes one step further:
it removes the chart of the troubled symbol so your main EA can't keep
adding orders on a pair that's already in crisis. One click brings
everything back exactly the way it was — including the EA itself with
all its original settings.
No more manually closing 10, 20, or 50 positions one by one.
No more watching the screen waiting for the right moment.
No more cascade-style disasters from one toxic pair dragging the
whole account down.
Set your targets once. Let the EA do the rest.
─────────────────────────────────────────────────────
HOW IT WORKS
─────────────────────────────────────────────────────
Every tick, the EA scans all open positions and groups them by
Symbol + Magic Number. For each group it calculates:
• Combined Points Profit & Loss (sum of price movement across all positions)
• Combined Money Profit & Loss (floating profit + swap in account currency)
• Current position count
The moment any active condition is met — the entire group is closed
simultaneously with a single sweep.
If you've enabled Critical-Chart Safety Mode for that condition and
the trigger is on the loss / overload side, the EA also removes the
symbol's chart and remembers it for later restoration.
Every close action is protected by a non-blocking retry engine,
so even broker hiccups or a brief disconnect won't leave a basket
half-closed.
─────────────────────────────────────────────────────
KEY FEATURES
─────────────────────────────────────────────────────
✔ Works with ANY existing EA — no source code changes needed.
Just attach this EA separately and point it at the Magic Number
of your strategy EA.
✔ Three independent close conditions — enable any combination:
1. Take Profit / Stop Loss in Points
2. Take Profit / Stop Loss in Money (account currency)
3. Maximum order count trigger
→ The first condition to fire wins.
✔ Two Symbol modes:
• All Symbols — automatically detects every symbol that has open
positions with the specified Magic Number.
• Specific Symbols — monitor only the symbols you define
(comma-separated list, e.g. EURUSD,USDJPY,XAUUSD).
✔ NEW — Critical-Chart Safety Mode (per-condition toggle)
For each of the 3 conditions you choose independently whether the EA
should also REMOVE the chart of any symbol whose basket becomes
critical (SL Points hit / SL Money hit / Max-Orders reached).
Closing the chart stops your main EA from opening new orders on a
pair already in trouble — containing the damage to one symbol
instead of letting it cascade across the whole account.
✔ NEW — Non-blocking Retry Engine
Whether closing positions or removing charts, every action is
protected by a smart retry schedule to protect multiple request:
• 10 attempts at 1-second intervals (one burst)
• 5-minute pause
• Repeat — for up to 1 hour total
• After 1 hour the EA stops and sends a critical Alert / Push
Runs entirely on a 1-second timer — your main EA never freezes.
✔ NEW — One-Click Restore (with FULL EA + Settings reload)
Every chart closed by the safety mode is remembered and persisted
to file — the list survives an MT5 restart. When you're ready,
click the "Restore (N)" button on the on-chart panel:
• The chart re-opens at its original timeframe
• The EA that was running on it is reloaded with ALL its
original input parameters
• All custom indicators come back with their original settings
Nothing is lost. Your charts return exactly as they were.
(The memory save last chart before close in chart profile, do not delete or change the file if you need correct restoration)
(The memory save last chart before close in chart profile, do not delete or change the file if you need correct restoration)
✔ Real-time Chart Panel — always visible on your chart:
· Current Points P&L per symbol group
· Current Money P&L per symbol group
· Open position count per group
· Active TP / SL targets at a glance
· Color-coded progress: dark green → bright green as profit
approaches TP; dark red → bright red as loss approaches SL
· Live retry-queue status (e.g. "Retries: 2 [EURUSD(P), USDJPY(C)]")
· Removed-Charts counter + one-click Restore button
✔ Instant notifications when a group is closed, a critical chart is
removed, or a retry sequence finally gives up:
· Pop-up Alert
· Push Notification to your mobile (MT5 app)
· Detailed Journal log with ticket numbers, retry status, and
result summary
✔ Clean, professional panel that updates every 500 ms with minimal
CPU overhead — even with 20+ open positions across multiple symbols.
─────────────────────────────────────────────────────
USE FOR
─────────────────────────────────────────────────────
→ Grid EAs : Close the grid at a net profit target
→ Martingale EAs : Cut the basket loss before it grows
→ Hedging strategies : Exit both legs together at break-even
→ Disaster-recovery : Add a safety net that removes the chart of any symbol whose basket goes critical — preventing cascade damage when one pair turns toxic
→ Manual traders : Set a combined profit target for a group of related positions and walk away
→ EA developers : Use as a plug-in close module without rewriting your core EA logic
─────────────────────────────────────────────────────
SETTINGS OVERVIEW
─────────────────────────────────────────────────────
── Order Group to Close ──────────────────────────
Symbol Selection Mode All Symbols or Specific Symbols list
Symbol List Comma-separated, e.g. EURUSD,USDJPY,USDCHF
(used in Specific mode only)
Magic Number Must match the EA that opens the positions
── Condition 1 : Points ─────────────────────────
Take Profit – Points Close when combined Points profit ≥ N [0 = off]
Stop Loss – Points Close when combined Points loss ≥ N [0 = off]
Use Remove Critical Chart? Also close the chart on SL Points trigger
* Integer values. 5-digit broker: 1 pip = 10 points.
── Condition 2 : Money ──────────────────────────
Take Profit – Money Close when combined P&L ≥ amount [0 = off]
Stop Loss – Money Close when combined P&L ≤ –amount [0 = off]
Use Remove Critical Chart? Also close the chart on SL Money trigger
* Account currency (USD, EUR, etc.)
── Condition 3 : Order Count ─────────────────────
Max Orders Close when position count ≥ N [0 = off]
Use Remove Critical Chart? Also close the chart when N is reached
── Close Settings ───────────────────────────────
Slippage Max slippage in points
Alert popup Yes / No
Push Notification Yes / No (requires MT5 mobile app)
Print log to Journal Yes / No
── Panel Settings ───────────────────────────────
Show Panel on chart Yes / No
Panel X / Y position Pixel offset from top-left corner
─────────────────────────────────────────────────────
QUICK-START EXAMPLES
─────────────────────────────────────────────────────
▸ Example A — Simple profit-target close
Your Grid EA opens EURUSD positions with Magic Number 1234.
You want to close the basket when combined profit reaches 100 points.
① Attach this EA to any chart
② Set Magic Number to Monitor = 1234
③ Set Take Profit – Points = 100
④ Leave everything else at 0
The EA monitors all EURUSD positions with Magic 1234 each tick. The
moment their combined net Points P&L hits 100, all positions are
closed at once — no matter how many are open.
▸ Example B — Multi-symbol with Critical-Chart safety mode
You run a Martingale EA on EURUSD, USDJPY, USDCHF with Magic 1234.
You want the EA to (a) close any basket at +100 points and (b) if
any basket loses 500 points, close those positions AND remove that
symbol's chart so the Martingale EA can't open new orders there.
① Magic Number to Monitor = 1234
② Symbol Selection Mode = Specific Symbols
③ Symbol List = EURUSD,USDJPY,USDCHF
④ TP Points = 100, SL Points = 500
⑤ Use Remove Critical Chart (Points) = TRUE
When EURUSD basket hits –500 points, the EA closes those positions,
removes the EURUSD chart, and sends you an Alert. Damage contained
to one pair — the other two keep trading. Click "Restore" any time
later and the EURUSD chart comes back with your Martingale EA and
its original settings already loaded.
─────────────────────────────────────────────────────
COMPATIBILITY
─────────────────────────────────────────────────────
Platform MetaTrader 5 (MT5) only
Account Any broker, any account type (Standard, ECN, Hedge)
Symbols All Forex pairs, Metals, Indices, Crypto — any MT5 symbol
