An MQ4 project README does more than repeat a file name. It gives the next developer context that the source code cannot carry on its own, especially when an EA depends on indicator settings, tester behavior, or broker-specific assumptions. In an MT4 workflow, that context matters because compilation, symbol precision, and the Strategy Tester all add details that a bare source file does not explain.
A good README also reduces avoidable confusion during handoff. It should identify the exact source revision, the matching EX4, the inputs that matter, and any external pieces the program expects. Just as important, it should note what the Strategy Tester can and cannot prove. The goal is not a long project diary. The goal is a compact, accurate reference that another developer can use without guessing.
Why the source file still leaves unanswered questions
The MQ4 file captures logic, but it rarely captures intent. A new developer can read conditions and loops, yet still miss why a filter exists, which market the EA targets, or which inputs are safe to change. Therefore, the README should explain the design goal in plain language before anyone edits code.
It should also state what the file is not meant to do. For example, a scalper and a swing system may both compile cleanly, but they need different expectations for spread, session timing, and trade frequency. A short README prevents assumptions from becoming code changes.
This matters even more when the project includes indicators, templates, or tester presets. The source file does not always show which companion files are required, which values came from research, or which settings are only valid for one symbol. A concise README keeps those boundaries visible without forcing the reader to infer them from code alone.
Start with the purpose and project boundaries
Begin with a brief statement of purpose. Say what the EA, indicator, or script is supposed to do, and name the market context it was built for. For example, state whether it trades breakouts, filters sessions, or manages entries from a custom signal. This helps the next developer judge every later decision against the original aim.
Next, define the boundaries. Specify whether the project is a trading engine, a signal layer, or a helper module. Also note what sits outside scope, such as portfolio management, money management, or broker reconciliation. That makes future changes more disciplined because the README names the line between core behavior and optional extras.
Keep this section short, but do not make it vague. A README that says only “EA for forex” leaves too much room for error. Instead, use one or 2 direct sentences that identify the target symbol type, the intended timeframe, and any operational limit that matters from the start.
Name the source revision and matching executable
A handoff should always link source and binary. Record the exact MQ4 revision, commit tag, or dated version string, and then name the matching EX4 built from it. That pairing matters because MetaEditor compiles MQ4 into EX4, and the binary is not a text source file. A developer should never have to guess which code produced which executable.
If multiple EX4 files exist, note the relationship clearly. For instance, one build may add a debug flag, a broker-specific spread rule, or a session change. Without that note, someone may open the wrong version and compare behavior against the wrong code path. The README should make the version mapping obvious at a glance.
This section should also warn against a common mistake. Possession of an EX4 does not prove the source was recovered, and a plausible MQ4 text reconstruction is not proof of authenticity. Even an ex4 decompiler cannot turn that assumption into certainty. Therefore, the handoff should identify the authoritative source revision directly, rather than relying on file names or similarity.
List includes and external dependencies with provenance
MQ4 projects often rely on includes, custom indicators, templates, or data files. List each dependency and explain where it comes from. If the code uses a custom indicator through iCustom, name the indicator, its file location, and any assumptions about its buffers or parameters. That detail matters because iCustom depends on correct inputs, buffer selection, and bar shift.
Also record whether each dependency is internal or external. An internal include may belong to the same project, while an external file may come from a separate library or vendor package. That distinction helps the next developer judge maintenance risk. It also clarifies what can be edited freely and what may require separate coordination.
Provenance should stay factual. Do not imply ownership just because a file sits in the folder, and do not say a project can be modified without regard to its source terms. Instead, note where the file came from, when it was added, and whether it must remain unchanged for compatibility. That simple record can save time during later audits.
Explain inputs and their units
Inputs deserve their own explanation because names alone can mislead. A parameter called StopLoss may be in points, pips, or raw price distance, depending on how the code uses it. The README should state the unit next to the name and, if helpful, show one concrete example. Otherwise, the next developer may tune the wrong scale.
Use symbol-aware language where needed. MetaTrader quote precision is symbol-specific, so 1 point is not always the same as 1 pip. On many 5-digit forex symbols, 10 points equal 1 conventional pip, but that convention does not apply to every market. Therefore, the README should say whether a value is in points, pips, seconds, bars, or account currency.
This section should also list default values and valid ranges. If the EA expects a session window, define whether the times are server time or local time. If it uses a threshold, state whether 0 disables the feature. Clear unit notes prevent accidental behavior changes when someone edits inputs without re-reading the source.
Record the environment without exposing secrets
A useful README notes the runtime environment that the project expects. Record the MT4 build range, the broker server time assumptions, the symbol digits used during development, and the Strategy Tester mode if that matters. TimeCurrent reflects the last known broker server quote time, not the computer clock, so that distinction belongs in the handoff.
At the same time, avoid exposing secrets. Do not store account numbers, passwords, API keys, or private server details in the document. Instead, describe the class of environment, such as demo versus live, 4-digit versus 5-digit pricing, or a specific broker timezone if the logic depends on it. That gives enough context without leaking sensitive data.
If the project uses file-based state or terminal-specific paths, describe them at a high level. Mention whether the EA expects common folders, local data storage, or a particular terminal profile. The goal is reproducibility, not disclosure. A concise environment note helps the next developer reproduce behavior while keeping credentials private.
A hypothetical README entry for a session filter
Consider a hypothetical README line for a session filter: “Trades only during London and New York overlap; uses broker server time; ignores the first 5 minutes after session open.” That single sentence gives more value than a vague label like “session control.” It tells the reader the logic, the time basis, and the warm-up rule.
A better entry can also mention what happens outside the window. For example, the README could say the EA closes no trades automatically and only blocks new entries after cutoff. That distinction matters because session filters often control entries, exits, or both. The reader should not have to inspect the code to find that out.
If the filter depends on daylight changes, note that too. A time window that tracks local market hours may shift with broker server time, and a tester session may not match live behavior exactly. Therefore, a good README example states the rule plainly and marks any calendar-related assumption instead of treating it as obvious.
State known limitations and unfinished work
Every handoff should say what the project cannot do yet. If the EA lacks money management, partial closes, or multi-symbol support, the README should name those gaps. That helps the next developer prioritize work instead of rediscovering missing features during testing. It also lowers the risk of treating an unfinished module as production-ready.
Limitations should include test caveats. The standard MT4 tester uses modeled ticks, not automatically real recorded ticks, and its history begins with Bid prices. Ask is modeled from a selected spread, with the current spread at the start used as the default. Therefore, the README should warn that backtest output is not a promise of live behavior.
If the code relies on features that do not run in the tester, state that directly. WebRequest and some external communication functions do not execute there, and simulated TimeLocal, TimeCurrent, and TimeGMT coincide. That means test logic may differ from live logic. A clear limitation note prevents misplaced confidence and supports better review.
Keep the document short enough to maintain
A README fails when it becomes a novel. The best version is short enough that the next developer will actually read it, but complete enough that they can work from it. Aim for a page or close to it. If the document grows into a second manual, separate the essentials from the optional notes.
Use a stable structure so updates stay easy. For example, keep the same order: purpose, version, dependencies, inputs, environment, limitations, and handoff notes. That consistency helps later maintainers find information quickly. It also makes it easier to see when a new change needs a README update.
This discipline matters because MT4 projects change in small ways. A spread assumption may shift, a custom indicator may gain a buffer, or a new input may change the signal. A short, maintained README is more reliable than a long one that nobody revisits. Concision is not minimalism here. It is a maintenance strategy.
Treat the README as part of the handoff
A README should travel with the source, not sit beside it as an afterthought. During handoff, it tells the next developer what to trust, what to verify, and what to leave alone until they understand the setup. That is why the document belongs in the same package as the MQ4 and the matching EX4, not in a separate memory trail.
This is also where good project discipline shows up. If a handoff mentions a related guide, such as buying an mt4 robot, the point should be to clarify deliverables and version records, not to encourage shortcuts. Likewise, when version labels become confusing, a reference like mt4 ea version control can help the team avoid mix-ups without burying the code under process noise.
A complete handoff does not need a large archive of notes. It needs a clear, factual summary that another developer can act on immediately. When the README captures purpose, revision, dependencies, inputs, environment, and known limits, it becomes part of the engineering record. That is the kind of document a future maintainer will thank you for.
