Skip to content
Wildflower
Join free
Automated trading and AI

Free Trading School · Level 7 · Course 7.11

Connection loss

Lesson 5 of 19 in Automated trading and AIModule 2: What can go wrong

Advanced · Automated trading and AI

Connection loss

Wildflower Trading School · Lesson 7.11.2.1

Wildflower

Computers crash, internet drops and broker systems go down. When you trade by hand, you notice. When a program trades, it may be the only one there. By the end of this lesson, you'll know what happens to open trades and working orders when each link breaks. And you'll know what decides whether a stop is still protecting you.

1 of 8

What you'll learn

  • Name the three weak links. Your computer, your internet or the broker link can fail.
  • Find where each order is held. That decides whether your stop works when you drop.
  • Spot cancel on disconnect. Dropping out can cancel your stop, leaving the trade open.
  • Check before you resend. An order may have filled already. Resending can double it.
  • Plan your backup. Place a stop with the entry and keep the broker's phone number.

Exercise

  1. For the platform you practise on, find out where each order type is held: at the , at the or platform, or on your computer.
  2. Write it down for stops, targets and , with where you found the answer.

Next: Bugs and runaway orders.

Quick check

  1. 1. Your computer switches off. Which stop still works?

  2. 2. A bot sent an entry, then the link dropped before any reply. What's the safer first step when it reconnects?

  3. 3. What can cancel on disconnect do?

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 “Bugs and runaway orders” is waiting next time.

Read the full notes

When a computer, the internet or a broker link drops, an open trade stays open; whether its stop still protects it depends on where the stop is held: at the exchange, on the broker's or platform's servers, or on your own computer.

  • Three links can break: your computer (power, crash, restart), your internet, and the or platform link (their outage). From inside a program, all three can look the same: no prices, no replies.
  • Where each order lives decides what still works: a at the keeps working without you; orders held on the broker's or platform's servers work if those servers are up; orders held on your own computer are sent only if it's on and online. Ask your platform or broker. See Delay and speed.
  • Some connections use : working orders are cancelled when the link drops, which can leave a open with no .
  • An order sent just before a drop may or may not have filled. Resending can double the position; checking the broker's record first is .
  • What people put in place: a stop placed with the entry and held beyond their own computer (, see Bracket and one-cancels-other orders); the broker's phone number for closing positions; a second way online and a second way to see the account; a check on every reconnect.
  • Made-up: long 2 from 5,020, stop 5,012, price 5,000 after a power cut. Stop at the exchange: 8 × $5 × 2 = −$80 plus . Stop on the home computer: 20 × $5 × 2 = −$200 and still open. Answer to the drill: $100. More: What can go wrong with automated trading.

Worked example

Made-up numbers

The same power cut, two places for the stop

Made-up numbers · Micro S&P 500 · $5 a point · long 2 from 5,020 · stop 5,012 · price 5,000 when power returns

  1. Stop held at the exchange: filled near 5,012. 8 × $5 × 2 = −$80, plus any slippage.
  2. Stop held on the home computer: never sent. 20 × $5 × 2 = −$200, and the trade is still open.

Same trade, same stop price. Where the stop was held made a $120 difference, and left one trade unprotected.

Your turn

Drill

Made-up numbers · Micro S&P 500 · $5 a point · long 1 contract from 5,030 · stop at 5,022 held on the home computer · internet drops · price is 5,010 when it returns

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.