mql5
BATIK-Multi33Pairshttps://www.mql5.com/en/blogs/post/768995
Multi33Pairs
Multi-Pair Averaging + Hedge System
Complete Input Parameters & Functions Tutorial
Version 68.11 MetaTrader 4 & 5 Identical Logic Port
1. Introduction & Overview
Multi33Pairs is a professional multi-pair Expert Advisor designed for MetaTrader 4 and MetaTrader 5. It combines directional averaging (grid-style recovery in the same direction) with an optional smart hedging system. The EA supports Forex pairs, Gold (XAUUSD), and major cryptocurrencies, each with dedicated parameter sets for step distance, take-profit, stop-loss, trailing, and break-even.
This system is unique and fully independent for every pair it handles. Each symbol maintains its own signal state, position basket, averaging logic, and risk controls — so the behaviour on one pair never interferes with another. The architecture is built to manage more than 33 pairs/symbols simultaneously from a single chart attachment, giving true multi-market coverage without needing multiple EA instances.
On the chart you will see a live signal-analysis display together with panel buttons that allow manual execution (BUY ON / SELL ON, Close, etc.) in addition to the fully automatic mode. You can therefore intervene at any time while still benefiting from the automated averaging and protection logic.
The EA also provides clear operational limits for when new trades may be opened: you can choose to allow execution while the market is classified as Sideways, or restrict entries strictly to moments when a genuine trend is confirmed. These choices are controlled by the Operation Mode and the Reversal Strength / Sideways filters described later in this guide.
The MT4 and MT5 versions share identical core logic (v68.11). This guide explains every input parameter so you can confidently configure the EA according to your account size, risk tolerance, and market style.
Key Capabilities
- Independent logic per pair — each symbol runs its own isolated signal, averaging and risk engine
- Supports more than 33 pairs/symbols simultaneously from a single chart
- Live signal-analysis display + on-chart panel buttons for manual execution
- Flexible entry policy: allow trades in Sideways regime or restrict to confirmed Trend only
- Multi-symbol trading (Forex + Gold + Crypto) with dedicated parameter sets
- ADX-based market regime detection (Sideways / Strong Trend)
- Directional averaging with configurable step distances
- Optional smart hedging layers
- ROI target with automatic Close-All and pause
- Reversal-strength filter to avoid averaging into strong counter-moves
- Capital-preset auto-scaling for different account sizes
- Trailing stop and break-even for Forex, Gold, and Crypto separately
2. Mode & Style Settings
These parameters control how the EA detects trend and decides when to trade.
Trend detection style
Options: HYPER AGGRESSIVE | AGGRESSIVE | MODERATE | CONSERVATIVE. Controls sensitivity of trend detection. Hyper Aggressive reacts faster and generates more signals; Conservative requires stronger confirmation. Recommended: HYPER AGGRESSIVE for active recovery, or MODERATE for calmer accounts.
Trend detection mode
Options: TREND SLOPE | TREND CROSS | TREND STRENGTH. TREND STRENGTH (default) uses ADX-related strength logic and is the most robust for multi-pair operation.
Operation mode
- TREND FOLLOW ONLY — trades only when ADX indicates a clear trend
- SIDEWAYS ONLY — trades only when ADX is below the ranging level
- HYBRID AUTO (Sideways Hedge) — preferred default: focuses on sideways averaging and can hedge
- HYBRID AUTO (Trend Hedge)
- DEFAULT FREE — no trend filter (maximum activity, higher risk)
Recommended: HYBRID AUTO (Sideways Hedge). Use TREND FOLLOW ONLY if you want entries strictly when a genuine trend is confirmed.
ADX detection timeframe
Default: 4 Hours (H4). Higher timeframes give more stable regime signals; lower timeframes react faster but can flip more often.
ADX level (below = sideways)
Default 25.0. When ADX is below this value the market is considered sideways. Above this level the EA treats the market as trending. Adjust higher (28–30) for fewer “trend” classifications.
3. Symbols Configuration
Symbol list (Forex + Gold)
Comma-separated list of Forex pairs and Gold. Default includes major and cross pairs plus XAUUSD. The system can handle more than 33 symbols at once. Ensure symbols are in Market Watch.
Symbol list (Crypto / Other)
Comma-separated list of cryptocurrency symbols (e.g. BTCUSD, ETHUSD, DOGE, BNB, SOL, XRP, TRX, TON). Crypto uses percentage-based step, TP, SL, trailing and break-even.
Force broker suffix
Leave empty for automatic detection. If your broker uses a suffix (e.g. “.m”, “.pro”, “c”), enter it here.
All pairs active by default
true = every symbol starts enabled. false = safer for small accounts; enable pairs manually via the on-chart panel. Recommended: true for full multi-pair operation; false when capital is limited.
4. Trade Settings (Forex / Gold / Crypto)
These parameters define how far price must move against an open position before a new same-direction order is allowed (averaging step), and the take-profit / stop-loss distances. Because each pair is independent, these values are applied per-symbol according to its asset class.
Forex
Next same-dir order only after price moves this many pips default 25
Averaging step. A new BUY/SELL in the same direction is only allowed after price has moved this many pips against the existing position. Smaller = denser grid; larger = fewer positions.
Take profit / Stop loss (pips)
Default TP 50 pips, SL 500 pips. Individual positions close at these levels unless trailing or break-even overrides them.
Gold (XAUUSD)
Gold step / TP / SL
Uses special scaling (pips × 0.1 ≈ dollar moves). Defaults: step 50, TP 100, SL 1000. Example: step 50 ≈ $5 move on many brokers.
Crypto (percentage of price)
Crypto step / TP / SL / lot multiplier
- Step: % of price against position (default 0.40%)
- Take profit: % of price (default 1.30%)
- Stop loss: % of price (default 4.20%)
- Lot multiplier (default 0.5 = half) — reduces crypto exposure relative to Forex/Gold
Percentage-based distances adapt automatically to the current price level.
5. General Settings
Enable hedging system
Master switch for hedging logic. When true, the EA can open opposite-direction positions under defined conditions.
Close opposite on reversal
If true, when a clear reversal signal appears the EA attempts to close opposite-direction positions. Default false for safer behaviour.
Max allowed |Buy − Sell| lots
Maximum net directional exposure per symbol (default 10.0). Prevents becoming excessively one-sided.
Max open positions per symbol
Hard limit on simultaneous positions on any single pair (default 5). Enforced independently per symbol.
6. ROI Target & Pause System
Automatically locks in account growth and takes a rest period.
Enable auto Close ALL on ROI target
Monitors floating + closed profit relative to starting balance and closes every position once the target is reached.
Target ROI %
Default 3.0%. When the account reaches +3% from the reference equity/balance, all positions are closed.
Pause trading after ROI Close ALL (hours)
Default 2.0 hours. After a successful ROI close-all, the EA stops opening new trades for this period.
Resume AutoRobot after pause ends
If true, trading automatically resumes when the pause timer expires. If false, you must manually re-enable the EA.
7. Filter & Safety Controls
Reset signals after Close ALL
Clears internal signal states after a full close so the EA starts fresh.
Delay after manual Close ALL (seconds)
Default 7200 (2 hours). After you manually close all positions, the EA waits this long before allowing new entries.
Max spread allowed (× average)
Default 3.0. If current spread is more than 3× the recent average, new orders are blocked.
Min wait before closing opposite (seconds)
Default 60. Minimum time before an opposite position can be closed.
Close opposite only if in profit
When true, opposite positions are closed only when they show positive floating profit.
8. Reversal Strength Filter
Classifies counter-trend pressure into Weak / Medium / Strong and decides whether new averaging entries are allowed. Combined with Operation Mode, this also determines whether entries are permitted in Sideways conditions or only when a genuine trend is present.
Limit entries by reversal strength
Master switch (recommended true). Evaluates ADX and DI gap to determine opposing-move strength.
Weak reversal: ADX below this 22.0
ADX below this = weak/mild pullback — preferred zone for new entries.
Medium reversal: ADX below this 32.0
Between weak and medium = medium strength. Above medium = strong reversal.
Strong if |+DI − −DI| gap ≥ this 8.0
Large directional-index gap indicates strong one-sided pressure.
Block averaging when reversal is strong
Recommended true. Prevents adding same-direction positions when the market is moving strongly against the basket.
Prefer entry on weak~medium reversal only
When true, new entries preferred only during mild-to-moderate pullbacks.
Allow BUY ON / SELL ON when SIDEWAYS
false = normal sideways logic only. true = allows additional BUY/SELL activation in sideways. Use with Operation Mode to decide whether execution is permitted while sideways or only when a true trend is confirmed. Recommended default: false.
9. Risk Management
Capital preset (AUTO = match real balance)
Options: AUTO, ~$100, ~$500, ~$1,000, ~$5,000, ~$10,000. AUTO inspects actual balance and selects a suitable internal preset that scales lot size, max positions, hedge limits and risk %. Safest choice for most users.
Use fixed lot size only
true = always use Fixed lot size (or floor from capital preset). false = risk-% based lot calculation when applicable.
Fixed lot size (base / floor) 0.01
Minimum or fixed volume for new orders. Capital presets may scale this.
Risk per trade % (if not fixed lot) 2.0%
Used only when Fixed lot is disabled. Calculates volume so SL distance risks approximately this % of equity.
Reduce lot during drawdown
When true, automatically reduces lot size as account drawdown increases.
Max total risk of all positions (%) 25%
Global ceiling on combined risk of every open position. New entries blocked if they would exceed this.
Max daily drawdown (%) 15%
If equity falls more than this % from day-start equity, the EA stops opening new trades for the rest of the day.
Enable global equity protection
Master safety switch for equity-based protective logic. Keep true in live trading.
10. Hedging System
Enable smart hedging system
Default false. When true, opens opposite-direction hedge layers according to the rules below. For advanced users.
Hedge lot ratio (0.5 = 50%)
Volume of each hedge order relative to the position being hedged.
Max hedge layers per pair 3
Limits successive hedge positions on one symbol.
Max total hedge lots per pair 5.0
Absolute volume ceiling for all hedge positions on a single symbol.
Max global |Buy − Sell| lots 30.0
Account-wide limit on net directional exposure across all pairs.
Max total open orders (all pairs) 80
Hard limit on total open positions/orders managed simultaneously.
11. Trailing Stop
Locks in profit by moving the stop-loss as price moves favourably.
Enable trailing stop
Master switch. Recommended true.
Forex trailing
Start after X pips (default 25); trail step (default 10 pips).
Gold trailing
Start after X pips (default 50); trail step (default 20).
Crypto trailing (percentage)
Start after % profit (default 0.80%); trail distance as % of price (default 0.15%).
12. Break-Even
Moves the stop-loss to (or slightly beyond) the entry price once a minimum profit is reached.
Enable break-even
Recommended true.
Forex break-even
Move to BE after X pips (default 20); BE offset (default 3 pips) to cover spread/commission.
Gold break-even
Move to BE after X pips (default 40); BE offset (default 8).
Crypto break-even
Move to BE after % profit (default 0.35%); BE offset as % of price (default 0.05%).
13. Volume Filter
Enable volume filter
Default false. When enabled, requires current volume above its moving average before certain entries.
Volume MA period (SMA) 20
Look-back period for the simple moving average of volume.
14. Debug / Test Options
Print diagnostics every 30 seconds
Writes detailed status to the Experts/Journal tab. Useful for monitoring; can be turned off on live accounts to reduce log size.
Softer entry conditions (recommended ON)
Default true. Relaxes certain entry filters slightly while still respecting major safety rules.
Open market orders without SL/TP (broker test)
Default false. Only for testing broker behaviour. Never leave enabled on a live account.
15. Recommended Starting Configurations
Small account (~$100–$500)
- Capital preset: AUTO or CAPITAL_100 / CAPITAL_500
- All pairs active by default: false (enable only 3–5 major pairs)
- Fixed lot: 0.01
- Max open per symbol: 3–4
- Operation mode: HYBRID AUTO (Sideways Hedge) or TREND FOLLOW ONLY
- Block averaging on strong reversal: true
- Use smart hedging: false
Medium account (~$1,000–$5,000)
- Capital preset: AUTO
- All pairs active: true (or selectively disable exotic crosses)
- Keep default step / TP / SL values
- ROI target 2–3% with 1–2 hour pause
- Smart hedging optional, start with false
Larger account / aggressive recovery
- Capital preset: AUTO or CAPITAL_10000
- Hyper Aggressive style + Hybrid Auto
- Slightly tighter Forex step (20–25) if desired
- Monitor Max total risk % and daily drawdown closely
- You may enable more than 33 symbols — the independent per-pair engine will handle them
16. Important Notes & Best Practices
- Always test on a demo account first with the same broker and the same set of symbols you intend to use live.
- Multi33Pairs is multi-pair and independent per symbol; attach it to only one chart (any symbol). It will manage all listed pairs automatically with isolated logic for each.
- Ensure all symbols appear in Market Watch and that AutoTrading is enabled. The on-chart panel shows live signal analysis and provides buttons for manual execution.
- Capital Preset = AUTO is the safest way to let the EA adapt lot size and exposure limits to your real balance.
- The Reversal Strength Filter is a core safety feature — keep “Block averaging when reversal is strong” enabled. Use Operation Mode + Allow BUY ON/SELL ON when SIDEWAYS to decide whether entries are allowed in sideways conditions or only in confirmed trend.
- ROI Target + Pause is excellent for locking periodic profits and avoiding over-trading after a successful cycle.
- Never enable “Open market orders without SL/TP” on a live account.
- Monitor the on-chart panel (signal display + manual buttons) and the Experts log (especially when Debug Mode is on) during the first days of live use.
- Spreads, commissions, and swap differ by broker; adjust Max spread multiplier and BE offsets if necessary.
- MT4 and MT5 versions are kept logic-identical (v68.11). Use the version that matches your terminal. The system is built to handle more than 33 pairs simultaneously thanks to its independent per-pair architecture.
CyberBot Project™
Multi33Pairs v68.11 — Input Parameters & Functions Tutorial
All rights reserved