StructureX

Home › Guides › AI & trading

AI trading bots explained: what they really do — and what they can't

A trading bot is a set of rules that places orders for you. Adding "AI" to the name doesn't change that — and it doesn't remove the risk. Here's how they actually work.

Beginner guide · 8-minute read · Updated 2026-10-21

What a trading bot is

A trading bot is a computer program that watches prices and places orders when certain rules are met.

A very simple bot might say:

  1. If a candle closes above the recent high, buy.
  2. Put a Stop loss below the last turning point.
  3. Exit when price reaches 2 times the risk, or the stop is hit.

That's it. A bot is a rulebook that can click buttons. It can be useful. It can also follow bad rules very fast.

The 3 kinds of "bots" you'll hear about

KindWhat it really isWhat to know
Rule-based botFixed rules you (or someone) wrote, like the 3 aboveYou can read and test the rules
Model-based botA statistical or machine-learning model that scores past data and decidesCan fit the past too well; hard to see why it acts
"AI bot" (marketing)Often a rule-based bot, a signal group or worse, with "AI" on the labelThe label tells you nothing; check what's under it

The word "AI" is a magnet for attention. Sometimes there's real modelling inside. Often there isn't. And either way, nobody can make a bot that knows the future.

What a bot can genuinely do well

That last one is the real appeal. Many traders know their rules; following them under pressure is the hard part.

5 ways bots go wrong

1. Overfitting

Overfitting means tuning rules until they match the past perfectly. Test enough settings and something will look great on old charts — by luck. Then it meets new data and stops working. More on this in how to backtest a trading strategy.

2. The market changes

A bot built for a calm trending market can struggle in a choppy one. It doesn't know the world changed. It keeps following its rules.

3. Real-world costs

Past tests often ignore Slippage (getting filled at a worse price than planned), Spreads and fees. Small costs on many trades add up.

4. Tech failures

Internet drops, broker outages, a bug in the code, an order sent twice. When you're not watching, small problems can grow.

5. Too much size

A bot will trade whatever size it's told to. Rules that risk too much per trade can do a lot of damage quickly. Size still has to come from the stop — see the position size calculator.

The CFTC's warning. In January 2024, the CFTC (the US futures regulator) issued AI Won't Turn Trading Bots into Money Machines. It says AI can't predict the future or sudden market changes, and that claims of high or guaranteed returns are red flags.

7 questions to ask before trusting any bot

  1. What are the rules, exactly? If nobody can tell you, you can't judge it.
  2. Who's selling it, and are they registered? Check FINRA's BrokerCheck or the NFA's BASIC database for US firms and people.
  3. Are results "hypothetical"? Most bot results are past tests, not real trading. Ask for real, verified records — and know that even those don't predict the future.
  4. What happens in a losing streak? Every method has them. How big did the worst one get?
  5. Who holds the money? If you have to send funds to the bot seller rather than your own regulated broker account, stop.
  6. Can you withdraw any time? Fees to "unlock" withdrawals are a classic scam sign.
  7. What happens if it breaks? Who's watching? Is there a maximum loss per day?

If any answer is vague, that's your answer. Our guide to AI trading scams to avoid lists the warning signs in detail.

Can you build your own?

You can, step by step. Many people start on TradingView:

  1. Write your rules in plain words first.
  2. Turn them into a Pine Script strategy test — see Pine Script strategy backtest.
  3. Check every trade it took by eye, in bar replay.
  4. Treat the results as hypothetical. Test on a stretch of data you didn't use while building it.
  5. Paper trade it for weeks before any real money.

Connecting a script to a broker to place real orders needs extra tools and a lot of care. Many people never take that step, and that's fine: a tested rulebook you follow by hand is still a rulebook.

Write the rules before the code. If you can't write your bot's rules on one page in plain words, the code won't fix it. Start with how to write a trading plan.

A bot doesn't replace a plan

A bot is only as good as its rules and its risk limits. It can't decide what to trade, how much to risk, or when to switch off. Those are your calls — and they're the parts that matter most.

Questions

Do AI trading bots actually work?

Some bots follow their rules reliably, but no bot can predict prices or guarantee returns. Results depend on the rules, costs and market conditions, and losses are always possible.

Are AI trading bots legal?

Using automated trading is legal in the US. But many "AI bot" offers are scams. Check that firms are registered, and be wary of guaranteed returns or pressure to deposit.

What's the difference between a trading bot and an AI trading bot?

A trading bot follows set rules. An "AI" bot may use a model trained on past data — or the label may just be marketing. Either way, ask what the rules are and how it was tested.

Can I make my own trading bot?

Yes. Write your rules, test them as a strategy on past data, check every trade by eye, then paper trade for weeks. Treat past-test results as hypothetical.

Want the next step? We'll walk you through it.

Four free lessons by email, one every few days — each with a 10-minute exercise on a real chart.

Send Me the Free Lessons 4 short emails · No spam · Unsubscribe anytime

Or see the whole method, step by step:

See What’s Inside the Course Try everything free first. Decide when you're ready. · Open the free chart tool (works in the TradingView phone app)

One chart idea a day, in plain English. Follow along:

Follow on XFollow on TradingView