Core concepts
The main words in AlgoTradingHub — strategy, revision, backtest, sweep, deployment, live slot, portfolio, baseline, drift — and how they connect.
How the pieces fit
Everything in the app hangs off a strategy:
- A strategy is your set of rules. Each change to its rules makes a new revision.
- A backtest runs one revision on past data. A sweep runs one revision many times, with different settings.
- A deployment runs one revision live, on one broker account, and takes one live slot.
- Its baseline is a backtest of the same revision, and drift is how far live trading has moved from it.
- A portfolio groups slots. Each slot is a strategy, its reference backtest and, optionally, its live deployment.
- A virtual symbol carries your broker's costs into a backtest or a sweep.
The sections below take each one in turn.
Strategy and revision
A strategy is a set of rules that decides when to open, change and close trades on one or more instruments.
Every change to a strategy's rules makes a new revision. A backtest, a sweep and a deployment each keep the revision they ran, so a result always matches the rules that made it, even after you edit the strategy. Renaming a strategy or editing its notes makes no new revision.
A strategy is either hedged (several positions on one instrument at once) or netting (one position per instrument). It deploys only to a broker account of the same type; deploying netting strategies is turned off for now, while they can still be backtested.
How it worksStrategy semanticsWhat makes a revision, and what you can do with oneValues, conditions, actions
Video tutorial · B1 · on YouTubeStrategy, settings and valuesA strategy is built from three kinds of part:
- Values are what it reads: prices, candles, indicators, the time, its own open trades and the account.
- Conditions compare values, for example "the close is above the moving average", and can be grouped with all, any or none.
- Actions are what it does when their conditions are true: open a trade at market, place a pending order, move a stop, close a position.
Each action runs on an event: a candle closing on a timeframe you choose, or every new price.
How it worksStrategy semanticsExactly how values, conditions and actions behaveBacktest and sweep
A backtest runs one revision over a period of recorded market data, on a simulated account, and produces a report: the equity curve, the summary figures and every trade. It runs bar by bar or tick by tick (Bar or tick mode).
A sweep (an optimization) runs the same revision many times, each with a different combination of the settings you choose to vary, and ranks the combinations. A sweep result becomes a full backtest when you rerun it as one. A walk-forward repeats a sweep over rolling stretches of the period and tests each one's winner on the months that follow, which that sweep never saw.
The validation report gathers what tells you how far to trust a result: how many variants the strategy and its copies have tried and the Sharpe ratio corrected for them, the walk-forward, Monte Carlo, buy-and-hold, and a hold-out, a stretch of history the platform keeps out of every run until you test on it once (Validation).
How it worksOptimizationWhat a sweep is, and what it costsBroker account, deployment, live slot
A broker account is a trading account at your broker that you connect to AlgoTradingHub (how to connect one).
A deployment is one revision of one strategy, running live on one broker account. It runs on our servers until you pause or stop it.
A live slot is one deployment that is running or paused: one of your plan's live strategies. Your plan sets how many you can run, and you can connect as many broker accounts as you have live strategies: the base plan includes 1, and the live strategies add-on raises it to 2, 3, 5, 10, 20, and 40 (Plans and usage).
How it worksPlans and limits, exactlyWhen a deployment takes a live slot, and when it frees itPortfolio and slot
A portfolio groups several strategies so you can read them as one account: their combined equity, drawdown and margin (Portfolios).
Each slot of a portfolio is a strategy, its reference backtest and, optionally, its live deployment. A whole portfolio can be deployed in one go (Deploying a portfolio).
Virtual symbol
Backtests run on broker-independent market data, with its recorded spread. A virtual symbol adds your broker's costs and contract terms to an instrument — commission, swap, spread, lot sizes and leverage — so a backtest or a sweep charges what your broker would. Live trading never uses one: live trades pay your broker's real costs. You manage virtual symbols in Settings → Virtual symbols.
How it worksCosts and the accountWhat a virtual symbol changes in a runBaseline and drift
A deployment's baseline is a completed backtest of the same strategy and the same revision. Drift is how far live trading has moved away from it: a deeper drawdown, a longer losing streak or a lower profit factor than the backtest showed. Drift alerts tell you when that happens.
How it worksLive vs backtest driftWhich backtest can be a baselineQuestions?support@algotradinghub.io