EA input settings are the adjustable parameters an Expert Advisor exposes in MetaTrader, such as lot size, stop loss, take profit, magic number and trading hours, which let you control how the robot trades without editing its code. They appear on the Inputs tab when you attach the EA to a chart, and changing them can alter an EA’s risk and results as much as changing the strategy itself, so each one deserves a deliberate choice rather than a default left untouched.
This guide explains what input settings are, walks through the parameters you will meet most often, shows how to change, save and load them in MT4 and MT5, and sets out a safe process for testing new values before they reach a live account.
What are EA input settings?
When a developer writes an Expert Advisor in MQL4 or MQL5, any variable declared with the input modifier becomes a parameter the user can edit. According to the MetaTrader 5 help, these inputs “allow you to control the behavior of the application”, and you change a value by double-clicking it on the Inputs tab and entering a new one, while the Reset button restores the developer’s defaults.
Inputs fall into a few broad groups: risk and position sizing, trade management, filters that decide when the EA may trade, and identification settings that keep its orders separate from others. Every EA has its own list, named by its developer, so the labels below are typical examples rather than a fixed standard, and the EA’s own documentation should always be your first reference.
In code, input declarations look like the lines below, and each one appears as a row on the Inputs tab. The declarations only expose the values; what the EA actually does with them depends on how the rest of its code uses them.
- input double FixedLot = 0.10;
- input int StopLossPoints = 200;
- input int TakeProfitPoints = 400;
- input ulong MagicNumber = 12345;
Common EA input settings and what they do
| Input | What it controls | What to watch |
|---|---|---|
| Lot size or fixed lots | The volume of every trade | Must suit account size and broker minimums |
| Risk percent | Position size as a share of balance or equity | Check whether the EA uses balance or equity |
| Stop loss | Requested exit distance for a losing trade, in points or pips | Slippage or gaps can make the realised loss larger |
| Take profit | Profit target distance per trade | Interacts with trailing and break-even settings |
| Trailing stop | How the stop follows price once in profit | Too tight can close good trades early |
| Magic number | Identifier attached to the EA’s orders | Usually best kept unique per EA instance; check the EA’s logic |
| Maximum spread | Blocks entries when the spread is too wide | Set in points; check your broker’s typical spread |
| Trading hours or sessions | When the EA may open trades | Often read in broker server time; check the EA’s documentation |
| Maximum open trades | Caps simultaneous positions | Key for grid and averaging systems |
| Slippage | Acceptable price deviation on execution | Behaviour varies with execution type |
Example: EA input settings for EURUSD
The configuration below shows how common inputs work together. The values are illustrative, not recommended trading settings, and not every EA supports every input or uses the same names and units.
| Input | Example value | Meaning |
|---|---|---|
| FixedLot | 0.10 | Requests a trade volume of 0.10 lots |
| StopLossPoints | 200 | Stop 200 points away, which is 20 pips on a five-digit EURUSD quote |
| TakeProfitPoints | 400 | Target 400 points away, or 40 pips |
| MagicNumber | 12345 | Identifier the EA uses to recognise its own trades |
| MaxSpreadPoints | 20 | Allows new entries only when the spread is 2 pips or less, if the filter is implemented |
| TradingStartHour / TradingEndHour | 9 / 17 | Illustrative session window, read according to the EA’s time logic, usually broker server time |
Raising FixedLot increases exposure on every trade. Widening StopLossPoints gives price more room but raises the money at risk if the volume stays the same, and lowering MaxSpreadPoints may reduce the number of trades the EA takes. Actual risk also depends on pip value, costs and market conditions.
Lot size and risk settings
Position sizing inputs decide how much each trade risks, which makes them the most important settings on the list. A fixed-lot input trades the same volume regardless of balance, whereas a risk-percent input recalculates volume from the account value and the stop distance, so the same EA can behave very differently depending on which mode is active. Start small, confirm the volume the EA actually places on a demo account, and check that it respects your broker’s minimum lot and step size.
Stop loss, take profit and trailing
Distances are usually entered in points, where one point on a five-digit EURUSD quote is a tenth of a pip, so a stop loss of 200 points equals 20 pips. Misreading that unit is a common source of stops ten times tighter or wider than intended. Trailing stops and break-even inputs then adjust the stop as a trade moves into profit, which changes the strategy’s win rate and average win, so test them together rather than in isolation.
Magic number
The magic number tags every order the EA opens, which is how it finds and manages its own trades. Running two EAs, or the same EA on two charts, with an identical magic number can make them manage each other’s positions, so give each instance a unique value and record it, since journals use the same number to split results by robot.
Filters: spread, hours and news
Filter inputs stop the EA trading in conditions its strategy was not designed for. A maximum spread filter prevents entries when spreads widen, for example around rollover, and trading hours inputs restrict entries to chosen sessions, usually measured in the broker’s server time. Some EAs also include news filters, which rely on an external calendar and may need extra setup, such as allowing web requests in the terminal options.
Grid, averaging and recovery inputs
EAs that add positions as price moves against them expose settings such as grid step, lot multiplier and maximum trades. These inputs control how quickly exposure can grow, and aggressive values can turn a manageable drawdown into a margin call, so treat them with particular caution and test the worst case rather than the average one.
How to change, save and load EA inputs
In both MT4 and MT5, inputs are set when you attach the EA to a chart, and you can reopen them later through the EA’s properties on that chart. The process in MT5 works as follows:
- Drag the EA from the Navigator onto a chart, or right-click it and choose to attach it.
- On the Common tab, confirm the option that allows the EA to trade, described in the MT5 help as Allow Auto Trading, and make sure the platform’s own algorithmic trading button is enabled.
- On the Inputs tab, double-click a value to change it.
- Use Save to store the current set of values and Load to apply a saved set; the MT5 help notes that saved sets are kept in the platform’s Presets folder.
- Click OK, then check the Experts and Journal tabs for messages confirming that the EA loaded correctly.
Saving sets is worth doing every time you change something, with a clear name that includes the symbol, timeframe and date, so you can return to a known configuration and compare results between versions. Many EA vendors also publish recommended set files for particular symbols, which you can load and then adjust.
How to choose and test new settings safely
Changing an input is effectively changing the strategy, so new values deserve the same testing as a new EA. A sensible sequence is to backtest the change in the Strategy Tester with realistic spreads and commissions, compare the result with the previous settings over the same period, and then forward test on a demo account before applying it live.
Beware of tuning inputs until the backtest looks perfect. Optimisation can find values that fit past noise rather than a lasting pattern, so prefer settings that perform reasonably across a range of nearby values over a single sharp peak, and keep part of the history aside to check the chosen values on unseen data.
Once live, change one input at a time and give it enough trades to judge, since adjusting several together makes it impossible to tell which change helped or hurt. Compare live behaviour with the backtest, including trade frequency, average holding time and drawdown, and treat a large gap as a signal to investigate before changing anything else.
Common mistakes with EA inputs
- Leaving default values in place without checking that they suit your account size or broker.
- Confusing points with pips, producing stops and targets ten times off.
- Reusing the same magic number across EAs or charts.
- Setting trading hours in local time when the EA reads broker server time.
- Raising lot multipliers or maximum trades on grid systems without testing the worst case.
- Changing several inputs at once on a live account.
Frequently asked questions
Where do I find an EA’s input settings?
Attach the EA to a chart and open the Inputs tab in the window that appears, or right-click the chart and open the EA’s properties if it is already running.
What is a set file?
A set file is a saved list of input values for an EA. You create one with the Save button on the Inputs tab and apply it with Load, which lets you switch between configurations or use settings provided by the developer.
Do I need to restart the EA after changing inputs?
Changing inputs through the EA’s properties reinitialises it with the new values. Check how the EA handles open trades when reinitialised, since some EAs resume managing them while others behave differently.
What magic number should I use?
Use a value within the type and range the EA accepts, and one that no other EA instance on the account uses, unless the EA’s documentation says otherwise. Many traders follow a numbering scheme, such as one range per EA and a suffix per symbol, and record it in their journal.
Are default EA settings safe to use?
Defaults are the developer’s starting point, not a guarantee of suitability for your account, broker or risk tolerance. Review each input, test on a demo account and adjust position sizing to your own risk limits.
Next step
Open your EA’s Inputs tab, write down every parameter and its current value, and save that configuration as a named set before changing anything. Test any change in the Strategy Tester and on a demo account first, and track each EA by its magic number in a journal such as Account Tracker, so you can see how each settings change affects live results. Trading involves real risk, and no input setting guarantees profits.

Comments
No comments yet. Be the first to comment!
Leave a Comment
Your email address will not be published. Required fields are marked with *