Electives Optional

Trading robots: what the win rate hides

Lesson 3 of 8 ~9 min read

Listen to the lesson

Audio played live by your browser, with no audio file or extra download.

Preparing your device’s voice...
Ready to read the lesson aloud.

A trading robot is a program that opens and closes orders on the trading platform according to rules written into it, without you pressing each order yourself. The Arabic page of one of the platforms describes these programs as “fully automated trading systems known as Expert Advisors or trading robots” (our translation), and that platform’s name for them is Expert Advisors. A robot’s rules may be anything; this lesson is about the figures it is presented with, the first of which is the win rate.

How is a high win rate made?

Hypothetical example: a robot enters at a random moment, then closes the position with a take-profit order at a profit of 10 pips, or with a stop-loss order at a loss of 100 pips; the pip here is a unit of price movement. The price in the example moves one pip at a time, up or down with the same probability, so it has no direction. On a price like this, the position reaches the take-profit level before the stop-loss level on 100 ÷ 110 = 90.9% of occasions, which is a known arithmetical result for this kind of movement.

So the win rate is 90.9%, and the expectancy before costs is zero: in every 110 trades there are, on average, 100 winning trades of 10 pips, that is 1,000 pips, and 10 losing trades of 100 pips, that is 1,000 pips. Then add a cost of two pips a trade, which is a hypothetical example of a spread of two pips. The expectancy becomes a loss of two pips on every trade, and the robot reaches break-even only if it wins 102 trades out of every 110, that is 92.7%. So the rate that the advertisement highlights is not enough here even to cover the cost.

Hypothetical example
A robot that exits at a profit of 10 pips or a loss of 100 pips, on a price with no direction
Win rate
What the advertisement highlights
90.9%
Average profit
Per winning trade
10 pips
Average loss
Per losing trade
100 pips
Expectancy per trade
Before cost, then after a cost of two pips
Zero, then a loss of two pips
The rate is high, and the result is not.

Four figures for the same robot: the first alone says nothing about the result

So the robot did not find the rate in the market; the placement of the exit made it: a nearby take-profit and a distant stop-loss. That is why expectancy is not calculated from the rate alone, but from it together with the average profit and the average loss, as the lesson “R-multiples and expectancy” in the “Risk and psychology” level explains.

And what about a robot that does not close at a loss?

A rule that adds to the losing position instead of closing it keeps the win rate near its highest until the account’s funds run out. This is because each trade is either closed by the take-profit order, and so recorded as a winner, or stays open, or is closed when nothing is left in the account to carry it; and the record counts only the first of these until the last comes. So the high rate and the rare, large loss are two faces of one design.

Why does the best test look better than it is?

Another hypothetical example: 500 robots, each with a take-profit level from among five levels and a stop-loss level from among five, and a random entry of its own; each of them is tested on 200 trades on a price with no direction, at a cost of two pips a trade. Then the one with the best result in the test is presented, and it is then run on another 200 trades. In this hypothetical example it is assumed that the robot that is presented is the one with the best result in the test; and the lesson says nothing about how many times sellers do this.

In the version shown here, in which the random generator’s seed was fixed before its result was seen, the presented robot made 1,560 pips net after cost in its test, and 94.0% of its trades were winners, and this is a profit that is more than two standard errors away from zero. The standard error is a measure of how much the mean changes from one sample to another by chance alone. Then in the next 200 trades it lost 480 pips, and 88.0% of its trades were winners, and this result is not more than two standard errors away from zero.

Hypothetical example
The presented robot, the one with the best result among 500 robots in the test: net pips after cost
In the test, 200 trades: a profit of 1,560 pips, and 94.0% of trades were winners
 
After selection, 200 trades: a loss of 480 pips, and 88.0% of trades were winners
 
Expected on average after selection, which is the cost of 200 trades: a loss of 400 pips
 
The length of the bar is the size of the result, whether profit or loss. A simulation with a seed that was fixed before its result was seen, on a price with no direction, at a cost of two pips a trade.

After selection, the presented robot lost an amount close to the loss that the cost imposes on average

This version is not an exception. The same simulation was repeated with 400 other seeds: the presented robot’s profit in its test was more than two standard errors away from zero in 72.2% of them. After selection, the median value of its net result was a loss of 380 pips, close to the loss expected on average, 400 pips, which is the cost of 200 trades at two pips each, and its profit was more than two standard errors away from zero only in 3.0% of them. Its net result after selection came out above zero in a little more than a third of the cases, by chance. The presented robot’s result in the test of this version is lower than its results in about four fifths of the other seeds, so it was not chosen to impress; and its loss after selection is close to the middle. In 93% of the seeds the presented robot’s stop-loss was at 150 or 200 pips, and in 95% of them its take-profit was at 20 or 30 pips: the best test usually chose the farthest take-profit levels and the farthest stop-loss levels among the five options, that is, the design whose results spread further apart, so the best of them moves further from zero by chance; and its win rate is nevertheless high, because its stop-loss is much farther away than its take-profit.

