Join our fan page
- Views:
- 82
- Rating:
- Published:
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

RealCost XAU Session Cost Snapshot MT5 is a small open-source MetaTrader 5 script for checking the current chart symbol before trusting a backtest.
It is useful for XAUUSD, GOLD, and other symbols where broker-specific contract settings can materially affect a short-term EA test.
The script prints a compact report and can write a local CSV key/value file with:
- bid and ask
- current spread in points
- digits and point size
- tick size and tick value
- contract size
- minimum, maximum, and step lot
- stop level and freeze level
- long and short swap
- trade mode
- filling mode
- order mode
- profit and margin currencies
- account balance, equity, currency, and leverage
Why this is useful
XAUUSD and GOLD symbols can differ between brokers. The symbol name, contract size, tick value, volume step, stop level, freeze level, spread, commission assumptions, and server time can all change the meaning of a Strategy Tester result.
Before comparing an EA result across brokers, it is useful to record the exact symbol settings.
Suggested workflow
- Open the broker's XAUUSD or GOLD chart.
- Run the script.
- Save the log or CSV output.
- Compare the values with the symbol used in your Strategy Tester report.
- Use realistic spread, commission, leverage, and server-time assumptions before trusting the final test.
Boundary
This is not a trading robot. It does not open trades, modify orders, close positions, use DLLs, use WebRequest, or provide buy/sell signals.
The script records a snapshot only. It does not measure slippage or future spread behavior. For spread distribution over time, use a spread logger and compare the CSV rows across brokers or sessions.
Profit Concentration Analyzer
A native MQL5 script that measures how concentrated a strategy's profit is — whether the edge is broad or rests on a few lucky trades. It reads a per-trade CSV (Date,Profit) and reports the share of net profit from the largest trades, the Gini coefficient of the winners, a concentration profile, a survival test that removes the best few trades and recomputes net profit and profit factor, and the largest single day versus a configurable consistency limit, combined into a concentration-and-consistency score (A+ to F) with recommendations. If no file is found it generates a sample set, so it runs out of the box. No external libraries, no Python, no AI. The helper ExportTrades.mq5 writes the file from your trade history.
Drawdown DNA Analyzer
A native MQL5 script that analyzes the structure of an account's drawdowns, not just the single "maximum drawdown" figure. It reads a daily equity curve (Date,DailyPnL CSV), rebuilds the underwater curve, and splits it into individual drawdown episodes with their depth, duration and recovery time. It then reports the Ulcer Index, Pain Index, Recovery Factor and time spent underwater, and combines them into a single resilience score (A+ to F) with recommendations, printed in the Experts tab. No external libraries; if no file is found it generates a sample curve so it runs out of the box.
Accelerator Oscillator (AC)
The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.
MACD Signals
Indicator edition for new platform.