Your MT4 .set File Is Not Your Source Code: Here Is Why

Published Updated

Small settings card beside a closed engineering notebook

An MT4 .set file is useful, but it is not source code. It stores selected Expert Advisor inputs for a test or run, while the EA logic remains inside the compiled EX4 file or the original MQ4 source. That distinction matters because a preset can help you repeat a configuration, yet it cannot explain how the strategy thinks, calculates, or adapts.

In practice, many MT4 users keep presets long after they lose the source. That can help with continuity, however it also creates false confidence. A saved input list may look complete, but it only reflects visible parameters at one point in time. It does not prove how those values affect internal logic, and it cannot freeze the meaning of those values across versions.

This article focuses on the MT4 set file as a record of settings, not a recovered strategy. That distinction helps you organize files correctly, avoid version confusion, and ask better questions when a developer or analyst needs context. It also prevents common mistakes, such as treating optimization output as proof of the full method or assuming a preset can reveal hidden code behavior.

The preset that survived

A .set file often survives because it is easy to export, copy, and archive. Therefore, it becomes the only visible trace of a strategy after a workstation change or a project handoff. That makes it valuable for continuity, especially when the original MQ4 file is missing.

However, the file records only chosen inputs, not the algorithm. It can tell you that a moving average period was 20, or that trading hours were restricted. It cannot tell you why those values mattered, or how the EA combined them with other signals.

This is why you should treat a preset as configuration data, not as a recovered strategy. If someone claims the preset alone proves the design, they overstate what MT4 stores. A preset preserves a snapshot of parameter choices, nothing more. It also leaves out the market context that gave those choices meaning.

What EA inputs really save

In MetaTrader 4, the preset captures the values you assign to EA inputs. For example, it may store lot size, stop loss, take profit, signal filters, or time windows. These are the external controls exposed by the developer.

Next, the file can help you recreate a test setup, because it preserves those chosen values in a reusable form. That is useful when you want consistent backtests, or when you need to apply the same parameter set on another chart. It also helps if you need to compare two versions under the same visible settings.

Still, the preset only reflects what the EA exposes through input variables. It does not include hidden local variables, internal state, or code paths that depend on market data. A saved parameter may look simple, but its effect can be complex inside the program. The file shows a choice, not the reasoning behind it.

What it cannot reveal

A .set file cannot show a custom indicator formula, trade filtering logic, or risk calculation method. It does not expose buffer handling, bar shift logic, or how the EA interprets a custom indicator output. Those details live in the code, not in the preset.

This matters because the same input can produce different behavior in different programs. For example, an entry mode value might mean breakout logic in one EA and pullback logic in another. The preset does not define the meaning; the code does.

If you want a deeper technical read, focus on what the inputs control and what they do not. Also remember that iCustom only fetches values from a custom indicator, while the buffer choice and shift affect the result. The preset cannot reveal those implementation details, and it cannot describe hidden branches that depend on earlier bars.

Defaults and saved values can disagree

An important point is that a stored preset may differ from the EA’s current defaults. If the developer changes the default lot size, a saved .set file may still load the older value. Therefore, the file can preserve a historical configuration that no longer matches the latest release.

This is one reason version tracking matters. A preset is tied to a specific moment in a project’s life, not to a timeless strategy definition. If you load an old preset into a newer EX4, the EA may behave differently even though the file looks unchanged.

The problem is not corruption. It is mismatch. The preset says what was selected then, while the EA says what the program means now. When the two diverge, verify every key input before you assume the configuration still matches the intended setup. That check is especially important when several builds share similar names.

When a version changes meaning

A version update can change how an input is interpreted without changing its name. For example, a parameter called Filter could shift from a simple on or off control to a multi-state mode selector. The preset still loads, but its practical meaning changes.

This is why version notes matter as much as parameter values. A saved input list without the matching executable version can mislead you. The same .set file may work well with one build and only partly reflect another. A filename alone rarely tells you that difference.

