Trading StrategiesIntermediate

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

  1. Define the rules

    Entry, exit, position size and stop rules are written down precisely enough to code.

  2. Test on history

    The rules are run on past data to see how they would have behaved. See Backtesting.

  3. Connect to an account

    The bot gets trading access, usually through an API key or a platform script.

  4. Watch the data feed

    It reads prices continuously and checks its conditions on every update.

  5. Send orders

    When a condition is met, it places, changes or cancels orders without asking.

  6. Apply risk limits

    Hard caps on size, daily loss and number of orders stop a faulty bot doing damage.

  7. 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 flag

A promoter (hypothetical) claims a bot makes 10% a month. You start with $1,000 and compound for a year.

Example 1 — Testing a promised return — calculation
Growth factor1.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 positive

A 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.

Example 2 — Costs eat a thin edge — calculation
Gross profit400 × $1.50 = $600
Trading costs400 × $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 capped

A 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.

Example 3 — A daily loss limit — calculation
Daily limit2% × $5,000 = $100
Losses so far5 × $20 = $100
Bot statusPaused 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

AspectWho decides the tradesMain risk
Your own botYour coded rulesBugs and a weak edge
Bought or rented botThe seller's hidden rulesUnknown logic, fees, fraud
Auto-trading serviceA third party in your accountUnsuitable trades, data risk
Copy tradingAnother trader you follow. See Copy TradingTheir 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

  1. Trusting a screenshot

    Demo accounts and edited images can show any balance. Ask for audited, verifiable records.

  2. Giving full account access

    Never share login passwords; if an API key is needed, give it trading rights only, never withdrawal rights.

  3. Skipping costs in the test

    A backtest without spreads, fees and slippage overstates results. See Slippage.

  4. 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.

Q1A bot is advertised as earning a guaranteed 10% every month. What is the best reading of that claim?
Q2A bot earns $600 gross a month and pays $480 in trading costs plus a $99 subscription. What is its net result?

Key points to remember

  1. A trading bot automates a set of rules; it does not create an edge.
  2. Bots connect through APIs, platform scripts or third-party auto-trading services.
  3. AI cannot predict sudden market changes, whatever the marketing says.
  4. Guaranteed or very high returns are the classic sign of a bot scam.
  5. Use hard risk limits, include all costs in tests and never share account passwords.

Frequently asked questions

Do trading bots actually make money?

Some do, when they run a strategy with a real edge and costs are under control. Many do not, and a bot cannot fix a strategy that has no edge.

Are AI trading bots better than ordinary bots?

Not automatically. Machine-learning models still depend on past data and can fail when markets change. Treat the word AI as marketing until you see verifiable evidence.

Is it safe to give a bot my API key?

Only to software you trust, and only with the permissions it needs. Disable withdrawal rights, restrict the key to known IP addresses if possible, and revoke it when you stop using the bot.

Further learning

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.

  1. FINRA. Know the Risks of Auto-Trading Services Offered by Unregistered Entities (opens in a new tab) Checked .
  2. 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 .
  3. Commodity Futures Trading Commission. Customer Advisory: AI Won't Turn Trading Bots into Money Machines (opens in a new tab) Checked .
  4. 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.