# Bot Builds spec | AwayTrader

[Bot Builds](https://awaytrader.com/bots)

# The spec and what the automated bot is

What I build and what it connects to, with three full sample documents: the rules spec you approve by reply, the backtest note and the paper test report.

## What the automated bot actually is

A Bot Build is a Python program. It runs on your own computer (Windows or Mac), or on a rented server that you own in your own name, under your own login. It is not a website you sign in to, and it does not run on my servers. The part that places orders is the AwayTrader engine, which I license to you. The part that holds your rules is a strategy module I write from your approved spec. You don't own the source code. The bot is a licensed copy for your own use.

### How it connects to your account

The bot talks to Interactive Brokers through their Gateway program, using their own programming interface (API). Their desktop platform, Trader Workstation, uses the same one. You start the Gateway and type your login into it yourself. The bot never sees or stores your password.

### What it reads

- Market data from your own Interactive Brokers subscription, or from your own Massive account: live prices and bars for the tickers in your spec, and option quotes if your rules trade options.
- Your account's open positions, open orders and today's fills, so it knows what it already holds.
- The market calendar, so it knows about half days and holidays.

### What it can do

It can place and cancel orders in your own account, for the tickers in your spec. That is all it is built to do. The engine has no code for moving money or changing account settings, and it ignores any other ticker in your account.

### The guards built into every automated bot

- A risk check sits between your rules and the broker and looks at every order first. It applies the limits you set, such as the daily loss stop and the maximum position size, and refuses any order that breaks one.
- Paper comes first. The bot will not trade a live account until it has finished its paper sessions and you have confirmed the account yourself.
- If the link to Interactive Brokers drops, it stops sending new orders at once. It tells you, keeps trying to reconnect, and checks its fills, open orders and positions again before it trades. Stop and target orders already placed stay at Interactive Brokers, so they keep working while your computer is offline.
- Missing or stale prices mean no new trades. It can still close a position.
- One command, the kill switch, cancels the bot's open orders, closes the positions it holds and stops it for the day. A bot that starts while the kill switch is on will not trade.
- It alerts you in a private channel in your own Discord server when it starts or stops, on every buy and sell, and when it hits a limit.
- Every day it writes a log of what it decided and what it sent, for you to read after the close.

### What you get

The bot is a licensed copy for your own use, with your rules written out in your signed Rules Spec. The source code is not part of the sale. Edit the settings files as much as you like, but if you edit the code, support ends for that build. Reselling, sublicensing, sharing or giving the bot to anyone else is not allowed. I do not reuse your rules for anyone else, and the bot never uses the AwayTrader Discord alerts or the trades of Genie's AutoTrader or Genie's Lotto, which are my own bots (AutoTrader trades my own money). Every rule and every limit is your choice.

A bot follows your signed rules and can lose money, including everything you put in a trade. A backtest or a paper test does not predict live results. For education only, not financial advice. Read the [Automated Trading Risk Disclosure](https://awaytrader.com/bot-risk-disclosure) before you buy. At checkout you type YES to confirm you have. If you buy only the Backtest, you tick the box for it on the backtest form instead.

## Three sample documents

Every build comes with a Rules Spec and a paper test report. A shares build also gets a backtest report. An options build gets a backtest note instead, because the backtest does not replay option orders and has no real past option prices to test on. The client below, Alex Sample, is made up, and so are the rules, the prices and the numbers. They show the format and how much detail you get. They are not a strategy to copy, a recommendation or a result.

Step 3 is the spec you approve by reply, step 4 the backtest report or note, step 5 the paper test report. All three samples are one options build. For education only, not financial advice.

- 1. Rules Spec
- 2. Backtest note
- 3. Paper test report

Document 1 of 3, step 3. You approve it before any code is written.

### Rules Spec for Alex Sample
 Sample

Made-up client, made-up rules. It is not a strategy to copy and not a recommendation.

Solo plan, October 14, 2025.

These are your trading rules as you gave them to me. I build your bot to follow them exactly. I don't choose rules, tickers or sizes, nothing here is a recommendation, and no results are promised.

#### Your rules

1.  R1

#### What the bot trades

The bot trades single-leg options on TSLA. It buys call options to open. It never sells an option to open.

The entry conditions read the stock's price bars. The same rules apply to every ticker.

Your plan is Solo, which covers one ticker.

1.  R2

#### Which contract

Expiry: the first listed expiry at least 7 trading days after the trade date.

Strike: 1 listed strike out of the money, measured from the stock's last price when the entry is sent.

1.  R3

#### Checks before an option entry

No option entry is sent unless all of these hold: the contract is in today's option list; it has a live bid and ask no older than 10 seconds (a separate limit from the stale-price limit in the size and limits rule); someone is bidding (a bid above zero); the bid is below the ask; the spread is no wider than $0.15 and no wider than 10% of the midpoint; and neither the contract nor the stock is halted.

These checks apply to entries only, never to closes.

1.  R4

#### When the bot trades

New entries are sent only from 11:00 am until just before 1:30 pm New York time, every weekday the market is open.

Everything the bot holds is closed at 3:45 pm.

On early-close days the bot does not trade.

1.  R5

#### Call entry (RSI level)

Buy a call when all of these are true on a closed 5-minute bar:

1. The 14-bar RSI of closes crosses above 35.
1.  R6

#### Repeat entries

At most 1 entry per ticker per day.

After the conditions trigger, at least one closed bar must fail them before they can trigger again.

1.  R7

#### Entry orders

Entries are limit orders at the contract's midpoint, rounded down to a valid price step, then raised 1 price step toward the ask.

An entry that has not filled 30 seconds after it is sent is cancelled. The bot does not re-price it.

1.  R8

#### Exits

Reference price: the limit price. Stops and targets are percentages of the option's price, set when the entry is sent, and rounded to a valid price step toward the reference price. A stop or target that would be under $0.05 means no entry is sent.

Stop: 25% below the reference price. It is sent with the entry and rests at IBKR as a stop order. It triggers on the bid and ask, never on the last trade (IBKR's double bid/ask method).

Target: 40% above the reference price. The bot watches it; it is not sent to IBKR. When the bid reaches it, the bot cancels the stop and sends one market sell for the whole position, so the fill can be below the target. Target watching works only while the bot is running and connected.

The bot closes the whole position at once; it does not sell part of it.

Anything still open at 3:45 pm is closed then.

1.  R9

#### Size and limits

Size: 1 contract per entry.

Largest position per ticker: 1 contract, counting working orders.

Most tickers held at once: 1.

Most entries per day, all tickers together: 1.

Daily loss limit: $150, counting open positions and commissions. Reaching it closes everything and stops new entries for the rest of the day.

Most money in open positions and working entries at once: $1,000.

No stand-down after losing trades.

Stale-price limit: 15 seconds. A price older than this blocks new entries.

#### Words used above

- Crosses above: at or below on the bar before, above on this bar. Crosses below: at or above on the bar before, below on this bar.
- Moving averages and RSI use the closes of today's 5-minute bars only, so they have no value until enough bars have closed today.

#### How every AwayTrader bot behaves

- All times are New York time. The bot trades the regular session only, 9:30 am to 4:00 pm, and its rules read today's bars only.
- While the bot is running, everything it holds is closed at the closing time in your rules each day. If your rules let the bot trade on an early-close day, it closes 10 minutes before the market close when that is earlier. Market holidays are built in.
- The stop is sent with the entry and rests at IBKR. It becomes a market order when it triggers, and it keeps working if the bot or the computer stops. The target is watched by the bot, as your exit rule says.
- When the bot starts or reconnects it reads your positions and orders at IBKR. If it finds a position in one of its tickers that it did not open, it stops trading that ticker and alerts you.
- The daily loss limit counts open positions and commissions. Reaching it closes everything and stops new entries for the day. KILL closes everything and stops the bot. PAUSE stops new entries; it does not stop a target or stop sell that is already running. FLATTEN closes everything.
- If the latest price is older than your stale-price limit, the bot sends no new entry. Closes and exits are never blocked by it.
- You log in to TWS or IB Gateway yourself, at least once a week when IBKR asks. Alerts go to your Discord server and your email.
- Before any live trading the bot runs five standard fault drills and a paper-trading test of 5 sessions. Any rule change restarts the paper test.
- If IBKR does not confirm a sell, the bot stops that ticker for the day and alerts you to close the position yourself in TWS. By then the stop may already be cancelled, so the position may have no stop at IBKR until you close it.

#### Your setup

- IBKR individual cash account in your own name, with options permission level 2.
- Runs on your Windows 10 computer with IB Gateway, with the clock set to sync with internet time.
- You will use a second IBKR username for the phone app, so the bot's login is not interrupted.
- Alerts go to your Discord server and your email. Market data, alert settings and logins are set up together on the setup call.
- Cash account: the bot does not track settled cash. IBKR may refuse or restrict an order that would use unsettled funds.

#### Not part of this build

- Pre-market or after-hours trading.
- Indicators that need earlier days' bars.
- Stop or stop-limit entry orders, or moving a stop that rests at IBKR.
- Re-pricing a limit entry that has not filled.
- Size or loss limits as a percent of the account.
- Skipping earnings days automatically (list those dates instead).
- Selling options to open (short options), adjusted or non-standard contracts, or options on more than one ticker.
- Expiries more than 14 days after the trade date.
- Option spreads or any order with more than one leg, index options, or greeks.
- An option stop that triggers on the stock's price.
- An option target as a resting order at IBKR.
- Backtests of option strategies.

#### Approving this spec

Read every rule above. If it matches what you want, reply to my email with: I approve the Rules Spec dated October 14, 2025. The build starts after that reply. If anything is wrong, tell me what to change and I'll send you a new version.

After approval, a change to any rule makes a new version and restarts the paper test.

Trading involves risk of loss. For education only, not financial advice.

Document 2 of 3, step 4. What the backtest step covers in an options build.

### Backtest note
 Sample

Made-up client, made-up rules. A shares build gets a backtest report with results. An options build gets this note instead.

ClientAlex Sample (made up)

RulesThe Rules Spec for Alex Sample, as approved

TradesTSLA call options, one ticker

BacktestNot run for option trades

#### What was not run

The backtest does not replay option orders and has no real past option prices to test on. Testing the call rules in your Rules Spec on past data would need real historic bid and ask prices for each contract.

So there is no option trade list, no equity curve and no profit or loss figure for your build. Your Rules Spec lists backtests of option strategies as not part of this build.

#### What is checked instead

The paper test (step 5) runs your rules on an Interactive Brokers paper account with no real money, for at least 5 trading days. It checks the bot against your Rules Spec on the days it runs and in the fault drills. It is the only test of your rules before any live trading.

#### What this means for you

Nothing in this note says how your rules would have done in the past, or how they will do. Trading options can lose money, including everything you put into a trade. For education only, not financial advice.

Document 3 of 3, step 5. At least 5 trading days, no real money.

### Paper test report
 Sample

Made-up client and a made-up paper account. Paper fills are pretend fills. This test shows whether the bot follows your rules. It says nothing about results.

ClientAlex Sample (made up)

Rules testedThe Rules Spec for Alex Sample, unchanged during the test

AccountYour Interactive Brokers paper account

Dates3 Nov to 11 Nov 2025

Sessions run7 (the minimum is 5)

Trades3 (one more entry was not filled)

Fault drills5 of 5 (after one fix and a rerun)

Errors found2 (both fixed and checked)

#### Sessions

**Session 1**Mon 3 Nov
no entry

**Session 2**Tue 4 Nov
traded

**Session 3**Wed 5 Nov
no entry

**Session 4**Thu 6 Nov
traded

**Session 5**Fri 7 Nov
no entry

**Session 6**Mon 10 Nov
no entry

**Session 7**Tue 11 Nov
traded

In session 6 the entry rule was met, but the limit order did not fill in 30 seconds, so the bot cancelled it as rule 7 says. No rule was changed during the test, so the session count was never restarted. The fix after session 2 was to code, not a rule, and sessions 3 to 7 all ran on the fixed bot.

#### Every trade, checked against the rules

-  # | Session | Contract | Filled at | Stop set at | Target watched at | How it ended |
-  1 | Session 2, Tue 4 Nov | TSLA call, 1 strike out, first expiry 7 or more trading days away | $4.10 | $3.08 | $5.74 | Target reached, the bot sent one market sell |
-  2 | Session 4, Thu 6 Nov | TSLA call, 1 strike out, first expiry 7 or more trading days away | $3.85 | $2.89 | $5.39 | Stop at IBKR |
-  3 | Session 7, Tue 11 Nov | TSLA call, 1 strike out, first expiry 7 or more trading days away | $4.40 | $3.30 | $6.16 | Closed by the bot at 3:45 pm |

Every entry was a limit order at the midpoint, one price step toward the ask. The stop was sent with each entry and rested at IBKR. Exit prices and results are left out on purpose: paper fills show how the bot behaves, not what a live account would get.

#### Fault drills, run on purpose

-  Drill | Session | What the spec says | Result |
-  Restart with a position open | 2, rerun in 3 | The bot reads your positions and orders at IBKR first | Failed in 2 (error 1). Passed in 3 after the fix. |
-  Prices stop for 20 seconds | 5 | A price older than the stale-price limit blocks new entries | Passed. No entry was sent. |
-  Connection to the broker cut for 90 seconds | 5 | The bot reads your positions and orders again when it reconnects | Passed. No duplicate orders. |
-  A position the bot did not open | 5 | The bot stops trading that ticker and alerts you | Passed. Alert email arrived. |
-  KILL with an order open | 5 | Closes everything and stops the bot | Passed. No open order left, bot stayed off. |

#### What a paper account cannot show

- A paper account simulates fills and stops itself. Live fills can differ, especially in a thin option market or with a wide spread.
- The target is watched by the bot, so it only works while the bot is running and connected.

#### Errors found and fixed

-  # | Found | What was wrong | Fix |
-  1 | Session 2, restart drill | In the restart drill a position was open. After the restart the bot saw it but did not start watching the target again. The position was closed by hand. | The bot now rebuilds the target watch from the account when it starts. Drill rerun and passed in session 3. |
-  2 | Session 4, reading the alert email | The stop-out email showed the time in UTC, 5 hours ahead of New York in November. | All times in emails and logs now show New York time. |

Both were code errors, not rule changes, so your rules did not change.

#### Your go-live approval

You decide when the bot goes live. Nothing switches over until you approve it by reply and confirm your own live account. Your 30 days of bug fixes start on the day you approve.

Approved by reply, Alex Sample (not approved in this sample)

Date

### About the winning-trade replay on the home page

The replay shows one selected past trade from the setups my Briefs bots post for SPY and QQQ, drawn from recorded one-minute prices as five-minute candles. It shows, in theory, how a bot follows its rules.

## Your login and your data

- You type your Interactive Brokers login yourself, into Interactive Brokers' own Gateway program on your computer. The bot never stores your password and I never ask for it. The weekly phone approval is yours to do too.
- The bot runs on your computer under your login. I can't log in to your account or place a trade in it.
- The bot can place and cancel orders in your account. It has no code for moving money or changing account settings.
- On the setup call I guide you over a screen share. You do the clicking on your own computer, and I never take control of it. The call isn't recorded unless you agree in writing. Stop sharing your screen while you type your password.
- Updates come as a signed install package by download link, with written steps by email. You install it outside market hours with no positions open. Before you open it, check the package against its signature file, as the install guide shows. Check your settings before you restart the bot.
- If something breaks, the bot can make a support file for you to send me. The file holds your settings and logs, which can show your strategy and trades, and may still contain account or personal details. Check the file before you send it. I delete it 90 days after I close your case.
- Send me a password or a security code by mistake and I won't use it. I'll ask you to change it right away.
- Your rules, code and backtest results stay private, and I never use your results in my marketing.

It's all written into the [Bot Build Agreement](https://awaytrader.com/bot-build-agreement) (sections 8 and 17), the [Bot Software License](https://awaytrader.com/engine-license) and the [Privacy Policy](https://awaytrader.com/privacy).

## What you need

- An Interactive Brokers account with paper trading turned on. If your rules trade options, your account needs permission to trade options.
- Real-time market data in your own name, from Interactive Brokers or your own Massive account. The bot won't trade on delayed prices. For the paper test, turn on market data sharing in your Interactive Brokers settings so your paper account gets the same prices.
- A Windows computer or a Mac, or a rented server that you own in your own name, with at least 5 GB of free disk space.
- Leave that computer on and logged in. A locked screen is fine, but sleep and hibernate stop the bot. If you'd rather not leave your own computer on, a rented server in your own name costs about $21 to $26 a month.
- A steady internet connection. If it drops, the bot stops trading until it's back. Your stop and target orders stay at Interactive Brokers.
- Your phone, to approve your Interactive Brokers login about once a week. The bot doesn't use an auto-login tool, so you log in by hand.
- A Discord account. The bot's alerts go to a private channel in your own Discord server. They tell you when your weekly login is due, when the bot starts or stops, each time it buys or sells (including when it sells at your target), and when it hits your daily loss limit or the kill switch. That server is separate from the AwayTrader Discord.
- Tailscale, on your own free personal account, installed on the computer or server the bot runs on and on your phone. It is how you open the bot's dashboard from your phone.

On the setup call I guide you through installing the rest, including Interactive Brokers' Gateway program.

## What happens after you buy

You get a Start here page on Whop for what you bought. I email you within 2 business days, and I answer your messages within 2 business days.

Every build includes a membership in the AwayTrader Discord for life, for as long as the AwayTrader Discord is offered. You claim it with a link in the intake email.

Every build includes a backtest. In a build, you fill in a rules form after you buy, and every answer is a choice. I don't send follow-up questions. In a build, nothing is built or tested until you approve your rules by reply, and you can cancel before that for a full refund of what you paid. The extra charge for paying in parts is not refunded.

If you buy the Backtest on its own, you fill in your rules on the backtest form, and I run them on past data. It covers up to 3 tickers. The report states every assumption. You get one report on one set of rules, with no variations. Day trades only. No written rules document comes with it. I send your report within 5 business days of your completed form or your reply to my last question, whichever is later. If I have questions about your rules, I email you.

For a build, I read your answers within 1 business day, and your Rules Spec comes within 2 business days after that review. While I build, you get an email every Friday saying where it's at. From the day you approve your Rules Spec, a build takes about 1 week before the paper test starts. Builds go in the order they are paid, and you get a start date. Work outside the plans is quoted after the spec is signed off.

The paper test runs at least 5 trading days. If you change a rule during the test, it starts over from session one. When the paper test is done and you approve going live, your 30 days of bug fixes start. The first change is free, and later changes are quoted before any work. If an Interactive Brokers or TWS update breaks the bot in those 30 days, I fix it free.

If I try several times to reach you and you do not reply for 10 business days, I treat the build as cancelled. I keep what you have paid, there is no refund, and you owe nothing more.

[Who does each step of a build, and how long it takes](https://awaytrader.com/bots/how-a-build-works)

## Ready to start your automated bot?

[Start a Bot Builds inquiry](https://awaytrader.com/bots#inquiry)[Read the guides for automated bots first](https://awaytrader.com/bots/guides)

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.

-

### Solo, $1,500

One ticker.
 [Buy Solo](https://whop.com/genie-trades/genie-trades-bot-build-solo/?utm_source=genietrades&utm_medium=site&utm_campaign=site-buy-chooser&utm_content=page)
-

### Trio, $2,500

Up to 3 tickers.
 [Buy Trio](https://whop.com/genie-trades/genie-trades-bot-build-trio/?utm_source=genietrades&utm_medium=site&utm_campaign=site-buy-chooser&utm_content=page)
-

### Max, $3,000

Up to 5 tickers.
 [Buy Max](https://whop.com/genie-trades/genie-trades-bot-build-max/?utm_source=genietrades&utm_medium=site&utm_campaign=site-buy-chooser&utm_content=page)

 [Only want your rules backtested? The Backtest is $199 (day trades only, no written rules document).](https://whop.com/genie-trades/genie-trades-strategy-session/?utm_source=genietrades&utm_medium=site&utm_campaign=site-buy-chooser&utm_content=page) [Compare the three](https://awaytrader.com/bots/pricing) [Or send a free inquiry](https://awaytrader.com/bots#inquiry)

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

For education only, not financial advice.
