How to change MT5 expert advisor inputs: where they live, when changes apply and how to save a preset
Find the Inputs tab on a running MT5 EA, understand what happens when you click OK, and save a preset so the exact configuration can be reloaded and tested later.

How to change MT5 expert advisor inputs
To change MT5 expert advisor inputs, open the EA's properties window from the chart it is running on, go to the Inputs tab, double-click the value you want to edit, then click OK. MetaTrader 5 restarts the EA on that chart with the new values right away. You do not need to remove and reattach it. Before you test the configuration later, save it with the Save button on the same tab.
This guide covers the mechanics. It explains where the input parameters live, what actually happens inside the terminal when you apply a change, and how to keep a clean record of each configuration. If you want to know what common inputs like lot size or magic number mean, the guide to MT5 expert advisor settings for beginners covers that.
Automate this on MetaTrader 5
A MetaTrader 5 expert advisor with documented inputs, full backtest settings and clear risk limits.
Where EA inputs live in MetaTrader 5
Inputs belong to one EA instance on one chart. If the same EA runs on EURUSD H1 and on a broker's US index CFD on M5, each chart has its own set of input values. Editing one does not touch the other.
To reach the EA properties on a chart that already runs an EA:
- Right-click the chart and open Expert List (Ctrl+E is the usual shortcut). Select the EA and click Properties.
- Or double-click the EA name shown in the top-right corner of the chart. Depending on your build, this opens the same window.
- When you first drag an EA from the Navigator onto a chart, the same properties window opens automatically before the EA starts.
The window has several tabs. Common holds permissions such as allowing algo trading for this EA. Dependencies lists any libraries or indicators the EA loads. Inputs holds the input parameters. The developer controls the Inputs tab completely: only variables declared as inputs in the code appear there. If a setting you expect is missing, the EA does not expose it. Check the EA's documentation rather than looking for a hidden menu.
MetaQuotes describes the properties window and the algo trading permissions in the MetaTrader 5 algorithmic trading help.
Reading the Inputs tab
Each row shows a variable name and a value. Some EAs use a readable label instead of the raw code name. Values come in a few types:
- Numbers, such as a lot size of 0.10 or a stop distance in points.
- True or false switches, such as enabling a trailing stop.
- Dropdown lists (enumerations), such as a timeframe or a lot sizing mode.
- Text fields, such as a trade comment.
Double-click a value to edit it. For dropdowns, pick an option from the list. Units are the most common source of error. A stop of 200 can mean 200 points, 20 pips on a 5-digit EURUSD quote, or something else if the developer used their own unit. Confirm the unit in the documentation before you trust a number.
Common EA inputs and what they mean
Input names differ between developers, but most EAs share a familiar set. Hover over or read the developer's documentation for exact meaning, since the same name can behave differently in different code.
Lot size and risk mode
Lot size is the trade volume. On many forex symbols, 1.00 lot equals 100,000 units of the base currency, 0.10 is a mini lot and 0.01 is a micro lot. Contract specifications differ by broker and symbol, so check the Market Watch specification window for each instrument.
Some EAs offer a fixed lot input. Others offer a risk-percent mode that calculates volume from account equity and stop distance. If an EA has both, confirm which one is active. A typical mistake is leaving a risk-percent field at a default meant for a larger account.
A worked example on EURUSD: with a standard contract of 100,000 units, a 0.10 lot position moves roughly 1 dollar per pip for a USD-denominated account (0.10 lot is 10,000 units, and a pip of 0.0001 times 10,000 is 1 dollar). A 1.00 lot position moves roughly 10 dollars per pip. Always verify against your own broker specification rather than trusting this approximation.
For futures-style symbols such as ES or NQ offered on some MT5 brokers as CFDs, the contract size and tick value differ again. For the real exchange contract, consult the CME Group contract specifications. An ES tick is 0.25 index points worth 12.50 dollars, which shows why volume units cannot be assumed equal across markets.
Stop loss, take profit and trailing
These are usually expressed in points, not pips. On a five-digit EURUSD quote, 10 pips equals 100 points. Misreading points as pips can make a stop ten times tighter or wider than intended. Check how many digits your symbol has before entering values.
Trailing stop inputs usually include a trigger distance and a step. Read the description so you know when the stop begins to move.
Magic number and comment
The magic number is an ID that lets the EA recognize its own orders. If you run two EAs or the same EA on two charts, give each a different magic number. Otherwise one may manage or close the other's trades. The comment field is only a label.
Time filters and session inputs
Many EAs let you restrict trading to certain hours. These hours normally follow server time, not your local time. A broker server may run on GMT+2 or GMT+3, so a start hour of 9 may not mean 9 a.m. where you live. Confirm the server clock in Market Watch before trusting any time filter.
Spread, slippage and max trades
Maximum spread blocks entries when the spread is wide. Maximum slippage (deviation) sets how far from the requested price a fill can occur. Max open trades caps exposure. These are protective settings and worth understanding early. On CL or news-sensitive pairs, spreads can widen sharply around releases, so a spread filter that is too loose may let trades through at poor prices.
How changes take effect
When you click OK after editing inputs on a running EA, MetaTrader 5 does not hot-swap the values. It deinitializes the EA and initializes it again with the new parameters. In practice, this has several consequences you should plan for.
What resets and what stays
- Internal memory resets. Counters, flags and anything else the EA held in memory start from zero unless the developer saves that state somewhere persistent. Examples include a daily trade counter or a "trade already taken this session" flag.
- Open positions and pending orders stay. Reinitializing the EA does not close trades. Whether the restarted EA recognizes and manages them depends on how it was coded, usually through the magic number and symbol.
- Other charts are untouched. Only the instance you edited restarts.
The same reinitialization also happens when you change the chart's symbol or timeframe, so treat those actions with the same care.
A safe sequence for changing inputs on a live or demo account
- Check the Trade tab for open positions and pending orders from this EA.
- Decide whether you want the change applied while those positions are open. If the EA might not reattach to them correctly, or if you are changing the magic number, wait until the EA is flat.
- Save the current configuration first (see the next section), so you can return to it.
- Edit the inputs and click OK.
- Open the Experts tab in the Toolbox and read the messages. Most EAs print an initialization message, and errors such as invalid parameter values usually show up here.
- Confirm the smiley or active icon is visible in the chart corner and that algo trading is enabled in the terminal toolbar.
Changing the magic number on an EA with open trades deserves extra caution. Many EAs only manage orders that carry their own magic number. A new value can leave existing positions unmanaged.
How to save an EA preset
A preset is a .set file that stores the values from the Inputs tab. Saving one gives you an exact, reloadable record of a configuration. This matters when you compare results between versions of your settings.
Saving from a chart
- Open the EA properties and go to the Inputs tab.
- Click Save.
- Give the file a descriptive name, for example
EURUSD_H1_risk05_v2.set. Include the symbol, timeframe and something that identifies the change. - Note the folder the save dialog opens in. It sits inside the terminal's data folder, which you can reach through File > Open Data Folder.
To restore it later, use Load on the same tab. For a full walkthrough of loading presets, including how to check that a file matches your EA version, see how to load an MT5 set file.
Saving from the Strategy Tester
The Strategy Tester has its own Inputs tab. Right-click the input list to load or save a .set file there. You can save a live configuration from the chart and load it into the tester, so the backtest uses exactly the same values. If you optimize, the tester inputs also hold start, step and stop values for each parameter. The MetaTrader 5 Strategy Tester help documents these fields. For reading the report after a run, see how to test an expert advisor in MT5.
Templates and profiles also store inputs
If you save a chart template or a profile while an EA is attached, MetaTrader 5 stores the EA with its current inputs. Applying that template to another chart attaches the EA with the same values. This is convenient, but it can also attach an EA you did not intend to run. MetaQuotes explains templates and profiles in its charts help section. Use .set files as your main record of settings, and use templates for layout.
Keeping configurations testable
A preset is only useful if you can tell later what it was for. A few habits help:
- Change one thing at a time. If you edit risk, stop distance and session filter together, you cannot tell which change moved the results.
- Keep a short log. Next to each .set file, record the EA version, broker, symbol, timeframe and date. Broker symbol suffixes, for example EURUSD versus EURUSD.r, can matter if the EA filters by symbol.
- Test before deploying. Load the new preset in the Strategy Tester, then run it on a demo account before using it live.
- Keep the original vendor preset untouched. Save your edits under new names so you can always return to the baseline.
If you would rather start from an EA whose inputs are documented and that ships with ready set files, the MT5 expert advisor page lists the parameters and supplied presets, so you can see what each input controls before you change anything.
For the inputs that control money at risk (lot sizing, maximum spread, loss limits), see MT5 expert advisor risk settings explained. If the EA rejects new values or stops after reinitializing, its messages appear in the Experts tab: MT5 expert advisor log errors explained.
Automated trading permissions explained
Even perfect inputs do nothing if permissions block the EA.
The Algo Trading button
The toolbar button labeled Algo Trading is the global switch. When it is off, no EA can send orders. When on, EAs with permission can trade. A small icon in the top-right corner of the chart shows whether that specific EA is active, typically a smiley or a hat-like icon, depending on build.
Allow Algo Trading in the Common tab
Each EA also needs Allow Algo Trading ticked in its own properties. If the global button is on but this box is off, the EA will run its logic without sending orders.
Allow DLL imports and WebRequest
Some EAs call external libraries or web addresses, for example for licensing or news data. Enable these only if you understand why the EA needs them. DLL access lets external code run on your computer, so be cautious and only allow it for software from a source you trust. WebRequest requires you to add specific URLs in Tools > Options > Expert Advisors, which is safer than a blanket permission.
Allow live trading and trade direction
The Common tab may also let you limit direction to long only, short only or both. Use this deliberately, since a leftover restriction can explain why an EA never opens one type of trade.
A beginner pre-run checklist
- Open the Inputs tab and read every field before pressing OK.
- Confirm lot size mode and the exact volume against the symbol specification.
- Check whether stops are in points or pips and how many digits the symbol uses.
- Assign a unique magic number.
- Verify the time filter against server time.
- Confirm the global Algo Trading button and the per-EA permission.
- Decline DLL access unless there is a clear, trusted reason.
- Run it first on a demo account, never straight on live funds.
If you are still deciding whether an EA deserves your time, the due-diligence checklist for buying an MT5 expert advisor covers vendor and documentation checks. Once the settings are understood, the next step is testing an expert advisor in the MT5 Strategy Tester, where inputs are loaded from a preset and results are read from the report.
Conclusion
Inputs live in the Inputs tab of each EA instance's properties window. Clicking OK restarts that instance with the new values, which resets internal memory but leaves open trades in place. Save a .set file before and after each change, name it clearly, and load the same file into the Strategy Tester so your tests match what runs on the chart. Treat every change as a new configuration to verify, not as a quick tweak. Automated trading carries real risk, and no input combination guarantees any result.
FAQ
Why are some inputs grayed out or impossible to edit?
Some EAs only allow certain values to be changed in the Strategy Tester, or they lock parameters on purpose. If an input cannot be edited, check the developer's documentation. Its behavior is defined in the EA code, not by a terminal setting.
Can I change inputs while the market is closed?
Yes. The EA reinitializes immediately, but it usually acts only when new ticks arrive. Check the Experts tab for initialization messages to confirm the new values were accepted.
Will a .set file from another EA work on mine?
Only if the input names match. MetaTrader 5 maps values by parameter name, so mismatched or renamed inputs keep their defaults. Always review the Inputs tab after loading a file from another source.
Does the Reset button delete my saved presets?
No. Reset returns the inputs in the open window to the EA's default values. Saved .set files on disk are not affected.
Do I need to restart MetaTrader 5 after changing inputs?
No. Clicking OK in the properties window applies the change to that chart's EA instance. A terminal restart is not required.
If you want an automated strategy with documented inputs and supplied presets to test on a demo account, see the MT5 expert advisor available at SierraOnShop.
Run it in MetaTrader 5
Written by
Clement
Futures trader for more than seven years, specialized in order book and order flow scalping on US index futures, now building automated strategies. Founder of SierraOnShop.
More about the authorReady to run an expert advisor?
A MetaTrader 5 expert advisor with documented inputs, full backtest settings and clear risk limits.