Header Ads

MT4 EA Not Trading? A Step-by-Step Diagnostic Guide

When an MT4 Expert Advisor is not trading, first identify which stage has stopped: the program has not started, it is running but has no eligible signal, or it tried to trade and the request failed. Those situations can look identical when you only count open positions. They require different fixes.

Begin on a demo account, preserve the current settings and collect evidence before changing anything. Repeatedly restarting the terminal or relaxing every filter can hide the original problem and introduce a second one. The diagnostic process below keeps the EA's strategy intact while you investigate its operating state.

Three-stage diagnostic diagram for an EA: program running, signal eligible, order accepted.
Diagnose the failed stage before changing the strategy. Editorial diagram; not a platform screenshot.
In this guide

Establish the exact environment

Record the MT4 installation, broker server, account type, symbol including any suffix, chart timeframe and EA version. A working EURUSD example does not prove that the same configuration will work on a differently named symbol. An EA may deliberately restrict the account, instrument, operating hours or number of positions it manages.

Also identify the machine that is meant to run it. The Android app cannot host an EA; a phone displaying the account is not evidence that the desktop program is active. See the desktop, VPS and mobile monitoring guide for that distinction. If the intended execution host is remote, inspect that host rather than only the local terminal.

Save the original input file and note the last time the EA behaved as expected. Changes since then are useful leads: a new account login, symbol, timeframe, terminal update, EA build or hosting migration. They are not proof of the cause, so investigate them one at a time.

Use three diagnostic gates

GateEvidence to obtainNext branch
Is the program running?Initialization record, attached EA identity and fresh diagnostic outputResolve startup or loading problems first
Did it identify an eligible signal?Timestamped rule evaluation and filter outcomesExplain the rejected condition without changing the strategy
Did an order request succeed?Request result, error code and account order recordReconcile execution or account constraints

Use the Experts and Journal records together where available. A log belongs to a particular terminal, account context and time period. Check those details before treating an old error as today's failure. An empty log is not proof that the strategy is fine: the EA may not log the relevant decisions at all.

If the source is available, request a diagnostic build that prints the reason for each skip. If it is a closed-source product, ask its developer what evidence distinguishes initialization, no signal, filtered signal and order failure. A screenshot of a smiling icon is less useful than a record showing which rule was evaluated at a specific time.

Gate 1: check loading and permissions without enabling everything

Confirm that the intended EA appears in the desktop terminal and is attached to the correct chart. Inspect initialization errors and missing dependencies. A source file accepted by a compiler is not proof that the expected compiled version is the one attached. Record a version identifier and use the same build when reproducing the problem.

MetaQuotes' EA settings documentation explains that automated-trading permission can be disabled while analytical operation continues. It also documents protective options that disable trading after account, profile or chart changes. Inspect both the terminal-level control and the EA's applicable settings instead of inferring permission from chart activity.

Do not solve a loading problem by indiscriminately allowing DLL imports or adding arbitrary websites to a permission list. Those capabilities are separate from basic trading permission. Verify the dependency with a trusted developer, and leave unnecessary access disabled. A product demanding unexplained security changes needs scrutiny, not a faster installation.

For MetaTrader integrated virtual hosting, inspect the hosted state and migration log. Its migration rules differ from a normal Windows VPS: DLL calls are prohibited and synchronization is local-to-hosted. A configuration changed on the laptop is not automatically proof that the hosted instance now uses it.

Gate 2: establish why the rules allow no trade

A functioning EA may wait for a completed candle, a trading window, a particular spread or a signal that occurs infrequently. The absence of a position is then an expected result. The useful question is not “How do I make it open a trade?” but “Can I reproduce its decision from the inputs available at that time?”

Ask for the evaluated symbol, decision timestamp, candle timestamps, signal values and filter results. MetaQuotes' timeseries guidance distinguishes the unfinished current bar from completed bars. A crossing visible inside the current candle may disappear before the rule permits an entry.

Possible reason for a skipSpecific check
Session filterCompare the documented trading window with server time on that date
Spread filterCheck units: platform points and conventional pips may differ
Position limitLook for owned open and pending orders, not only the visible chart
New-bar ruleConfirm that a new decision bar has actually arrived
Missing historyVerify required data exists for every symbol and timeframe used
News or licensing filterObtain the explicit rejection reason and data timestamp

Here is a fictional diagnostic record, not an actual MT4 log:

