Why the Same MT5 EA Can Work on One Broker and Fail on Another

2 December 2026, 12:21
Waldemar Ryszard Banasiak
0
14

If you have developed or tested automated trading systems for long enough, you have probably encountered errors such as:

·   Invalid volume

·   Invalid stops

·   Volume limit reached

·   Modification failed

·   Market closed

Sometimes the trading logic is perfectly correct.

The problem is somewhere else.

Every symbol has its own trading rules.

Two brokers can both offer XAUUSD, but the underlying MetaTrader 5 specifications may be different.

They can use different:

·   contract sizes;

·   minimum and maximum lot sizes;

·   volume steps;

·   aggregate volume limits;

·   Tick Sizes;

·   Tick Values;

·   Stop Levels;

·   Freeze Levels;

·   filling modes;

·   margin requirements;

·   trading sessions.

The same issue becomes even more important when moving between completely different instruments such as:

EURUSD → XAUUSD → BTCUSD → USOIL

A position-sizing or pending-order calculation that works perfectly on Forex cannot simply assume that Gold, Bitcoin, or Oil follows the same contract rules.

This is one practical lesson I learned while developing and validating automated trading systems in different MT5 environments.

So I created a small utility to make these parameters immediately visible.

SOLID MT5 Symbol Inspector

SOLID MT5 Symbol Inspector is a free diagnostic tool for MetaTrader 5 that attaches to any chart and reads the broker's symbol specifications directly from MT5. It is read-only and thus will not interfere with your trades.

Its only purpose is to answer a simple question:

What does my broker actually allow me to do with this instrument?

The Inspector has a panel divided into a number of practical sections and shows:

Contract & Market

The Inspector displays:

·   Digits and Point size;

·   Contract Size;

·   Tick Size and Tick Value;

·   current Bid and Ask;

·   current spread;

·   Trade Mode;

·   supported Filling Mode;

·   Hedging or Netting account type;

·   current trading-session status;

·   today's broker trading sessions.

These values are particularly useful when comparing the same instrument between brokers.

For example, a 1.00-lot position in XAUUSD should not automatically be assumed to represent identical exposure at every broker.

Volume & Order Restrictions

The Inspector also displays:

·   Minimum Volume;

·   Maximum Volume;

·   Volume Step;

·   Volume Limit;

·   Stops Level;

·   Freeze Level.

These values explain many common EA errors.

Consider a simple example.

An algorithm calculates:

1.96 lots

But the broker allows volumes only in steps of:

0.10 lot

The request is invalid.

Valid values would include:

1.80, 1.90, 2.00…

The Inspector therefore also calculates the nearest valid volume rounded down, which in this example would be:

1.90 lots

Rounding down is deliberate because automatically increasing the volume could increase the intended trading risk.

Stops Level and Freeze Level are not the same thing.

This distinction is particularly useful for EA developers.

Stops Level can restrict how close an order, Stop Loss, or Take Profit can be placed to the current market.

Freeze Level can prevent an existing order or position from being modified or deleted when price moves too close to it.

This explains a situation that can otherwise be confusing:

A pending order was valid when it was created, but MT5 later refuses to modify or delete it.

The order may have entered the broker's Freeze Level.

Built-in risk calculator

The Inspector includes a simple position-size calculator.

The user defines:

·   account risk percentage;

·   planned Stop Loss distance.

The utility then uses:

·   account equity;

·   Tick Size;

·   Tick Value;

·   broker Volume Step;

·   permitted minimum and maximum volumes

to estimate a broker-valid lot size.

For example:

·   Account equity: $10,000

·   Risk: 1%

·   Risk budget: $100

The final calculated volume depends on the instrument and Stop-Loss distance, so don't blindly use the same lot sizes across Forex, Gold, Crypto, and Oil.

·   Margin estimate

The panel also displays an estimated margin requirement using MetaTrader's own margin calculation.

One important distinction is that margin is not risk. Leverage may allow a position to be opened with relatively little margin while the potential loss to the Stop Loss remains much larger.

The Inspector displays both concepts separately.

·   Pending-order check

A small pending-order diagnostic is also included.

Enter a proposed Buy-side or Sell-side pending price and the Inspector compares the distance with the broker's current restrictions.

The result is shown as:

VALID DISTANCE

or:

TOO CLOSE TO MARKET

This can be useful when debugging automated pending-order strategies.

Trading-session information

A chart can continue showing prices while the symbol is temporarily unavailable for trading.

The Inspector therefore reports whether the broker's trading session is currently:

OPEN

or:

CLOSED

and displays the reported trading-session windows for the current day.

This is particularly useful for CFD instruments with daily rollover breaks.

Installation instructions:

1.   Copy the indicator into the MT5 MQL5\Indicators folder.

2.   Compile the source in MetaEditor if required.

3.   Refresh the Indicators section in the MT5 Navigator.

4.   Attach SOLID MT5 Symbol Inspector to any chart.

The panel appears in the bottom-right corner.

Use:

UP / DN

to scroll through the information.

Press:

X

to remove the Inspector from the chart.

No Algo Trading permission is required because the utility performs no trading operations.

Why I built it

My main interest is algorithmic trading, and while developing automated strategies, I repeatedly encountered situations where the trading logic was correct, but the execution environment imposed additional limitations.

Volume Step, Volume Limit, Stop Levels, Freeze Levels, filling mode, and trading-session restrictions are easy to overlook until an order fails.

The Symbol Inspector brings the most useful information together in one place.

It is deliberately simple.

No signals.

No predictions.

No strategy.

Simply practical information about the instrument and the broker environment in which the trading algorithm has to operate.

I am making SOLID MT5 Symbol Inspector available free of charge because I believe it can help both traders and EA developers.

A detailed PDF manual is attached to this post explaining installation, every panel field, the risk calculator, and practical troubleshooting examples.

 

SOLID MT5 Symbol Inspector

Know the contract. Understand the restrictions. Control the risk.

The utility is provided for diagnostic and educational purposes. Broker specifications can change, and the displayed information does not guarantee that a specific trading request will be accepted. Always verify important trading conditions with your broker.