Your EA Has MQ4 Source, So Why Does It Still Need an Indicator?

Published Updated

Transparent robot beside a separate glowing component and chart screen

When traders recover an old EA, they often expect the MQ4 source to explain everything. That assumption breaks down quickly. An EA can compile cleanly and still depend on a separate custom indicator through iCustom. In that case, the robot reads indicator buffers at runtime, so the source file alone does not tell the full story.

This matters because indicator dependency shapes signal timing, buffer selection, and even whether the EA can run at all. A missing EX4, a changed input list, or a different bar-shift choice can alter the values the EA receives. Therefore, a careful review of the MT4 iCustom indicator dependency is not a side issue. It is part of understanding what the source really does, what it cannot do, and what a lawful handoff should include.

Editable source does not mean self-contained

MQ4 source gives you readable logic, but it does not guarantee a complete project. An EA may call iCustom and expect a companion indicator file in the same terminal environment. Therefore, the robot can compile from source while still failing at runtime if the indicator is absent or mismatched.

That distinction matters for source recovery work. The EA may show the call name, yet the underlying indicator logic remains separate. In practice, the indicator can provide trend values, arrows, zones, or numeric levels that the EA never calculates itself.

A developer reviewing a recovered project should first ask whether the EA truly owns every signal. If not, the source is only one piece of the system. For a broader background on recovery limitations, the guide linked with ex4 decompiler can help frame what a binary can and cannot reveal.

What iCustom does at a high level

iCustom asks a custom indicator for a value from one of its buffers. The EA passes the indicator name, parameters, buffer number, and bar shift. Therefore, the call is not just a name lookup. It is a request for a specific calculated value at a specific bar.

Because of that, the EA depends on the indicator’s structure as much as its filename. If the indicator has 2 buffers, buffer 0 and buffer 1 may mean very different things. Also, the bar shift determines whether the EA reads the current forming bar or a closed bar.

This makes iCustom useful, but also fragile. A simple rename does not solve a version mismatch. Instead, the EA and indicator must agree on the expected arguments and data layout. That is why dependency notes matter when the project leaves the original developer’s hands.

Inputs and indicator versions must agree

An iCustom call only works as intended when the input list matches the indicator version. If the indicator adds a parameter, removes one, or changes default behavior, the EA can still compile while reading the wrong configuration. However, compile success does not prove signal compatibility.

The risk increases when a project evolves over time. One indicator file may have been updated while the EA still expects the older parameter order. Also, a trader may replace a custom indicator with a newer build that keeps the same filename but changes internal logic. That creates hidden breakage.

When reviewing a handoff, compare the indicator inputs against the EA call in order. Check every type, default, and meaning. If the project uses a historical or repaint-prone signal, the note on mt4 indicator repainting is worth reading before anyone assumes a changed value is a coding error.

A buffer number needs a documented meaning

Buffer numbers are not self-explanatory. The EA may read buffer 0, but buffer 0 only has meaning if someone documented it. For example, it might hold buy arrows, while buffer 1 holds sell arrows. Without that map, the EA’s logic becomes guesswork.

This issue often appears in recovered projects. The code shows iCustom with a buffer index, yet the original indicator source is missing or incomplete. Therefore, the reviewer cannot know whether the EA expects a price, a flag, or an empty value when no signal exists.

A proper project note should name each buffer and describe what non-empty values mean. It should also state whether the buffer stores signals, levels, or calculations. That documentation reduces confusion later, especially when another developer must verify whether the EA and indicator still agree.

Open-bar and closed-bar reads are not the same

The bar shift used in iCustom changes the interpretation of the result. A read from shift 0 points to the current bar, which is still forming. A read from shift 1 points to the last closed bar. Therefore, the EA can behave differently even when the indicator itself does not change.

This is important because many indicators update during the live bar. A value on the open bar may appear, disappear, or move before the candle closes. However, a closed-bar read gives a more stable reference for decision-making. The choice depends on the strategy design, not on convenience.

Recovered source often hides this detail in a single number. That is risky, because the same indicator may support both styles. So the handoff should state which bar the EA reads and why. Otherwise, another developer may assume the wrong signal timing and misread the strategy entirely.

A hypothetical entry rule with a missing dependency

Imagine a hypothetical EA that enters buy trades when iCustom returns 1 from buffer 0. The source compiles, and the logic looks clear. However, the indicator file is missing, so no one can confirm whether 1 means a fresh arrow, a trend state, or a historical marker.

Now imagine the indicator was later replaced with a renamed version. The new build still outputs something to buffer 0, but its internal filter changed. The EA now receives different values, yet the code has not changed. Therefore, the entry rule looks identical while the actual behavior shifts.

This is why missing dependencies can be more dangerous than visible code bugs. The EA may appear understandable from MQ4 alone. Still, the real decision path includes the indicator’s hidden assumptions. A lawful review should document that dependency instead of pretending the source tells the whole story.

What to ask for when the indicator is absent

If the custom indicator is missing, ask for the exact file version that the EA was built against. Also ask for its input list, buffer map, and any notes on bar shift or repaint behavior. Those items often matter more than the filename itself.

Next, request the indicator source if it exists lawfully. If only compiled files are available, note that the EA can still depend on them at runtime. However, possession of an EX4 does not prove ownership or authorization to modify it. The handoff should stay within the rights granted by contract and law.

When the source is unavailable, ask for a concise behavior description instead of a guess. A practical mq4 project readme can capture the signal role, required files, and expected settings. That is often enough for another developer to assess integration without making unsupported assumptions.

Do not replace an unknown indicator by name alone

A familiar indicator name can be misleading. Two files with the same name may use different buffers, different defaults, or different calculation logic. Therefore, swapping in a visually similar indicator is not a reliable fix. The EA may compile, but the signal semantics can still be wrong.

This is especially true when a project has circulated through multiple hands. Someone may have renamed files to match old calls, or reused a common name for a custom variant. Also, indicators that repaint can show very different behavior depending on shift and update rules, so naming alone gives little protection.

A safer approach is to match function, not label. Confirm the exact buffer meaning, parameter order, and bar timing before any replacement. For readers who want a deeper conceptual refresher, the linked guide about mt4 indicator repainting explains why visible output can move after the fact.

How dependency notes improve a lawful source-recovery brief

A source-recovery brief should describe more than file names. It should state which EA functions call iCustom, which indicator files are required, and what each parameter means. That helps a developer understand the project without overreaching into unauthorized reconstruction.

Good notes also reduce ambiguity around simulation and testing. For example, MT4 strategy testing does not run WebRequest and similar external calls, and simulated time does not match live time behavior exactly. Therefore, dependency notes should distinguish strategy logic from environment-specific behavior.

Clear notes also help when an EA uses indicator output in several places. One buffer may control entries, while another controls exits or filters. If the brief records those roles, the next developer can trace the project more accurately. That is much better than handing over source and hoping the rest becomes obvious.

The complete-project question to ask before handoff

Before any handoff, ask one direct question: is this a complete project or only a source file with external dependencies? That question forces everyone to identify missing indicators, data files, and settings before the project changes hands.

Also ask whether the EA expects a specific symbol, timeframe, or history range. MT4 testing separates these settings, and an indicator may also depend on the chosen chart context. So the project description should list the intended environment, not just the compiled files.

Finally, ask for a complete inventory: EA source, indicator source or binary, buffer definitions, input defaults, and any run notes. The goal is not to over-document everything. Instead, it is to make the dependency chain explicit. That single step prevents many misunderstandings that would otherwise look like code errors later on.