2026-03-20 · updated 2026-08-29 · 18 min read pillar guide

Automated Crypto Trading: The Complete 2026 Guide

short answer

Automated crypto trading is software that evaluates market conditions on a fixed schedule and places exchange orders when your pre-defined rules are met. A working system needs four parts: a signal that fires, a sizing rule, an exit bracket placed at entry time, and a recovery loop that repairs orders the exchange rejected. Most bots fail on the fourth.

Almost every guide on this topic describes the first half of a trading bot: indicators, entry rules, backtests. That half is the easy half. This guide covers the whole loop, including the parts that only show up once real money is in the market: partial fills, rejected stop-loss orders, funding drift, and what happens when your process restarts while a position is open.

What is automated crypto trading?

Automated crypto trading means a program holds your exchange API key and places orders on your behalf when conditions you defined in advance become true. You are not delegating the decision — you are delegating the execution of a decision you already made, in writing, before the market moved.

That distinction matters more than it sounds. A discretionary trader decides at the moment of maximum emotional pressure. An automated system decides at the moment of maximum calm, then executes without renegotiating. The rules are identical; the psychology is not.

The mechanics are simple enough to state in one paragraph. A worker process wakes on a schedule, pulls current market data, evaluates your conditions, and if they pass, submits an order to the exchange over a signed REST call. It then places the protective orders, records what happened, and goes back to sleep. Everything else in this guide is detail on those five steps and the ways each one fails.

How does a crypto trading bot actually work?

A production bot is a loop, not a script. Five stages, each with its own failure mode:

StageWhat it doesTypical failure
IngestPull candles, order book, funding, positionsStale data read as fresh; a bot trading a 4-hour-old candle
EvaluateTest entry conditions against current stateFiring on a forming candle that later repaints
SizeConvert conviction into position sizeFixed notional instead of fixed risk — one wide stop wipes ten wins
ExecuteSubmit entry, then stop-loss and take-profitEntry fills, bracket rejected, position runs naked
ReconcileCompare exchange truth to internal stateRestart loses track of an open position

Most published bot tutorials cover Ingest and Evaluate, occasionally Execute, and essentially never Reconcile. Reconcile is what separates a weekend project from something you leave running.

Evaluation cadence and why it matters

How often your bot checks conditions determines which strategies are even possible. A system evaluating once a minute cannot scalp a 15-second order-book imbalance; a system evaluating on every tick will burn API rate limits and fire on noise. On TradeFloor, indicator triggers evaluate on a 60-second cadence, offset from one another so the RSI pass and the order-book pass don't collide on the same second — enough resolution for 5-minute-and-above strategies, deliberately too coarse for latency arbitrage, which is a game retail infrastructure loses.

What signals do automated systems trade?

Signal families, roughly ordered by how much infrastructure they demand:

Indicator triggers

RSI, moving averages, MACD, Bollinger position. Cheap to compute, easy to reason about, heavily crowded. Their value in an automated system is less about edge and more about consistency: an RSI rule fires the same way at 3am as it does when you're watching. See the RSI indicator explained for how the calculation behaves in crypto's volatility regime.

Market structure

Swing highs and lows, change of character, break of structure, fair value gaps, order blocks. More expensive: you need a stable definition of a swing point and enough history to find one. A structure engine reading a 100-bar window and one reading 5,000 bars do not produce the same structure — they produce different structures, and the shorter one is often an artifact of where the window happened to start.

Order flow

Order book imbalance, tape aggression, liquidation clusters. Highest resolution, shortest shelf life. Order book imbalance is computed as (bid_volume − ask_volume) / (bid_volume + ask_volume), giving a bounded −1 to +1 reading. Detail in what order book imbalance is and the practitioner treatment in building an OBI strategy.

Positioning and flow

Open interest divergence, funding rate extremes, whale wallet movement. Slower, more contextual, better as a filter than a trigger. Whale tracking covers reading large-holder behaviour without over-reading it.

News and events

Classified headlines, sentiment scores, scheduled macro. Useful mostly as a veto: knowing not to open a new position in the ninety seconds after a high-impact headline is worth more than trying to trade the headline. See how to trade crypto news.

Position sizing: the part that decides whether you survive

Sizing is where most automated systems quietly go wrong, because the wrong method still produces plausible-looking trades for months.

Fixed notional — always $1,000 per trade — is the default in most tutorials and is structurally broken. A trade with a 0.4% stop and a trade with a 3% stop carry seven times different risk at the same notional. Your equity curve becomes a lottery on which setups happened to have wide stops.

Fixed fractional risk — always 1% of equity at the stop — is the correct default. Size is derived, not chosen: size = (equity × risk%) / |entry − stop|. Every trade now costs the same when it's wrong, which is the only way an expectancy calculation means anything.

Volatility targeting scales the fraction itself by realised volatility, so a quiet regime and a violent one produce comparable equity variance. This is the refinement, not the starting point.

The cost asymmetry almost nobody accounts for

Trading costs are usually quoted as a percentage of notional — say 7.5 basis points per side, so roughly 0.15% round trip on a taker-taker fill. That number looks small and constant. In R-multiple terms it is neither:

cost_in_R = round_trip_fraction × entry_price / |entry_price − stop_price|

At a 2% stop, 0.15% round trip costs about 0.075R per trade. At a 0.5% stop it costs about 0.30R — four times as much, for identical fees. A scalping strategy showing +0.2R gross expectancy is net negative; a swing strategy showing the same number is comfortably positive. Any backtest that reports gross R and any strategy comparison that ignores stop distance is producing a number that cannot be acted on.

Protective orders: the bracket must exist before you look away

