YoForexEA
Installation & SetupIntermediate10 min read

UNDERSTANDING EA SETTINGS & PARAMETERS

Learn what core Expert Advisor input parameters mean—Magic Numbers, lot sizing, Stop Loss, Trailing Stop, Max Spread, and news filters—before going live.

By YoForexEA Research Desk

Quick Summary

Expert Advisor settings control position sizing, stop-loss and take-profit placement, spread/slippage tolerances, trading session windows, and Magic Number trade identification. Always verify whether inputs are expressed in 4-digit pips or 5-digit points, set a unique Magic Number per chart, and validate changes on a demo account before live execution.

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.01 or 0.10 lots) 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% to 1.5%).
  • Lot Multiplier / Martingale Step: Scales subsequent order sizes after losses or grid steps. Treat multipliers above 1.0 with 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's StopLoss, TakeProfit, and MaxSpread fields accept pips or points before saving a .set preset.

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

  1. Audit Units First: Check on a demo account whether SL, TP, and MaxSpread use pips or points on your broker.
  2. Start Conservative: Keep risk per trade at 0.5% to 1% (or 0.01 fixed micro lots) until forward behavior matches expectations.
  3. Assign Unique Magic Numbers: Label each chart systematically and save a backup .set file once verified.
  4. Keep Hard Stops Active: Never disable Stop Loss or emergency equity protection on a live account.

ACTION CHECKLIST

  1. Verify pips vs points units: Confirm whether StopLoss, TakeProfit, and MaxSpread inputs expect 4-digit pips or 5-digit points on your broker.
  2. Assign a unique Magic Number: Set a distinct integer Magic Number for every EA chart running on the same MetaTrader account.
  3. Configure conservative risk sizing: Choose fixed 0.01 micro lots or 0.5%–1% dynamic equity risk while validating live execution.
  4. Set spread and session filters: Align trading hours with your broker's server GMT offset and configure a realistic MaxSpread ceiling.
  5. 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.

FREQUENTLY ASKED QUESTIONS

What is the difference between pips and points in EA settings?

On standard 5-digit forex quotes (e.g., 1.10542), the fourth decimal is 1 pip and the fifth decimal is 1 point—so 10 points equal 1 pip. Entering 20 in a points-based StopLoss field creates only a 2-pip stop.

What should I set the Magic Number to?

Any positive integer unique to that chart (such as 20261 or 20262). Just make sure no two EAs on the same account share the same number and never use 0 if you also trade manually.

How do I save my EA configuration so I don't have to re-enter inputs?

Inside the EA's Inputs tab, click Save to export a .set file into MQL4/Presets or MQL5/Presets. You can reload it anytime with the Load button.

EXPLORE RELATED EA HUBS

MT4 Expert Advisors →MT5 Expert Advisors →Grid Bots →

CONTINUE READING

EXPLORE VERIFIED EXPERT ADVISORS

Browse MT4 and MT5 bots, indicators, and setup resources across YoForexEA.

Browse EAsAll 18 GuidesEA FAQ