Skip to content
Wildflower
Join free
Automated trading and AI

Free Trading School · Level 7 · Course 7.11

Watching an automated strategy

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

Advanced · Automated trading and AI

Watching an automated strategy

Wildflower Trading School · Lesson 7.11.2.4

Wildflower

Automated doesn't mean unattended. Someone still has to check that the program is doing what it was built to do. By the end of this lesson, you'll know what to check before, during and after the session, and how to read a program's log. You'll also see how to spot a gap between the program's records and the broker's.

1 of 9

What you'll learn

  • Get set before the open. Check account, size and prices, with the kill switch to hand.
  • Match positions during the day. Every trade needs a working stop and a clean log.
  • Read the log. It's a timed diary of what the program saw, decided and sent.
  • Compare after the close. Check every fill and the day's result against the broker.
  • Explain every gap. A gap may be fees the program didn't count, or a fill that differs.

Exercise

  1. Turn this lesson into your own checklist with three parts: before, during and after the session.
  2. Keep it to one page, with a column for the date and a tick for each check.

Next: Checking live trades against the test.

Quick check

  1. 1. Which during-the-session check matters most?

  2. 2. A log line says a stop order was rejected. What does that mean?

  3. 3. The program's result and the broker's differ by a few dollars a round trip. What's a likely first explanation?

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 “Checking live trades against the test” is waiting next time.

Read the full notes

Watching an automated strategy means short checks every day: before the session (running, right account, right contract and size, live prices, kill switch ready), during it (positions match the broker, every trade has a working stop, no errors in the log) and after it (fills and result match the broker's statement).

  • Before: the program is running on the right account; the right and size; prices are live, not or ; the and the broker's phone number are within reach.
  • During: the program's match the broker's (); every open trade has a working at the broker or exchange; no new errors or warnings in the log.
  • A is a time-stamped diary of what the program saw, decided and sent. Made-up lines: signal at 10:05:00.012, sent at .140, at 5,018.50 at .410, and a warning at .420 that the stop was rejected: an open trade with no stop.
  • After: every fill against the broker's ; the day's result against the broker's; anything different from the test (see Tracking forward results); written down every day, like a trade journal.
  • Made-up: program +$210, broker +$186 after fees, 4 : $24 gap = $6 a round trip. Compare with your . Answer to the drill: $6.

Worked example

Made-up numbers

A gap between the records

Made-up numbers · one day · 4 round trips

  1. Program: +$210. Broker statement: +$186.
  2. Gap: $24.
  3. $24 ÷ 4 = $6 a round trip.

If fees are about $6 a round trip, the gap is fees the program didn’t count. If not, look for a fill that doesn’t match.

Your turn

Drill

Made-up numbers · program’s result +$150 · broker statement +$120 · 5 round trips

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.