MQL5 Market: No trades on XAUUSD D1, but the same EX5 trades on MetaQuotes-Demo

Hello,

I am preparing Double Gold 1.07, an MT5 Expert Advisor designed for XAU/USD, for publication. The MQL5 Market automatic validation reported “there are no trading operations” on XAUUSD D1 (hedging). The report did not show the test dates, starting deposit, leverage, or the Expert Advisor journal. I cannot tell whether there were no signals or whether the EA stopped before submitting an order.

I ran the same EX5 on MetaQuotes-Demo, XAUUSD D1 (hedging), using real ticks for 5–6 October 2026, 1:100 leverage and a 0.01 lot size. The only tester setting I changed was the virtual deposit:

• USD 1,000: two SELL signals; both positions opened and closed.
• USD 30: the same signals on the same ticks. The entries required USD 41.34 and USD 41.39 in margin. The EA logged insufficient free margin and did not submit either order. The run finished with zero trades.

This reproduces the zero-trade symptom locally under a known condition. It does not establish that margin was the cause of the Market result.

1. How can a seller distinguish a run with no signals from a pre-trade margin block? Is there a supported way to obtain the parameters or agent journal for a specific validation run, or a recommended way to reproduce it locally?
2. Is there a supported path to publish an EA whose strategy is designed only for gold, without artificial validation trades, weakening the margin checks, or enabling untested trading on other symbols?

If you have resolved a similar case, I would appreciate hearing what you changed and what the validator reported. Thank you.

It is impossible to validate the EA which is design to trade on one symbol only - 

Forum on trading, automated trading systems and testing trading strategies

Market validation of a multi-symbol EA when BTCUSD is unavailable

Sergey Golubev, 2026.10.19 19:12

All available information are the following:

1. 

Rules of Using the Market Service - Product Testing : 
"Products must not contain deliberate operation restrictions or change their functionality depending on the type of account, account number, name of a trading server and other similar conditions under which they are used."

The EA should trade any symbol (means: EA must trade), but all the particularities should be described in the product description.
----------------

2. The checks a trading robot must pass before publication in the Market - the article

----------------

3. Solving Automatic Validation Problems Arising During Product Submission in MQL5 Market - blog post

================

It is all the information that I found about.


MetaQuotes does not expose the raw agent journal for failed Market checks, so reproducing the validator's edge cases locally in Strategy Tester is the cleanest way to separate zero signals from silent volume or margin skips.

On XAUUSD D1 specifically, two validator conditions usually trigger "no trading operations" even when a multi-month run on MetaQuotes-Demo trades normally: short 1-3 month test slices (only ~20-65 daily bars, which can starve long indicator warmups) and smaller test accounts ( 100 , 500 , or 1000 USD at 1:30 to 1:100 leverage, across both Hedging and Netting modes). Because D1 Gold stops are wide, dynamic risk-percent lot sizing frequently rounds below SYMBOL_VOLUME_MIN ( 0.01 ) and skips the trade instead of clamping to SYMBOL_VOLUME_MIN whenever OrderCalcMargin() still fits inside ACCOUNT_MARGIN_FREE .

To pinpoint the exact blocker locally, print three counters inside OnDeinit() (raw entry signals, skips below SYMBOL_VOLUME_MIN , and skips from OrderCalcMargin() or OrderCheck() ) while testing short 2-month D1 windows on low deposits and Netting mode.