Core EA Parameters Explained
Every Expert Advisor exposes configurable inputs inside its Inputs tab that govern trade frequency, position risk, and broker filters. Understanding each group prevents accidental over-leveraging or silent trade rejections.
1. Magic Number & Trade Comments
- Magic Number: A unique integer identifier attached to every order placed by that EA instance.
- Multi-Chart Isolation: Allows MT4 and MT5 to separate trades opened by different robots—or different strategies on the same symbol—from manual trades (which carry Magic Number
0). - Best Practice: Never run two EA charts on the same account with an identical Magic Number.
2. Lot Size and Risk Settings
- Fixed Lot Size: Places every initial order at an identical volume (for example,
0.01or0.10lots) regardless of stop distance or balance changes. - Dynamic Risk Percentage (%): Calculates position size automatically from account equity (or balance) and the Stop Loss distance so each trade risks roughly the same percentage (commonly
0.5%to1.5%). - Lot Multiplier / Martingale Step: Scales subsequent order sizes after losses or grid steps. Treat multipliers above
1.0with extreme caution because required margin grows geometrically during sustained trends.
3. Stop Loss (SL), Take Profit (TP) & Pips vs Points
- Stop Loss: The protective exit price closing a losing position to cap maximum single-trade loss.
- Take Profit: The target exit price locking in gains automatically on the broker server.
- Points vs Pips Trap: On 5-digit forex brokers (
1.08542) and 2/3-digit Gold brokers,1 pip = 10 points. Always verify whether an EA'sStopLoss,TakeProfit, andMaxSpreadfields accept pips or points before saving a.setpreset.
4. Trailing Stop & Breakeven Controls
- Trailing Start / Activation: Minimum profit distance required before the EA shifts the Stop Loss past entry.
- Trailing Distance & Step: How far behind current market price the trailing stop sits and how often it updates to reduce excessive server modification requests.
- Breakeven Offset: Moves SL to entry price plus a small commission buffer once price travels a set distance in profit.
5. Maximum Spread & Slippage Filter
- Max Spread: Pauses new entries when bid-ask spread widens abnormally during midnight rollover or news releases.
- Slippage (Deviation): Maximum acceptable price movement (in points) between order submission and broker fill on market orders.
6. Trading Session & News Filters
- Session Windows: Restricts entries to specific broker server hours (for example, London/New York overlap or quiet Asian ranges). Verify your broker's GMT/UTC server offset first.
- News Filters: Pauses entries (and sometimes tightens stops) before and after high-impact releases like CPI, NFP, or central bank rate decisions.
Best Practice Configuration Checklist
- Audit Units First: Check on a demo account whether SL, TP, and MaxSpread use pips or points on your broker.
- Start Conservative: Keep risk per trade at
0.5%to1%(or0.01fixed micro lots) until forward behavior matches expectations. - Assign Unique Magic Numbers: Label each chart systematically and save a backup
.setfile once verified. - Keep Hard Stops Active: Never disable Stop Loss or emergency equity protection on a live account.
ACTION CHECKLIST
- Verify pips vs points units: Confirm whether StopLoss, TakeProfit, and MaxSpread inputs expect 4-digit pips or 5-digit points on your broker.
- Assign a unique Magic Number: Set a distinct integer Magic Number for every EA chart running on the same MetaTrader account.
- Configure conservative risk sizing: Choose fixed 0.01 micro lots or 0.5%–1% dynamic equity risk while validating live execution.
- Set spread and session filters: Align trading hours with your broker's server GMT offset and configure a realistic MaxSpread ceiling.
- Save and test the .set preset on demo: Save your configuration to MQL4/Presets or MQL5/Presets and verify trade placement on a demo account first.