How to write rules an automated bot can follow
A bot only does what's written down. Most rules I get make sense to the person who wrote them and still leave a coder guessing.
What a build can trade
Every rule needs to be exact, with nothing left to judgment. Builds are for Interactive Brokers only, and every position closes before the market close. There's no crypto, and futures are quote only. The plans list what a build covers.
Put a number on every word
Dip, strong, breakout, near the high. They feel exact when you trade by hand, but a bot can't read them. Each one needs a number or a line on the chart. Write each one as an exact condition that names the data and the comparison with a number. The rule and the numbers are yours, and it has to come out as one thing and only one.
Say which candle, which price and which clock
Write the candle size and whether you mean the close, the high or the last trade. Write the time zone too. 10:00 in New York and 10:00 where you live aren't the same thing if you're out west.
Every entry needs an exit
The bot has to know how each trade ends. That can be a stop or a target, a time of day, or any mix of them. Say what happens if the stop and the target both get hit inside the same candle, because a backtest has to pick one.
Answer the small stuff
Write down the most trades it can take in a day, whether it can hold more than one position, what it does on half days, and what it does if an order only partly fills. The bot runs into all of these in its first week.
Leave out anything that needs judgment
"Skip days that feel choppy" can't be coded. Make it exact or drop it. The blank spec has a note like that at the bottom.
Education and software, not financial advice. Trading can lose money. Options can lose 100%. AwayTrader is not affiliated with or endorsed by Interactive Brokers.
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.