How it works: the technical reference
The exact rules behind every number AlgoTradingHub shows: backtests, costs, metrics, live deployments, and how the engine is checked.
The reference states the exact rules behind every number AlgoTradingHub shows: how a backtest turns recorded prices into trades, what it charges, how each figure is computed, how a live deployment runs on your broker account, and how the engine is checked. The how-to guide links here wherever a decision depends on an exact rule.
How a backtest runs
- Market data: where every backtest's prices come from, how much history each instrument has and how fresh it is, the known data defects, the instrument table and your broker's symbols, and how ticks become the bars and the clock your rules read.
- The execution model: the two modes, when each event fires, the order of operations inside one step, what a rule can see, warm-up, the start and end of a run, multi-symbol timing, and the limits that stop a run.
- Orders and fills: rule by rule, how actions become fills and closed trades: market and pending orders, slippage, stops and targets, gaps, trailing and break-even, closing, hedged and netting accounts, volume rounding and every refusal.
- Costs and the account: what a backtest charges (spread, slippage, commission, swap), virtual symbols and broker presets, and the simulated account: settings, currency conversion, balance and equity, margin, stop-out and lot sizes.
The report's numbers
- Every figure, defined: every figure of a backtest report with its exact rule: the ground rules, the summary, equity and drawdown, results, ratios and trade statistics.
- Report charts, trades list and Compare: the equity chart, the distributions, MFE and MAE, the trades list, the trade export and Compare.
- Live deployment figures: how a live deployment's figures differ from a backtest report's: the P&L card, trades, the baseline, equity samples, the live report and the account page.
Strategies
- Strategy semantics: every building block and its exact behaviour: values and indicators, conditions and timing, actions, hard limits and complexity, revisions and the text form, and where the same strategy behaves differently live.
- Indicators: the catalog in four groups, how a line is read, lines drawn forward or back, warm-up and volume, and how the values are verified; each indicator's formula, lines, reading and porting on its group's page.
Optimization and replay
- Optimization: what a sweep runs, its limits and test-year cost, the settings every combination shares, costs in a sweep, reading the report, failures, and using a result.
- Replay: what a replay records and what it costs, the high-resolution window, size and retention, how exact its numbers are, and the player.
Live trading
- Live execution: one engine built for many brokers (cTrader today), start-up, orders and stops at the broker, the connection, heavy load, pause, stop and restart, our updates, and whose numbers you see.
Risk limits and monitoring
- Drawdown limits: account limits, strategy limits and the profit target: what each measures, periods, holds, stops and locks, prop firm terms and applying a rule set, deposits and withdrawals, restarts, and strategy limits in backtests.
- Live versus backtest divergence: the divergence monitor: the baseline backtest, the metrics and their lines, how live results are blended in, and when it notifies.
- Risk alerts and notifications: every risk alert and what triggers it, channels and defaults, muting, volume guards, delivery and retention, and what to do on each alert.
Brokers, plans and your data
- Brokers and broker accounts: which brokers and accounts you can connect, what AlgoTradingHub can do on them, connecting, staying connected, re-linking and removing, and what is stored.
- Plans and limits: what the base plan and each add-on include, backtest time, live strategies, backtests, test-years, resets and the one-time pack.
- Billing and plan changes: how paying works, changing add-ons and billing, the trial, earlier plans, failed payments, cancelling, refunds, and the wind-down rules.
- Your account, security and data: signing in, sessions and protection, legal documents, where your data is and who processes it, how long each kind is kept, export and deletion.
Compared with the MetaTrader 5 Strategy Tester
- Differences from the MetaTrader 5 Strategy Tester: topic by topic, every difference that can change a result, with the rule on each side.
- Comparing a run with MetaTrader 5: how to set up a fair comparison, what to export, how MQL5 constructs translate, what cannot be replicated, and what has been measured.
How the engine is checked
- Why you can trust the engine: the three checks (recorded results, the trade-by-trade MetaTrader 5 comparison, backtest-versus-live parity), determinism and no look-ahead, and how to check or report a result yourself.
- Known limits: one list of what the simulation leaves out or simplifies and where live trading differs, each item linked to its exact rule.
Numbers and terms
- Limits and numbers: every limit and number the reference cites, in one place, generated from the code and the catalogs when these pages are built.
- Glossary: short definitions of the terms used across the reference and the guide, each linking to the page with the exact rule.
Questions?support@algotradinghub.io