Trading robots: how automated trading works
A trading robot is a program that sends orders to a broker following rules defined in advance, without a manual decision for each trade. On MetaTrader, these programs are called expert advisors (EAs). The general technical term is algorithmic trading, or automated trading. The robot does not "predict the future": it executes rules, and rules can fail.


How a serious platform is organized
The most transparent model is that of a technology company that licenses the software without touching your money. It does not manage third-party funds and does not recommend assets. The client operates its own account.
- Licensed software: the company provides the tool and technical support; it does not manage the account.
- Money in the client's account, at an authorized broker. The robot only sends orders and the client can revoke access.
- Connection to the broker through platforms such as MetaTrader 5 or via FIX API (the standard protocol for sending orders between systems).
- Rules set before trading, with a clear economic rationale: trend, mean reversion, carry (gains from interest rate differentials between currencies), relative value and seasonality.
- Several strategies and markets combined, so as not to depend on a single idea.
- Development in stages: hypothesis, data, testing, out-of-sample validation (data not used in building the model) and monitored live trading.
Backtest, demo and live account: three types of result
A backtest is a simulation of the rule on historical data. Demo means trading with fictitious money. Live is the account with real money. A serious platform labels every figure as live, demo or backtest and states the period, the asset and the maximum loss (drawdown, the largest fall in capital from a peak to the following trough). Illustrative example: in a US$ 10,000 account, a 20% drawdown means a temporary fall of US$ 2,000. The CFTC warns that hypothetical backtests, the omission of costs and spreads and the refusal of independent verification are warning signs.[1]
Layered risk management
- Position size adjusted to volatility: the more the market moves, the smaller the position.
- Limits per market and per portfolio, so that no single asset concentrates the risk.
- Controls that reduce and then halt trading after losses.
- Blocking of orders when price data are unreliable.
- An emergency stop button, in levels.
These layers measure and control risk, but do not eliminate it. Leverage magnifies losses, including with robots.
What Brazilian regulation requires
CVM Resolution 19/2021 defines securities advisory as individual, professional and independent investment recommendations, and requires registration with the CVM. When advice is provided by an algorithm, the same rules apply and the code must be available to the CVM (art. 17). The advisor may not guarantee returns (art. 18).[2] Managing third-party portfolios, deciding and executing on the client's behalf, is portfolio management and requires registration as a manager under CVM Resolution 21/2021.[3]
The CVM looks at the substance of the activity. Software that merely executes the client's own rules is different from a service that sends signals or recommends settings by investor profile. This classification should be validated with a capital markets lawyer.
Questions to ask before signing up
- Who is the company (CNPJ registration number, address) and who is responsible for it?
- Where is the money held and who can move it?
- How is the price charged, and is there any fee linked to performance?
- Are the results backed by broker statements or independent verification?
Frequently asked questions
Does a trading robot guarantee a profit?
No. No robot guarantees results, and the CVM rule prohibits advisors from guaranteeing returns.[2]
Where is the money held?
On a serious platform, in the client's own account, at an authorized broker; the robot only sends orders.
Is a backtest proof of results?
No. It is a simulation on historical data and does not include all the costs and contingencies of a live account. The CFTC cites hypothetical backtests as a warning sign.[1]
Does a robot need to be registered with the CVM?
If it recommends investments on an individual basis, yes, as advisory. If it manages third-party funds, registration as a portfolio manager is required.[2][3]
Does AP Consulting offer its own robot?
No. This page is educational. AP Consulting helps clients assess platforms; any partnership is subject to prior legal review.
Sources
Informational content, not an investment recommendation. Automated and leveraged trading may result in losses, including of all capital. Past, simulated or demo results do not guarantee future results. Reviewed in November 2026 by Adriel Pereira, financial consultant at AP Consulting.