Trading Bot
- Category
- Algorithmic Trading
- Level
- Foundation
Simple definition
Software that places orders for you according to rules you set. It removes hesitation and fatigue from execution; it does not decide whether the rules were any good.
Professional definition
A program connected to a venue that reads market data, evaluates a fully specified rule and submits orders with no human in the loop. Automation industrialises whatever rule it is handed: a bad rule executed flawlessly loses money faster, and far more consistently, than a distracted human would have.
Technical definition
A bot has three parts that fail in different ways: a data path that can go stale or disconnect, a decision layer that can be no better than the test it came from, and an order path that must survive rejections, partial fills, duplicate submissions and reconnection without doubling a position. The edge, if any exists, lives only in the decision layer; most live losses come from the other two, plus costs the simulation charged too lightly.
Academic definition
An autonomous order-generating system mapping a market-data stream onto position decisions through a pre-specified rule set, with no discretionary human intervention at the point of execution.
Mechanism
Automation changes the variance of execution, not the expected value of the rule. A human hesitates, sizes inconsistently and skips signals after a loss, which adds noise and sometimes removes the worst trades by accident. A bot strips that noise out in both directions: every signal is taken at the stated size, so the rule's true expectancy, positive or negative, is what the account receives.
In practice
- Who uses it
- Systematic traders, market makers who cannot quote by hand, and anyone running a rule across more pairs or more hours than a person can watch.
- Why it matters
- It enforces the rule exactly as written, at all hours, and makes results attributable to the rule rather than to the operator's mood.
- Limitations
- It cannot create an edge, cannot notice that the regime changed, and will keep trading a broken rule until something outside it intervenes.
Common mistakes
- Deploying with no kill switch and no maximum-position check.
- Treating an untested rule as safer because code runs it.
- Rebuilding position state from local memory after a disconnect.
Examples
A grid bot buys every fixed step down and sells every step up. In a range it collects small profits reliably; in a trend it accumulates losing inventory just as reliably, because the rule has no notion of being wrong.
Fees and spread of five basis points per round trip, twenty round trips a day, 250 days: the rule must earn more than 25,000 basis points of gross edge on traded notional just to break even.
- cost per round trip = 5 bps of traded notional
- 20 round trips per day
- 250 trading days
- 5 x 20 = 100 bps per day
- 100 x 250 = 25000 bps per year
This is cost measured on turnover, not on equity: it is the gross edge the rule must produce across all its trades, which is why trade frequency and cost matter more than win rate for an automated rule.
Related terminology
- related
- Exchange API Rate Limiting Latency Backtesting Overfitting Paper Trading Live Forward Testing Strategy Decay Order Execution Algorithm Trading Discipline
Order Execution Algorithm
A bot decides what position to hold. An execution algorithm decides how to work an order that has already been decided. A bot may contain one; the two answer different questions and fail for different reasons.
Sources
Editorial status
Written, not yet reviewed.