The invariant: an entry and its stop-loss are one operation, not two. If the entry fills and the stop is rejected — wrong tick size, notional below the exchange minimum, a transient rate limit — you now hold a live leveraged position with no protection, and nothing in the system knows.

Concretely, Hyperliquid rejects reduce-only limit orders below roughly $10 notional. A five-leg take-profit ladder on a small position can have its last two legs silently fail that check while the first three place fine. Your bot reports "entry successful" and your actual exposure is not what your config says.

Two defences, and you want both:

Backtesting without fooling yourself

A backtest is a claim about a strategy's behaviour on data it has already seen. Almost every way that claim goes wrong has a name:

BiasWhat it looks likeGuard
Look-aheadUsing the closing price of the candle you entered onStrip the forming candle; decide on closed bars only
Intra-bar sequencingAssuming TP filled before SL when the bar touched bothResolve ambiguous bars as the worst case
SurvivorshipTesting on the coins that still list todayInclude delisted symbols or state the limitation
Cost omissionGross P&L with no fees or fundingCharge both; see the cost-in-R formula above
OverfittingSweeping 400 parameter sets, shipping the bestOut-of-sample split; expect degradation and size for it

The practical test: run the sweep, take the best configuration, then run it untouched on a period the sweep never saw. If performance collapses, you fitted noise. It usually does at least partly — the question is how much, and whether what survives is still worth trading after costs.

Risk controls that operate above the strategy

Strategy-level rules manage one trade. Account-level rules manage the thing that actually ends accounts: correlated exposure and behavioural spirals.

Choosing an exchange for automated trading

The three venues most retail automation runs on differ in ways that matter more to a bot than to a manual trader — custody model, API authentication, rate limits, and how the WebSocket behaves when it degrades. The general trade-offs are in Binance vs Bybit vs Hyperliquid; the developer-level comparison, including auth schemes and reconnection behaviour, is in the API comparison.

Measuring whether it works

Win rate is the most quoted and least useful metric in retail trading. A 30% win rate at 4R and a 70% win rate at 0.3R are wildly different businesses, and win rate cannot tell them apart. Track expectancy instead:

expectancy_R = (win_rate × avg_win_R) − (loss_rate × avg_loss_R)

Then track it net of cost, and track it per strategy, per symbol and per market regime — because an aggregate number hides the case where one strategy funds another's losses. A journal that records the exit reason on every close makes this trivial; without one you are guessing. See building a trading journal.

What automation does not fix

Automation removes execution error: the missed entry, the moved stop, the position sized by feeling. It does not create edge. If the underlying rules have negative expectancy after costs, automating them converts a slow loss into a fast, consistent one.

It also introduces failure modes manual trading doesn't have — silent config drift, stale data, unhandled exchange errors, a process that dies holding a position. Those are engineering problems with engineering solutions, but they are real and they need the reconcile loop described above.

The honest summary: automation is a discipline multiplier and an execution-quality upgrade. It multiplies whatever sign your expectancy already has.

How TradeFloor implements this

TradeFloor runs the loop above across Hyperliquid, Binance and Bybit from one interface. Indicator and order-flow triggers evaluate on a 60-second cadence with up to five AND/OR conditions per rule. Every entry places its bracket in the same operation, and a separate healing process reconciles open positions against live protective orders continuously, re-placing anything the exchange rejected. Liquidation monitoring escalates through four levels, the last of which does nothing unless you explicitly arm that wallet. Backtests charge fees and funding by default. Keys are stored encrypted and the platform never takes custody of funds.

Start with the short definitional overview if this guide is your first exposure, or go straight to setting up a bot on Hyperliquid.

Frequently asked questions

Is automated crypto trading profitable?

It can be, but automation itself is not the source of profit. A bot executes rules faster and more consistently than a human; if those rules have positive expectancy after fees and funding, automation compounds that edge and removes execution error. If they have negative expectancy, automation makes the losses faster and more consistent. Measure expectancy net of cost before scaling size.

Is automated crypto trading legal?

In most jurisdictions, yes — using software to place your own orders through your own exchange account is legal, and every major derivatives venue publishes an API specifically for it. What varies by jurisdiction is whether derivatives trading is permitted at all, and whether managing other people's money algorithmically requires registration. Trading your own account with your own keys is the simple case; check local rules before doing anything else.

How much capital do you need to start automated crypto trading?

The binding constraint is usually exchange minimum order size rather than strategy requirements. Hyperliquid rejects reduce-only limit orders below roughly $10 notional, so a five-leg take-profit ladder needs a position large enough that every leg clears that floor. In practice a few hundred dollars is enough to run a single-entry strategy correctly; laddered entries and multi-leg exits need more.

Can a trading bot lose all your money?

Yes. Leveraged perpetual futures can be liquidated, and a bot with a missing or rejected stop-loss will hold that position without protection. The controls that matter are a bracket placed atomically with every entry, a reconcile loop that re-places missing stops, conservative leverage, and account-level drawdown limits. Never run automation on capital you cannot afford to lose.

What is the difference between a trading bot and a signal service?

A signal service tells you what to do and you execute it manually — you keep the decision and the timing risk. A trading bot holds an API key and executes automatically, so it removes the delay and the emotional override but also removes your chance to veto a bad fill. Bots need stricter risk controls precisely because there is no human in the loop.

How often should an automated system evaluate its conditions?

Match the cadence to the timeframe. Strategies on 5-minute candles and above are well served by a 60-second evaluation cycle; anything faster mostly adds API load and noise-triggered entries. Sub-second strategies are a latency game that retail infrastructure loses to co-located participants, so building for them is usually a poor use of effort.

// questions or corrections · [email protected] · more essays · /blog