Genie's Crash Course

Reading your bot's reports and logs

Lesson 8 of 113 min read

Each day, check that the bot did what your spec says. Three records tell you, and they should agree. When they don't, start with the trade where they split.

The three records

One is your alerts, the emails or Discord posts the bot sends, problems included. The bot's daily log is another. It lists what the bot decided and what it sent. Every build has both. Then there's Interactive Brokers, with its trades list and your activity statement, and that's the one that counts. If the log and Interactive Brokers disagree, Interactive Brokers is right.

The wording in the log and the alerts changes from build to build, and you'll see yours on the setup call. The habits below work on any of them.

What to read each day

Start with whether it ran at all, which the start alert tells you, and then the count. How many trades, and is that normal for your rules? Zero is often right, because a rule that waits for a specific setup won't always get one.

Then go through the trades one at a time. Is the entry time inside the window in your spec? Is the size within your largest-position limit? Every exit has a reason attached (the stop, the target, the time exit, the daily loss stop) and you should be able to say why it fit. A kill switch shows up too, if you used it.

Last, the fills against the quotes. Rule saw $1.15, fill was $1.22: that's slippage. A few cents is normal. Twenty cents on a thin contract is a reason to ask whether your spec should skip wide spreads, which would be a spec change you order from me.

What looks wrong

A trade outside your time window. A size over your limit. An order you don't recognize. No end-of-day alert, the same order rejected over and over, alerts about stale data. Any of those is worth a note with the time. If a position is still open after the close, stop the bot and look at the account before anything else.

The weekly look

Once a week, add up the trades and put the biggest loss next to your daily loss stop. Then count how many exits came from each of the stop, the target and the time exit, and if that mix has changed since last week, find out why before you touch a rule. One week, good or bad, says little. A couple of big days can carry a whole month.

Changing a rule is a spec change. Don't edit the code. If you do, support ends for that build.

Questions about this lesson

What records can I check an automated bot against?

There are three, and they should agree. The bot's alerts and its daily log are two of them. The third is Interactive Brokers' trades list and your activity statement, and that's the one that counts.

How do I check that an automated bot followed my rules?

Go through the day's trades one at a time against your spec. Check the entry time, the size and the reason for each exit, then compare the fills with the quotes.

Can I edit the code of my automated bot?

Don't edit it. Changing a rule is a spec change that you order from me, and if you edit the code, support ends for that build.

Check yourself

The bot's log shows a sell at $1.40. Interactive Brokers shows $1.38. Which do you trust?

Interactive Brokers. The log shows what the bot expected or sent. Their record shows what filled.

You got no trades today. Is it broken?

Not by itself. Check that the start alert came and that nothing in your rules should have fired.

For education only, not financial advice. Prices in the worked examples are made up to show the arithmetic. Options can lose 100% of their value.

AwayTrader Bot Builds

Buy a bot

Pick the build by how many tickers the bot trades. The buttons open Whop, where you pay. Every build can be split into 3 or 6 payments.

Only want your rules backtested? The Backtest is $199 (day trades only, no written rules document). Compare the three Or send a free inquiry

For education only, not financial advice. Bot Builds is software built for your own Interactive Brokers account.