2026-11-30 09:05:00  EA-DEMO-03  GBPUSD M5
new_bar=true  completed_signal=true
spread_points=18  maximum_spread_points=15
decision=SKIP  reason=SPREAD_FILTER
order_request_sent=false

Under the stated rule, this EA is operating correctly. Increasing its maximum spread merely to obtain a trade changes the experiment. First verify that 18 and 15 are genuinely measured in the same units; then decide separately whether a different filter deserves testing. The server-time guide helps investigate session mismatches without guessing an offset.

Gate 3: read the request result, not only the chart

An eligible signal does not guarantee an accepted order. Check whether a request was actually sent and inspect its returned result. The MQL4 trade-server return-code reference gives the official meanings of the codes below. The suggested checks are a diagnostic workflow, not a guarantee that each code has only one cause.

CodeMeaningFirst evidence to inspect
130Invalid stopsSubmitted prices, price side and the applicable stop restrictions
131Invalid trade volumeRequested lots against minimum, maximum and volume step
132Market closedThe actual symbol's trading session
133Trading disabledAccount and instrument permissions
134Insufficient moneyRequired margin and free margin at the request time
136 / 138Off quotes / requoteConnection, quote freshness and execution result
146Trade context busyConcurrent requests and coordination between programs
128Trade timeoutActual order state before any retry

Do not automatically retry an uncertain request. A timeout does not justify assuming that nothing happened. Reconcile open orders and history first; otherwise a retry may duplicate an order that was accepted but not yet confirmed to the program. The EA should make that distinction explicitly.

Invalid stops deserve a careful unit check. MetaQuotes' symbol-property reference notes that a zero reported stop level can coexist with dynamic restrictions. It is not permission to assume any stop distance will be accepted. Review the submitted order's direction and price sides as well as decimal precision.

For a hypothetical five-decimal quote, a point of 0.00001 makes 200 points equal to 0.00200, or 20 conventional pips when the pip is 0.0001. Sending 20 points instead of 20 pips changes the requested distance tenfold. Correct the unit conversion; do not simply remove the stop.

When an EA works in the tester but not in demo

Compare the environments before blaming the market. The tester and the connected demo account may differ in symbol settings, spreads, available history, timestamps, account restrictions and dependencies. Preserve the exact tester inputs rather than trying to recreate them from memory.

A network-dependent EA needs special attention. MetaQuotes documents limitations of programs in the MT4 Strategy Tester, including unavailable WebRequest execution. A test using a substitute response cannot establish that the real network path will operate correctly. Check the actual dependency and its error handling in a controlled demo environment.

The same principle applies to licensing. A demo restriction, expiry or external authorization failure may prevent execution without proving anything about signal logic. Obtain a clear documented explanation rather than searching for ways around the product's access controls.

Send support a useful, sanitized evidence packet

A developer can investigate a reproducible event more effectively than “the robot does nothing.” Include the EA version, terminal build, symbol, timeframe, relevant settings and a short log interval around the decision. Remove passwords, tokens, account numbers and personal details before sharing it.

Expected behaviour:
Observed behaviour:
Execution host and demo-account context:
EA version / terminal build / symbol / timeframe:
Decision timestamp and time zone:
Last successful example, if any:
Recent configuration changes:
Signal and filter evidence:
Order request result and sanitized log excerpt:
One change tested and its observed effect:

Ask support to distinguish a confirmed error from an assumption. For an AI-generated EA, request a fix tied to a failing test case, then repeat that test and the previously passing cases. Our EA development workflow provides a structure for that review.

Know when to stop troubleshooting

Pause further entries when order ownership is unclear, an uncertain request cannot be reconciled, the EA repeatedly fails to apply its specified protection, or the developer cannot explain its dependencies. Continue diagnosis in an isolated demo arrangement instead of changing a live account until something trades.

The completion condition is explainable behaviour: a known valid signal reaches the intended action, an invalid signal is rejected for the expected reason, and failures are reported without uncontrolled retries. Profitability is a different evaluation. After correcting an operational issue, continue with the forward-testing guide, rather than treating the first opened position as success.

Sources and scope

MetaQuotes' EA settings, virtual-hosting migration, timeseries, trade return codes, symbol properties and testing documentation were checked on 13 October 2026. All log examples and diagnostic worksheets here are fictional teaching material. The cover is an editorial diagnostic diagram, not a screenshot or proof that a particular EA was repaired.

No comments

Powered by Blogger.