If you organize files carefully, keep the preset beside the exact EX4 release it was created for. Also record the build date or version label in your notes. For broader housekeeping, the guide on ex4 decompiler is often misunderstood, but the real issue here is version alignment, not source recovery. Clear version labels reduce confusion when a setting appears familiar but produces different behavior.

A 30-point example with 2 meanings

Consider a hypothetical case. A user sees a setting of 30 points and assumes it means 3 pips. That may be true on a 5-digit forex pair, because 1 point is 0.00001 and 10 points equals 1 conventional pip. However, that interpretation is not universal.

Now change the symbol. On metals, indices, or other instruments, the same 30-point value may represent a different distance in price terms. Therefore, a preset alone cannot tell you the market context in which the setting was intended. Quote precision is symbol-specific, so the same number can carry a different practical meaning.

The same issue appears in backtests. MT4 history contains Bid prices, while the tester models Ask using the selected spread. If you want a deeper explanation, the guide on mt4 backtest spread is relevant, because spread assumptions can change how a point-based setting behaves in testing. This is why a raw input list needs symbol context.

Cataloging presets safely

A good preset catalogue should tell you what the file is, where it came from, and which EA version it matches. Use clear names, dates, symbol tags, and timeframe tags. Also note whether the file came from a live chart, a forward test, or a Strategy Tester run.

At the same time, avoid storing account-sensitive details in the same note set. Do not paste login data, server names, or trade history identifiers into descriptive filenames. A clean inventory should help recovery, not expose private operational details. It should also remain readable when you return to it months later.

For teams, a simple record format is usually enough: strategy name, preset date, EA build, symbol, timeframe, and purpose. That approach supports later review without pretending the file is a complete strategy document. It also reduces confusion when several near-identical presets exist. If you need to compare file lineage, treat the preset as one record in a larger archive, not as the archive itself.

Optimization ranges are not a strategy

Optimization files often create a false sense of completeness. They show tested input ranges, steps, and selected results, but they do not define the strategy itself. They only document the search space used during a test or optimization run.

This distinction matters because a range is not a rule. Saying lot size was tested from 0.1 to 1.0 does not mean the strategy is defined by that interval. It only means the tester explored those values under a particular setup. The range helps analysis, but it cannot replace strategy logic.

Also, MT4 test settings are separate from EA inputs. Symbol, timeframe, modeling method, and dates are distinct controls. Therefore, a range without the surrounding test settings is incomplete. Never treat optimization output as proof of future live performance or as a full specification of the method. It is a record of exploration, not a contract for outcomes.

What to give the original developer

If you need help from the original developer, send the preset together with the exact EX4 version and a description of the problem. Include the symbol, timeframe, and a short summary of the behavior you observed. That gives the developer context without requiring source disclosure.

Also provide any relevant test settings if the issue appears only in the tester. Remember that WebRequest and several external communication functions do not execute in the Strategy Tester. TimeLocal, TimeCurrent, and TimeGMT also coincide in simulated time, so tester behavior may differ from live operation. Those differences matter when the issue involves date filters or outside data.

A good support package should focus on reproducibility, not on speculation. If you ask whether an old preset still matches a newer build, make that question explicit. For version tracking ideas, the guide on mt4 ea version control is a practical companion to this record-keeping approach. It helps you separate configuration drift from code changes.

Separate source, executable and preset records

Source, executable, and preset serve different purposes, so keep them separate. MQ4 is editable source code. EX4 is compiled program logic. A .set file is only a parameter snapshot. Mixing them in one folder without labels creates avoidable confusion, especially when several versions share similar names.

This separation also matters legally and operationally. Ownership and modification rights depend on contract and law, not on who pays for a file or who holds a copy. Possession of EX4 does not authorize alteration, and a preset never grants rights to reconstruct the source. Keep that boundary clear in your records.

A disciplined archive is simple. Store the original MQ4 if you own it or are authorized to keep it, keep the exact EX4 release beside it, and archive related .set files with clear dates. That way, the preset remains useful as evidence of configuration, while the code remains the only real source of strategy logic. When you preserve the three records separately, you reduce errors and keep future reviews honest.