The same pattern, on real reference rates for the euro against the dollar and with a rule chosen from among 499 variants, is the subject of the lesson “Testing an idea before risking money” in the “Reading the market” level.

What does the test itself leave out?

  • All the costs, including overnight financing (swap) for each night the position stays open.
  • Slippage: executing the order at a price other than the one requested, at entry or at exit.
  • Information that was not available at the moment of the decision: a rule that uses a price that no one knew when it had to decide.
  • Robots that are no longer presented: a list of what is presented today does not include what was withdrawn from it, so it shows only what remained.

What do the rules of some regulators require?

In the United States, a rule of the U.S. Commodity Futures Trading Commission (CFTC) prohibits any person from presenting the simulated performance of an account, a transaction or a series of transactions in commodity interests that belong to a commodity pool operator, a commodity trading advisor or one of their principals, unless it is accompanied by one of two statements: a statement set out in the rule itself, or a statement prescribed by a registered futures association. Among the sentences of the statement set out in the rule is: “Simulated or hypothetical trading programs in general are also subject to the fact that they are designed with the benefit of hindsight.” That is, these programs were designed while their designers knew in advance what had happened in the prices on which they were tested. The rule applies whether or not the operator or the advisor is exempt from registration. The current wording of this statement has been in force since 26 March 2007.

In the United Kingdom, a rule of the UK’s Financial Conduct Authority (FCA) requires a firm to meet conditions for any simulated past performance it presents in information and financial promotions that relate to what the rule calls “MiFID, equivalent third country or optional exemption business” and that are addressed to a retail client or a professional client, or are likely to reach one. Among these conditions is a prominent warning that “the figures refer to simulated past performance and that past performance is not a reliable indicator of future performance”. This is the FCA’s current rule as read on 4 October 2026, and before it the same condition was in a European text that the United Kingdom kept in its law until 22 October 2025.

The two rules apply only within their own scopes: the first to whoever presents the simulated performance of a commodity pool operator or a commodity trading advisor, and the second to a firm in its business that falls within that rule’s scope. So an advertisement that presents simulated results without such a statement is either outside both scopes, or does not comply with a rule that covers it; and in both cases you have learned something about the advertisement.

What you are not usually told

The win rate is set by the placement of the exit, and the robot does not discover it. A take-profit order at 10 pips and a stop-loss order at 100 make any entry win about nine times out of ten on a price with no direction, and then lose on average after costs; and the larger the ratio of the stop-loss distance to the take-profit distance, the higher the win rate.

A Gulf note

A robot offered to you together with a person who operates it on your account is no longer just a program: someone is now handling your money. The public register of the authority that licensed that person shows the activities that person is licensed for, and it is the place where you look, in the way that the lesson “Regulation in the Gulf: who licenses what” explains. This lesson does not decide whether an offer like this needs a licence.

What a robot’s advertisement shows, what it leaves out, and where you check
What the advertisement shows What it leaves out Where you check
The win rateThe average profit and the average lossAsk for the two figures, and calculate the expectancy from them
The result of a test on the pastThe number of variants tried before itAsk how many variants were tried
A chart of the account’s growthThe costs, slippage and overnight financingA real account statement, not a test
The word “verified”Whether the results are simulated or real tradingThe statement or warning that the rules require of those they cover

Summary

  • The win rate is set by the placement of the exit: a nearby take-profit and a distant stop-loss give a high rate and an expectancy no greater than zero before costs, on a price with no direction.
  • The best test out of many looks good partly because it was chosen, and in the hypothetical example its result after selection, at the median value, was close to the loss from the cost alone.
  • The rules of the CFTC and the FCA require, each within its own scope, a statement or a warning next to simulated performance.
  • Today: take any robot’s advertisement, and write down which of the four figures it gives: the average profit, the average loss, whether the costs are included, and how many variants were tried; then write down whether its results are simulated or real trading.
Warning

Leveraged trading in CFDs carries high risk, and you may lose the entire amount you deposited. This lesson is an educational explanation of the nature of the product, not a recommendation to trade and not investment advice.

The next optional lesson is about contracts for differences on stock market indices.