BullsEdges algo trading guide: EA inputs control everything from lot size to trading hours. Learn how inputs, defaults and .set files work in MT5 - and the trap that resets your settings.
Inputs are the settings an Expert Advisor exposes to the user: lot size, stop distance, trading hours, filters. Getting them right is as important as the code itself.
BullsEdges algo trading application: Save a versioned .set file and compare the active inputs with it after every installation or update.
Where inputs come from
The EA's programmer declares each input with a default value in the source code. When you attach the EA to a chart, the Inputs tab shows these defaults, and you can change them.
Saving settings: .set files
On the Inputs tab, Save writes all current values to a .set file (in MQL5/Presets by default). Load reads one back. Use .set files to:
- Keep a record of exactly what is running on each account.
- Move the same settings to another terminal or VPS.
- Roll back after a change that did not work.
Name them clearly, for example "GoldGrid_safe_v1.05_0.01lot.set".
The trap: chart settings override new defaults
When an EA is attached to a chart, MT5 stores the input values with the chart and its profile. If you later install a new version of the EA with different defaults, the chart keeps the old values. Many traders "update" an EA, expect the new defaults, and keep running the old settings for weeks.
To be sure:
- After updating, open the EA's properties on the chart and check the Inputs tab.
- Load the intended .set file explicitly.
- If the EA logs its inputs on start-up, read that log line in the Experts tab.
Reading inputs carefully
- Units: points, pips or price (dollars)? A "stop of 50" means very different things.
- Time: server time or local time? Most EAs use the broker's server time.
- Zero values: often mean "off". A maximum drawdown of 0 usually means no stop at all - check the description.
- Lists: some inputs take comma-separated values, such as a lot sequence "0.01,0.02,0.04". A missing comma changes everything.
Changing inputs on a live EA
Changing inputs re-initialises the EA. Open trades usually stay, but internal state - counters, pause timers, "already traded today" flags - may reset. Change settings when the EA has no open positions if you can, and check the log afterwards.
Copying settings between accounts
When the same strategy runs on several accounts, copy inputs from a known-good account rather than retyping them. But adjust anything that depends on the account: lot size for the balance, symbol suffix for the broker (XAUUSD vs XAUUSD.m), and magic numbers if needed.
BullsEdges takeaway for algo trading
Treat inputs as part of the strategy. Save them, version them, and verify them on the chart - never assume.
Trading forex and gold carries a high level of risk and may not be suitable for every investor. Past performance and backtests do not guarantee future results. This article is education, not financial advice.
