Trading Bots
A trading bot is software that places trades automatically according to programmed rules, often through an exchange's or broker's API. It executes without emotion or fatigue, but it still needs a real edge, and bots sold with promised returns are a common scam.
A trading bot turns a set of trading rules into code and lets the code send the orders. That can remove hesitation and fatigue, and it lets one person watch many markets at once. It does not create profit on its own: a bot only automates a strategy, good or bad. Regulators also warn that "AI bots" with guaranteed returns are a favourite disguise for fraud. This entry explains how bots work, what they can and cannot do, and how to judge one.
- Category
- Trading Strategies
- Reading time
- 7 min
- Also called
- Trading bot, Crypto trading bot, Automated trading bot
- Updated
Trading bots in plain words
A bot is a program that watches prices and sends orders when its rules say so. A simple one might buy when a short moving average crosses above a long one and sell on the reverse cross. A more complex one might trade many markets, size positions and manage stops on its own. See Algorithmic Trading.
Bots connect to an account in one of two main ways: through an API, often with an API Key that grants trading rights, or through a trading platform that runs scripts, such as MetaTrader 4 and 5. Some services go further and trade your account for you, which FINRA calls auto-trading: a third party sends trade instructions straight into your brokerage account.1
The important limit is that software cannot see the future. The CFTC's advisory on AI bots says plainly that AI cannot predict future or sudden market changes.2
How a trading bot works, step by step
Define the rules
Entry, exit, position size and stop rules are written down precisely enough to code.
Test on history
The rules are run on past data to see how they would have behaved. See Backtesting.
Connect to an account
The bot gets trading access, usually through an API key or a platform script.
Watch the data feed
It reads prices continuously and checks its conditions on every update.
Send orders
When a condition is met, it places, changes or cancels orders without asking.
Apply risk limits
Hard caps on size, daily loss and number of orders stop a faulty bot doing damage.
Monitor and review
A human checks fills, errors and results, and switches the bot off when it misbehaves.
Worked examples
Example 1 — Testing a promised return
Red flagA promoter (hypothetical) claims a bot makes 10% a month. You start with $1,000 and compound for a year.
| Growth factor | 1.10¹² ≈ 3.138 |
| After 12 months | $1,000 × 3.138 ≈ $3,138 |
| Yearly gain | ≈ 214% |
A steady 10% a month is over 200% a year, the same promise the CFTC describes in the Mirror Trading International case, which it says was a Ponzi scheme.3 Returns like that are a red flag, not a feature.
Example 2 — Costs eat a thin edge
Barely positiveA hypothetical bot makes 400 trades a month, earning $1.50 gross per trade. Spread and commission cost $1.20 per trade, and the bot subscription costs $99 a month.
| Gross profit | 400 × $1.50 = $600 |
| Trading costs | 400 × $1.20 = $480 |
| Before subscription | $600 − $480 = $120 |
| Net per month | $120 − $99 = $21 |
A bot that trades often needs an edge well above its costs. Regulators advise factoring in fees, spreads and subscriptions before trusting any bot.3
Example 3 — A daily loss limit
Damage cappedA hypothetical $5,000 account runs a bot with a hard daily loss limit of 2%. On a bad day it loses $20 on each of five trades in a row.
| Daily limit | 2% × $5,000 = $100 |
| Losses so far | 5 × $20 = $100 |
| Bot status | Paused for the day |
The cap stops a broken or out-of-sync bot from repeating the same mistake all day. See Risk Management.
Ways to automate trading
| Aspect | Who decides the trades | Main risk |
|---|---|---|
| Your own bot | Your coded rules | Bugs and a weak edge |
| Bought or rented bot | The seller's hidden rules | Unknown logic, fees, fraud |
| Auto-trading service | A third party in your account | Unsuitable trades, data risk |
| Copy trading | Another trader you follow. See Copy Trading | Their losses become yours |
Why traders use bots
Discipline
Rules are followed exactly, with no hesitation or revenge trades.
Speed and coverage
One program can watch many markets around the clock.
Testable strategies
Coded rules can be tested on history before real money is at risk. See Walk-Forward Analysis.
Routine tasks
Rebalancing, scaling in and out, or placing stops can be automated.
Advantages and disadvantages
Advantages
- Executes rules consistently, without fear or greed.
- Works around the clock and across many markets.
- Rules can be tested and measured before going live.
- Frees the trader from watching screens all day.
Disadvantages
- Automates a losing strategy just as faithfully as a winning one.
- Bugs, outages and bad data can trigger many wrong orders fast.
- Bots tuned to past data often fail live. See Overfitting.
- Bots sold with promised returns are a common fraud.
Going deeper
Read as far as you need. Each level builds on the one before it.
A bot is a strategy, not a money machine
Beginner
If the rules have no edge, automating them only loses money faster and with less effort. The CFTC's January 2024 advisory was titled to make exactly this point: AI does not turn trading bots into money machines.2
Red flags regulators list
Intermediate
A joint alert from the SEC's investor education office, NASAA and FINRA warns about unregistered platforms selling AI trading systems with claims like a system that cannot lose, and lists guaranteed high returns, pressure to act fast and buzzword hype as warning signs.4
FINRA adds red flags for auto-trading apps: claims of monthly returns above 10%, "risk-free" or beginner-friendly marketing, borrowed broker logos, and requests for your brokerage username and password.1 Before handing money to a bot or signal provider, the CFTC suggests researching the company, checking how old its website domain is and getting a second opinion.3 See How to Check if a Broker Is Regulated.
Mirror Trading International
Advanced
The CFTC describes Mirror Trading International as a bot program that promised at least 10% a month from currency trading, used MetaTrader 4 and 5 demo accounts to show fake balances, and paid referral bonuses to recruiters.3 Very little money was ever traded; the CFTC says more than $1.7 billion in bitcoin was taken from at least 23,000 people.2 See Ponzi and Pyramid Schemes.
Common mistakes
Trusting a screenshot
Demo accounts and edited images can show any balance. Ask for audited, verifiable records.
Giving full account access
Never share login passwords; if an API key is needed, give it trading rights only, never withdrawal rights.
Skipping costs in the test
A backtest without spreads, fees and slippage overstates results. See Slippage.
Leaving it unattended
Bots need hard loss limits and regular checks; markets and connections change.
Check your understanding
Test yourself before moving on. Each answer comes with an explanation.
Key points to remember
- A trading bot automates a set of rules; it does not create an edge.
- Bots connect through APIs, platform scripts or third-party auto-trading services.
- AI cannot predict sudden market changes, whatever the marketing says.
- Guaranteed or very high returns are the classic sign of a bot scam.
- Use hard risk limits, include all costs in tests and never share account passwords.
Frequently asked questions
Do trading bots actually make money?
Are AI trading bots better than ordinary bots?
Is it safe to give a bot my API key?
Further learning
- Algorithmic Trading
The wider field that bots belong to.
- Backtesting
How to test a bot's rules on past data.
- Copy Trading
Another way to hand trade decisions to someone else.
- How to Check if a Broker Is Regulated
Checking who you are dealing with.
Sources
This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.
- FINRA. Know the Risks of Auto-Trading Services Offered by Unregistered Entities (opens in a new tab) Checked .
- Commodity Futures Trading Commission. CFTC Customer Advisory Cautions the Public to Beware of Artificial Intelligence Scams (Release 8854-24, January 2024) (opens in a new tab) Checked .
- Commodity Futures Trading Commission. Customer Advisory: AI Won't Turn Trading Bots into Money Machines (opens in a new tab) Checked .
- FINRA, SEC and NASAA. Artificial Intelligence (AI) and Investment Fraud (opens in a new tab) Checked .
Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.