Stock Trading Bots: How They Trade for You

By Andrew Miller — Head of Equity Research · Published November 7, 2026 · 8 min read

A stock trading bot is software that follows fixed rules to decide which US stocks or ETFs to hold, then sends the buy and sell orders to your brokerage account for you. With AlgolaneBots, the rules run after the market closes, the orders go to your broker before the next open, and the trades fill at the opening price. Your money stays at your broker the whole time, and the bot can place trades but cannot move or withdraw funds.

This guide explains the steps a stock bot goes through, the access it needs, which brokers AlgolaneBots works with, and what a bot cannot do for you.

How does a stock trading bot decide what to trade?

Every stock bot has two parts: the rules that decide what to hold, and the plumbing that turns a decision into an order at a broker. People often focus on the first part and forget the second, but both matter.

The rules are written in advance. A simple rule might say "hold a broad US index fund while it is above its long-term average, otherwise hold short-term bonds". A more complex one might score a list of stocks on recent strength and hold the top few. Either way, the bot does not guess or improvise. It reads the latest prices, applies the same rules it always applies, and produces a target: a list of what it wants to hold and in what proportions.

Then it compares that target with what the account already holds. The difference becomes a set of orders. If the target says 40% in a fund and the account holds 30%, the bot buys the gap. If a stock has dropped out of the target, the bot sells it. If nothing has changed, it does nothing, which is a perfectly normal day for most strategies.

AlgolaneBots's four US strategies all work this way, but on different schedules:

Strategy How often it checks What it holds
Leveraged Growth Every trading day Leveraged growth funds such as TQQQ and SOXL, bonds, volatility and inverse funds
Market Switch Every trading day One fund at a time, usually SPY, sometimes UVXY or leveraged funds
Big Tech Trend First trading day of each month Technology leaders in healthy markets; short-term bonds, gold and defensive sectors in weak ones
Steady Growth First trading day of each week Seven fixed names, reweighted every week

You can read what each one does in more detail in the strategies overview. For the general idea behind rule-based trading, see what a trading bot is and how it works.

What happens between the close and the open?

Most stock bots that hold positions for days or weeks do their thinking overnight. That is how AlgolaneBots works, and there is a practical reason: the strategies were tested on decisions made from closing prices and fills at the next open, so live trading copies that timing as closely as possible.

Time (New York) What the bot does
After the 4pm close Reads closing prices and works out the new target holdings
Early morning Starts the order run and checks that everything is in order
By 9:28am Sends any orders; anything later is skipped for that day
9:30am, the open The broker sends the orders to the market and they fill at opening prices
Later in the day Reads positions back so the dashboard matches the broker

The 9:28am cutoff matters more than it looks. If something delays the run, trading at 11am at a different price from the one the rules assumed would quietly change the strategy. Skipping the day is the safer failure.

Before any order goes out, each run also checks that the customer has an active subscription and has consented to live trading, that the signal is fresh, that each fund can still be traded, and that no price gap looks like an unrecorded stock split. Every order carries a unique ID, so a network retry cannot buy the same thing twice. Our post on how a trading bot places orders safely explains why each check exists.

What access does a bot need at your broker?

A stock bot needs exactly two powers: to place trades and to read what the account holds. It does not need to move money in or out, change your personal details or open new accounts, and a well-built bot should not ask for those things.

There are two common ways to grant that access:

  • Sign-in through the broker (OAuth). You log in on the broker's own website and approve a short list of permissions. The bot never sees your password and only gets a token carrying the access you approved.
  • An API connection or key. The broker gives you a key, or a program on your computer, that software uses to talk to the account. The safety then depends heavily on where that key or program lives and who can reach it.

AlgolaneBots uses both, depending on the broker, and in each case the access is trade-only. It can place trades and read positions. It cannot move or withdraw money. AlgolaneBots is software, not a broker and not an adviser, and it holds no customer money. For a fuller look at permissions and warning signs, see is it safe to connect a bot to your broker.

Which brokers can AlgolaneBots connect to?

The four US strategies can trade through five brokers. Alpaca connects through the browser. The other four connect through the free AlgolaneBots desktop app for Windows, which keeps your broker key in your own computer's keychain and places the orders itself.

Broker How it connects Where your login or key lives
Alpaca Sign in on Alpaca's own page (OAuth, trade-only) At Alpaca; AlgolaneBots holds only the approved token
Interactive Brokers AlgolaneBots desktop app, through IB Gateway or Trader Workstation On your own computer
Tradier AlgolaneBots desktop app Your computer's keychain
tastytrade AlgolaneBots desktop app Your computer's keychain
TradeStation AlgolaneBots desktop app Your computer's keychain

