Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Metatrader 5 Expert Advisor | TrueCostReport | Free Download

Discover expert developed MetaTrader tools that can complement professional solutions.

Image for TrueCostReport


Cost is the one input to a trading system that isknowable exactly, and it is almost always estimated wrongly — always in the direction that flatters the strategy.

Capture price channel breakouts with the Price Channel Expert Advisor. Precise entries and exits. Explore now.

This Expert Advisor measures what one round trip actually costs onyouryour

It isstrictly read-only. It never opens, closes or modifies a position.

The measurement it exists for

The usual source of a spread figure is thespreadper-bar summary, not the quote at any instant.

Measured on XAUUSD: the live spread was20 points across 60 consecutive readings6. A factor of 3.3.

Anything built on that field inherits the error:

  • A spread filter set to "skip the entry if spread > 15"never fires, because the number it reads is a third of the truth. It lets through precisely the moments it exists to block.
  • A backtest charging that spread reports a system cheaper to run than the real one, and the gap grows with the number of trades — so it flatters high-frequency strategies most.

The half that most simulators do not charge at all

Swap. It isasymmetric−0.5842 long and +0.4098 short, with Wednesday tripled.

On a system that holds positions overnight this is not a detail. A basket of four legs each way costs roughly 1.9 a night simply to exist, which over a year exceeds most of the edges people are trying to capture. MT5's own Strategy Tester charges swap; a great many custom simulators do not, and their results are wrong by the whole of it.

Three things it does that a quick version would get wrong

  • It counts distinct quotes, not just ticks.
  • It refuses to measure a closed market.TimeCurrent()TimeTradeServer()
  • Commission comes from your deals, not from a symbol property.account

Inputs

Input Meaning
InpSampleSeconds How long to sample the live spread. Longer is better on a quiet symbol.
InpLots Lot size to price the cost for.
InpBarsToCompare How many M1 bars to take the bar-field median from.
InpDealDays Days of your own deals to read the commission from.

On the swap mode.not converted

What it does not do

It does not model slippage, which cannot be measured without trading, and it says nothing about whether a strategy is viable. It measures the toll. What you carry over it is your business.

Thanks for reading. Discover premium MetaTrader solutions at RobotFX.

77015

Best MetaTrader Indicators + Profitable Expert Advisors