Home > Blog > The Complete Guide to EA Parameter Settings — What Beginners Should Adjust First

ParametersEA SettingsRiskPercentMT5Beginners

The Complete Guide to EA Parameter Settings — What Beginners Should Adjust First

Published: 2026-05-18Read time: about 3 min
This article reflects information as of its publish date. EA performance figures (PF, DD, annual return) change with live trading and re-validation — check the latest on the EA pages. See the latest EA results

The Complete Guide to EA Parameter Settings — What Beginners Should Adjust First

After setting up an EA on MT5, one of the most common questions beginners ask is: "Which parameters should I change?" Change too many and your backtested results become invalid. Change too few and you may be running the EA with settings mismatched to your account. This article explains the key parameters beginners need to understand and how to configure them safely.

Types of Parameters and Their Importance

EA parameters fall into three broad categories:

TypeDescriptionShould You Change?
Risk managementLot size, risk percentage, stop loss✅ Must adjust
Filter settingsTrading hours, days of the week, news avoidance⚠️ Proceed with caution
Strategy coreEMA period, ATR multiplier, entry conditions❌ Do not change as a rule

Essential Parameter #1: RiskPercent (Risk Rate)

Lot size = (Account balance × RiskPercent%) ÷ (SL width × pip value)

This is the single most important parameter. It determines what percentage of your account balance you are risking on each trade.

RiskPercentRisk LevelRecommended For
0.5%Very conservativeDemo trading or early live trading
1.0%StandardRecommended default
2.0%AggressiveAfter building a solid track record
3.0%+High riskAdvanced traders only

Example: With an account balance of $700 and RiskPercent = 1.0%, your maximum loss per trade is $7.

Start with 0.5–1.0% and only increase after at least three months of stable forward-test performance.


Essential Parameter #2: Lots (Fixed Lot Size)

For EAs that do not implement RiskPercent, you set a fixed lot size (Lots) directly.

Account BalanceRecommended Lots (XAUUSD)
$7000.01 (micro)
$3,5000.01–0.02
$7,0000.02–0.05

XAUUSD (Gold) has large pip movements, so even 0.01 lots can produce noticeable swings in your P&L. Always start with the minimum lot size (0.01).


Essential Parameter #3: MagicNumber

MagicNumber = The unique ID number an EA uses to identify its own positions

If you run multiple EAs on the same account with the same MagicNumber, each EA may accidentally modify or close the other's positions.

ScenarioMagicNumber Setting
Single EA onlyLeave the default
Multiple EAsAssign a unique number to each EA (e.g., 1001, 1002, 1003)

You should also change the MagicNumber if you attach the same EA to the same currency pair multiple times with different timeframes.


Essential Parameter #4: MaxDailyLossPct / MaxDrawdownPct

These are the EA's automatic stop mechanisms.

MaxDailyLossPct = Stop the EA if daily losses exceed X% of account balance
MaxDrawdownPct  = Stop the EA if the account drops X% from its peak
ParameterRecommended ValueMeaning
MaxDailyLossPct3–5%Stop if daily loss exceeds 5%
MaxDrawdownPct20–25%Stop if account drops more than 25% from peak

Setting these allows the EA to manage risk automatically, removing emotion from the equation.


Time Filter Parameters

StartHour / EndHour (Trading Hours)

Specifies the hours during which the EA is active.

StartHour = 0  → Active from midnight
EndHour   = 20 → Active until 8 PM (server time)

For XAUUSD, the European–New York session (typically high liquidity hours) is generally recommended. However, since the default settings are optimized through backtesting, do not change them without a clear reason.

NewsFilter (Economic Calendar Filter)

This is typically a true / false toggle.

  • true: Skip new entries around high-impact events (NFP, FOMC, etc.)
  • false: Enter trades regardless of news events

For beginners, true is recommended. Note that some EAs require an API key when using an external economic calendar data source.


Parameters You Should Never Change

The following parameters are fundamental to the EA's strategy. Changing them without a clear reason invalidates the backtest results.

ParameterWhy Not to Change It
EMA_PeriodCore entry condition — changing it creates a different EA entirely
ATR_MultiplierDetermines SL/TP width — changes break the risk/reward ratio
RSI_PeriodCore filter condition
MinATR / MaxATRVolatility filter — misconfiguration can result in zero trades

If you do need to change any of these, run a new backtest covering at least 5 years before using the modified EA in live trading.


Step-by-Step Parameter Setup (Practical Guide)

Step 1: Record the Default Settings

Before attaching an EA, note down all default parameters in a spreadsheet. This lets you revert if needed.

Step 2: Adjust Only RiskPercent

The first — and often only — change to make is RiskPercent (or Lots). Set it to 0.5–1.0%.

Step 3: Set MagicNumber

Only necessary if you are running multiple EAs simultaneously. Assign each a unique number.

Step 4: Configure MaxDailyLossPct and MaxDrawdownPct

Set up the automatic stop safety net.

Step 5: Leave Everything Else Alone

Do not touch any other parameters until you have at least three months of forward-test performance to evaluate.


Common Mistakes to Avoid

Mistake #1: Tweaking parameters and going live immediately

Any parameter change requires a new backtest to validate. Even a "small" change can dramatically alter the outcome.

Mistake #2: Changing parameters after a losing streak

Adjusting parameters mid-losing-streak makes it impossible to tell whether the drawdown is within the normal range shown in backtests. The losing streak is more likely caused by market conditions than by your parameters.

Mistake #3: Changing multiple parameters at once

When you change several settings simultaneously, you cannot determine which change actually affected the result. Make one change at a time.


FAQ

Q: Do I need to redo the backtest after changing parameters?

Yes. If you change any strategy or filter parameters, always run a new backtest. Changing only RiskPercent simply adjusts lot sizing and does not require a new backtest.

Q: What is the optimal RiskPercent?

It depends on your account balance, psychological tolerance, and the EA's maximum drawdown. For example, if an EA's backtest shows a maximum DD of 15%, set your RiskPercent so that the worst-case drawdown stays within 15% of your account. For beginners, 0.5–1.0% is a safe starting point.

Q: Can I set both Lots and RiskPercent at the same time?

It depends on the EA. When RiskPercent is implemented, the fixed Lots setting is usually ignored. Check the EA's documentation (README or manual) to confirm.


5-Day Email Course (Free)

Get one email a day covering the essentials of FX automated trading, how to read backtests correctly, and tips for choosing a broker.

* Privacy strictly protected. You can unsubscribe at any time.

Comments & questions