TrueTestHonest results, on the record.

EA costs: spread, commission and swap

EA Trade TesterDemo labHow we testFor AI agents

Published · methods v2.5 · by TrueTest

Costs decide most backtests. In our own research, 86% of the failed tests whose reasons we listed had costs among the reasons, and our cost study found edges before costs rarely above +0.10 R a trade (340 tests). So the question for any EA is: what share of the stop does one round trip cost?

Test my EA with real costsSee a full example first

Drop your .mq5/.mq4 code, a Python bot or an MT5 report on the home page. The first read takes seconds and needs no sign-up; the lab verdict is free too. Only the detailed technical report is paid (the full PDF report is GBP 49). The price shown is the total price: no VAT is added. TrueTest is not VAT-registered in the UK. We read your code as text and never run it as given; an outside AI service drafts the rule card only if you tick the box (see Security). Not financial advice.

What makes up the cost of one trade?

How much does the hour change it?

Round trip in pips in our lab (median recorded spread at that server hour + slippage + commission + safety margin):

SymbolServer 10:00Server 00:00 (roll-over)Share of a 15-pip stop at 10:00 / 00:00
EURUSD1.171.570.08 R / 0.10 R
GBPJPY2.7511.950.18 R / 0.80 R

Server time is New York + 7 hours: usually UK time + 2 hours. A GBPJPY trade opened at the roll-over pays 4.3 times the cost of the same trade in the London morning.

Why test again with extra costs?

Your broker can be dearer than ours, and fills get worse when markets move. Our lab runs every trade again with the spread and the commission one and a half times as big, plus 1 pip more when the trade opens (gold 48 US cents an ounce), and any overnight fee you pay one and a half times as big. A result must stay profitable with these extra costs.

What about scalping EAs?

We tested 8,506 short-timeframe scalping settings and 48 published scalping bots with costs. Before costs the best settings made about 0.3 pip a trade; a EURUSD round trip cost about 1.1 pip in that search. All 48 bots lost money in our test once costs were included.

Related pages

More guides: MT5 Strategy Tester report checker · Free forex EA tester online · Is my EA martingale or grid? How to tell · How many backtests? Overfitting explained · TrueTest vs StrategyQuant, Forex Tester, MT5 · MQL5 / MQL4 EA code checker · Why live results are worse than the backtest · Does my EA repaint or look ahead? · Can a scalping EA make money after costs? · Does my EA make money every year? · Will my EA pass a prop-firm challenge? · What to check before you buy an EA

Questions people ask

My broker has zero commission. Is that cheaper?

Not always: zero-commission accounts usually have a wider spread. Compare the whole round trip in pips.

Does a backtest with a fixed spread show real costs?

Rarely. The spread changes through the day; a fixed spread hides how much the roll-over hours cost.

Can I work out my own costs?

Yes: the trading-cost calculator on our research page runs in your browser and sends nothing.

Are your costs the same as my broker's?

No. They are modelled on one broker's recorded spreads; your broker can be cheaper or dearer. That is why we also test with extra costs.