Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Scripts

MT5 Broker Environment Report - script for MetaTrader 5

Arnold Holm
Arnold Holm
I develop production-ready MQL4/MQL5 Expert Advisors, indicators, dashboards and trade-management tools from explicit trading rules. I also convert authorized TradingView/Pine Script logic to MetaTrader 5 and turn rough ideas into testable technical specifications.
Views:
113
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

MT5 Broker Environment Report is a small diagnostic script for MetaTrader 5. It prints a structured snapshot of the current terminal, account mode, symbol specification and trading environment to the Experts log and, optionally, to a text file. The report helps compare a working and a failing setup without exposing trading-account activity.

Purpose

Broker and symbol specifications are not identical. Differences in symbol suffixes, volume steps, stop levels, filling policies, account modes or terminal permissions can make the same Expert Advisor behave differently. This script records those facts in a repeatable format for bug reports and development briefs.

How to use

  1. Copy SCA_BrokerEnvironmentReport.mq5 to MQL5\Scripts.
  2. Compile the file in MetaEditor.
  3. Attach the script to a chart and open the Experts tab.
  4. Review the report and copy only the fields you want to share.

Inputs

  • InpWriteTextFile — save the report to the terminal Common Files directory.
  • InpPrintToExperts — print the report in the Experts log.
  • InpFilePrefix — set the prefix used for the generated text filename.

Reported fields

The output includes the terminal and MQL5 builds, account margin mode, leverage and deposit currency, server time, current symbol identity, digits, point and tick sizes, contract size, volume limits, trade and order modes, stop and freeze levels, supported filling and expiration modes, tick values, spread and selected terminal permissions.

Privacy and safety

The script intentionally excludes the account login, account holder name, balance, equity, open positions, pending orders, trade history and credentials. It is read-only and does not open, modify or close trades. Review every report before sharing it. The values are diagnostic facts, not trading signals and not financial advice.

Example output

MT5 Broker Environment Report example output

License

The source is released under the MIT License. Example values in the screenshot are illustrative.

Trend Regime Inspector for MetaTrader 5 Trend Regime Inspector for MetaTrader 5

Open-source indicator combining moving-average direction, ADX and Kaufman's Efficiency Ratio into a transparent trend-condition score. Informational only; no trade execution.

Stochastic Reversal Signal Stochastic Reversal Signal

A non-repainting Stochastic-based indicator that generates buy and sell signals based on extreme zone crossovers, featuring an alternating signal filter and bar-close alerts.

MT5 Order Preflight - Read-Only Validation MT5 Order Preflight - Read-Only Validation

Checks a hypothetical MT5 market or pending order against current symbol, volume, tick-size, stop-distance and filling rules without sending a trade.

Risk Position Size Calculator Risk Position Size Calculator

Set your risk %, drag the stop, and get the exact lot size priced in your account currency — margin and target included. Calculates only, never trades.