A consistent strategy lifecycle
Give each strategy a clear structure, from initialisation and market events to shutdown.
Build your trading logic in Rust. Backtest it, run it live and choose the data, brokers and infrastructure that suit your strategy.
AQE handles the structure around your strategy: market events, order execution, saved state and broker connections. You decide how the strategy trades.
Give each strategy a clear structure, from initialisation and market events to shutdown.
Track trading signals through validation, order submission, fills and position management.
Connect your broker and datafeed through shared interfaces, or build your own adapter.
Save live strategy state locally and follow activity in the terminal or AlgoQuant Studio.
Market data feeds your models. Insight pipelines apply your rules, and the broker handles execution, with strategy state saved for monitoring and review.
Coordinate lifecycle hooks, market events, state, models, and configured runtime components.
Rust compiles strategy logic to native code, with explicit resource management and strong compile-time checks. AQE combines that foundation with Polars for data analysis and a consistent framework for trading decisions.
AQE 0.2.0 to 0.2.3 · Apple M5 Max
26 September 2026 - 14 November 2026vs AQE 0.2.2-0.1%
vs AQE 0.2.2+7.2%
vs AQE 0.2.2+3.4%
Independent, zero-based scale for each workload.
Measured throughput change between versions. Synthetic local workloads; not end-to-end trading performance.
0.2.0 is a historical reference, not a paired retest. The OS, source state and run counts differ.
The 0.2.0 figures were recorded on 26 September 2026, using three runs on the same Apple M5 Max with the same reported workload sizes and release profile. macOS and engine behaviour changed, and the exact historical source and build were not reconstructed. The percentages describe the difference between recorded results, not a controlled like-for-like speedup.
Five alternating pairs compare AQE 0.2.2 and 0.2.3 on the same Apple M5 Max. Each workload uses 3 warm-ups and 15 samples per run; each bar uses the slowest median and the p95 from that same run.
Release build: AQE opt-level=3, LTO and one code generation unit. Deterministic in-memory workloads exclude setup, data generation, network, database, UI and MT5 I/O from timed regions. Throughput is operations divided by median duration. This does not measure real broker latency or a complete backtest.
Comparison with a rebuilt copy of the published 0.2.2 source. The host, compiler, workload sources and build profile match; dependencies changed, so these results do not isolate a single optimisation.
Indicators were effectively unchanged. PaperBroker median throughput increased, but its p95 was slower; not every workload or percentile improved.
These dated measurements describe the recorded source snapshot, not verification of a later release. They do not measure live broker latency.
Validation: 1,190 offline tests passed, with 34 ignored and 3 network tests excluded. Lifecycle checks preserved identical economic and journal outcomes.
250,000 bars: SMA, EMA, RSI and ATR
20,000 insights: entry, TTL and reward/risk
5,000 submissions and fills on one synthetic bar
Two alternating pairs per workload. Execution uses 3 warm-ups and 15 samples; lifecycle uses 1 warm-up and 7 samples. Values below are median / p95 in milliseconds.
| Workload | AQE 0.2.2 | AQE 0.2.3 |
|---|---|---|
| Journalled execution · 5,000 orders | 4,199.42 / 4,297.74 | 3,097.75 / 3,199.92 |
| Backtest · 1,000 complete trades | 1,323.17 / 1,336.82 | 911.31 / 996.37 |
| Offline live-style · 1,000 complete trades | 5,452.26 / 5,516.81 | 5,344.19 / 5,408.48 |
| Backtest replay · 10,000 bars | 1,100.37 / 1,117.13 | 227.41 / 231.01 |
The offline live-style fixture includes an unchanged five-second sweep interval. It excludes MT5, network and cloud services; these timings are not venue latency.
cargo run --release -p aq-engine --example engine_performance --features runtime --lockedBaseline JSONMeasured JSON reportControlled comparison JSONValidation reportSource and evidence hashesAQE 0.2.0 historical JSONRun 1: AQE 0.2.2 / AQE 0.2.3Run 2: AQE 0.2.2 / AQE 0.2.3Run 3: AQE 0.2.2 / AQE 0.2.3Run 4: AQE 0.2.2 / AQE 0.2.3Run 5: AQE 0.2.2 / AQE 0.2.3
pub trait InsightPipe {
fn version(&self) -> &str;
fn run(
&mut self,
ctx: &mut dyn StrategyContext,
insight: &mut Insight,
) -> InsightPipeResult;
}Keep position sizing, entry rules and risk controls in focused components. Combine them into insight pipelines that respond as orders and positions change.
let mut hyperparameters = HyperParameterConfig::new();
hyperparameters
.set_sweep_id("ema-crossover-v1")
.add_hyper_parameter(
HyperParameter::new("atr_period", 14).values([10, 14, 20]),
)?
.add_hyper_parameter(
HyperParameter::new("ema_period", 21).range(10.0, 30.0, 5.0),
)?;
let mut state = build_state(timeframe.clone());
state.set_hyper_parameter_config(hyperparameters);
state.run_backtest(start, end, timeframe).await?;Define values or ranges in your strategy and run a repeatable parameter sweep. Each combination starts with fresh state and saves its own results for comparison.
--hyper-sweep runs every combination sequentially.--hyper-seed <prefix> runs one reproducible combination.Develop and test with historical data, then connect a live broker using the same strategy structure. Your models and trading rules stay together as you move between environments.
Use the same lifecycle for historical tests and live sessions.
Choose execution and market data providers independently through UnifiedBroker.
Keep backtest results in SQLite and monitor live state in the terminal or Studio.
Run AQE on your computer or a remote server. Keep your strategy code private, connect your preferred services and add Studio when you want a visual workspace.

Use the built-in integrations, follow the examples and extend the engine with documented Rust interfaces.
Test with simulated orders or connect to MetaTrader 5 for live execution.
Read broker docs →Access historical data through Yahoo Finance or MT5, with live feeds through MT5.
Read datafeed docs →Apply sizing, validation and execution rules to each trading signal.
Read pipeline docs →Follow your running strategies in Studio's live dashboards.
Read AQS docs →

Use AQE on its own, or pair it with AlgoQuant Studio to build visually, review backtests, deploy strategies and monitor live trading.
Answers to common questions about setup, integrations and live trading.
AlgoQuant Studio (AQS) is the desktop workspace. AlgoQuant Engine (AQE) runs your strategies. AlgoQuant Insights (AQI) connects published research with backtests and references.
Explore the workflowYes. You can build and run strategies in your own Rust project. Studio and AQS Cloud are optional.
Get started with the enginePython bindings are planned for a future AQE release. AQE currently uses Rust; availability and API details will be announced separately.
Build a Rust strategyYes. Your strategy uses the same lifecycle and components in both. Change the broker and datafeed for the environment you need. Live fills and execution conditions still depend on your broker and the market.
Read about backtest-to-live operationUse PaperBroker for simulation, MetaTrader 5 for live execution, and Yahoo Finance or MT5 for market data. You can also build custom adapters using AQE's broker and datafeed interfaces. See the guides for setup and compatibility.
Read the integration guidesAQE is source-available under the PolyForm Shield License 1.0.0. See the licence for the full terms.
Read the licenceStart with a working example, connect your data and run a backtest. The guides take you through each step.
We use essential cookies and storage for sign-in, account security, colour theme preferences, this notice, and required PostHog internal usage, session quality, and reliability metrics. We do not use advertising cookies.