Skip to content
Wildflower
Join free
Automated trading and AI

Free Trading School · Level 7 · Course 7.11

What a trading bot really is

Lesson 4 of 19 in Automated trading and AIModule 1: What automation is

Advanced · Automated trading and AI

What a trading bot really is

Wildflower Trading School · Lesson 7.11.1.4

Wildflower

Trading bots can sound like something clever that understands markets. They're much simpler than that. By the end of this lesson, you'll know the four jobs every bot does, and what it can't know unless someone tells it. And you'll see why the biggest danger is a bot that's wrong about its own position.

1 of 9

What you'll learn

  • Follow the bot's loop. It reads, checks, acts and records, over and over.
  • List what it can't know. News times or your daily loss limit need writing in.
  • Check where it runs. It can be your computer, a rented server or a platform's.
  • Match its record to the broker's. A wrong record can leave a trade nobody manages.
  • Look past the AI label. An AI bot runs the same loop and can still lose.

Exercise

  1. Write the four jobs of a : read, check, act, record.
  2. Under “check”, list five things a bot running your rules wouldn't know unless they were written in, such as news times or your .

Next: Connection loss.

Quick check

  1. 1. A bot's data feed freezes. What does the bot see?

  2. 2. Which is the real record of what an account holds?

  3. 3. A bot is sold as “AI”. What stays the same?

0 of 3 answered.

Finished this lesson?

Tick it off and keep your place

Make a free account and we'll remember where you are, so “Connection loss” is waiting next time.

Read the full notes

A trading bot is a program that runs a loop: read prices, check the rules, act by sending orders, and record what happened. It knows nothing you didn't tell it, and its biggest danger is a record of its own position that doesn't match the broker's.

  • A runs a loop: read prices from a , check the rules, act (send, change or cancel orders through the 's ), record it in a .
  • It knows nothing it wasn't told: news times, (prices that have stopped updating), your or an account's rules (Rules on automation and copy trading), or that its rules have stopped fitting the market (Knowing when a strategy has stopped fitting).
  • Where it runs: your own computer; a in a data centre; or a platform's or broker's computers, under their rules. More: How a trading bot connects to a broker.
  • The bot's record of its can differ from the broker's, for example after a rejected order. Checking one against the other is .
  • Made-up: the bot thinks it's ; the account is long 2 from 5,040 with no stop. A fall to 5,020: 20 × $5 × 2 = −$200.
  • “AI” inside doesn't change the loop, and it can still lose. See “AI trading bot” scams. Answer to the drill: 15 × $5 × 3 = $225.

Worked example

Made-up numbers

The cost of a wrong record

Made-up numbers · Micro S&P 500 · $5 a point

  1. The bot thinks it’s flat. The broker shows long 2 from 5,040, with no stop.
  2. Price falls to 5,020: 20 points.
  3. 20 × $5 × 2 = $200.

A loss of $200 on a trade nobody was managing.

Your turn

Drill

Made-up numbers · Micro S&P 500 · $5 a point · long 3 contracts the bot thinks are closed · price falls 15 points

Trading is risky. You can lose money, and automated trading can lose like any other trading. This lesson explains how things work. It isn’t advice.