A few rules apply whichever broker you pick:

  • Each broker connection follows one bot. If you want to run two strategies with real money, you use two separate connections, which keeps their positions from getting tangled.
  • The desktop app does the trading for desktop brokers. Because it places the orders itself, the computer needs to be on with the app running when orders are due before the open.
  • Real-money trading needs a subscription. Live trading stays off until you subscribe, consent and connect a live account.
  • Whole or fractional shares depend on the broker. Some brokers do not offer fractional shares through their API, so a bot there trades whole shares and keeps any remainder as cash.

Our Alpaca guide walks through the browser sign-in, and the brokers page lists setup notes for each one. The fifth AlgolaneBots strategy, Gold Breakout, trades gold rather than stocks and runs through MetaTrader 5 instead.

Does a stock trading bot make money?

Sometimes, and sometimes it loses a lot. A bot follows its rules faithfully, including through the stretches when those rules are wrong. A safe, well-built connection has nothing to do with whether the strategy behind it is profitable.

Here is an honest example. Big Tech Trend, in a historical backtest (a computer test on past prices) from January 2011 to November 2026, returned +37.3% a year with a worst fall of 29%. Over the same period the S&P 500 returned +14.0% a year with a worst fall of 34%, and the Nasdaq 100 returned +18.3% a year with a worst fall of 35%. Nobody earned these results, and future results will differ. The caveat is serious: the stock list was chosen with hindsight, and three stocks made 81% of the profit.

Its deepest fall, 29%, ran from June 2026 to the end of October 2026 and has not yet recovered. That is a useful reminder that the worst drawdown in a backtest can be the most recent one, and that "the bot will bounce back" is a hope, not a rule. For more on this, read how much a trading bot can lose.

What a stock bot cannot do for you

Automation removes some jobs and leaves others in place. A stock bot will not:

  • Choose a strategy that suits you. AlgolaneBots gives every customer the same strategies; nothing is a personal recommendation.
  • Avoid opening gaps. Orders fill at the open, and prices can jump overnight on news, in either direction.
  • Protect against leveraged fund decay. Leveraged and inverse ETFs reset daily, so over choppy periods they can lose value even when the index they track ends roughly flat. Our post on leveraged ETF decay explains why.
  • Fix a broken setup. An expired broker login or a computer that is switched off means orders do not go out.
  • Remove the need to watch. You still check that positions match what the dashboard shows and decide whether you can live with the falls.

If something looks wrong, the kill switch stops every broker order at once. Our safety overview covers how it works.

Key takeaways

  • A stock trading bot applies fixed rules to recent prices, works out what it wants to hold, and sends the difference to your broker as orders.
  • AlgolaneBots decides after the close, sends orders before a 9:28am New York cutoff, and fills at the open, matching how the strategies were tested.
  • The bot only needs trade and read access; AlgolaneBots cannot move or withdraw money and holds no customer funds.
  • Alpaca connects by signing in on Alpaca's page; Interactive Brokers, Tradier, tastytrade and TradeStation connect through the Windows desktop app, which keeps your key on your computer.
  • A safe connection does not make a strategy profitable; backtests are simulated, and real falls can be deep and slow to recover.

This is general education, not personal advice.

See it trade on paper first

You can watch all four US strategies trade without connecting a broker. AlgolaneBots gives you a $10,000 paper account with real prices, next-open fills and a 0.05% cost on every fill, free for 90 days with no card needed. Start your paper trial and connect a broker only when you are ready.

Where the numbers come from: every strategy figure is from AlgolaneBots's own historical backtests, run on past prices with the method on how we test. Nobody earned them, and future results will differ. General market facts are checked against regulator and company sources. This guide is general information, not personal advice. Read the risk disclosure and how we write our guides.

Keep reading

Automated trading basics · 8 min read · Catherine Ward

How a Trading Bot Places Orders Safely

How trading bots work from signal to filled order, and the safety checks a careful bot runs: consent, signal age, cutoffs, split checks and unique order IDs.

Automated trading basics · 7 min read · Gregory Walsh

What Is a Trading Bot and How Does It Work?

What is a trading bot? A program that follows fixed rules to decide when to buy or sell, then sends orders to a broker. Here is how one works, step by step.

Automated trading basics · 7 min read · Priya Sharma

AI Trading Bots: What They Really Do

What does an AI trading bot really do? Most use fixed rules or machine learning on past prices. Learn the difference, the overfitting risk and what to check.