AlgoQuant
Studio + Engine
AQS Cloud
A modular Rust framework for algorithmic trading.Source-available · Rust

AlgoQuant Engine

Build your trading logic in Rust. Backtest it, run it live and choose the data, brokers and infrastructure that suit your strategy.

Modular by designBuild components you can reuse across strategies.
Your infrastructureRun on your own machines, without a required cloud service.
Standalone or connectedWork in Rust or add Studio for visual tools and monitoring.
The engine behind your strategy

Focus on your trading logic.

AQE handles the structure around your strategy: market events, order execution, saved state and broker connections. You decide how the strategy trades.

01

A consistent strategy lifecycle

Give each strategy a clear structure, from initialisation and market events to shutdown.

02

Signals you can follow

Track trading signals through validation, order submission, fills and position management.

03

Your choice of integrations

Connect your broker and datafeed through shared interfaces, or build your own adapter.

04

Monitoring built in

Save live strategy state locally and follow activity in the terminal or AlgoQuant Studio.

How AQE works

From market data to trading decisions.

Market data feeds your models. Insight pipelines apply your rules, and the broker handles execution, with strategy state saved for monitoring and review.

Interactive AQ Engine architecture

Select a module or insight state to inspect its role. Pan or zoom to explore.

Selected moduleStrategy

Coordinate lifecycle hooks, market events, state, models, and configured runtime components.

Engine benchmarks

Performance, measured.

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 2026
Throughput: higher is faster
AQE 0.2.0 (Historical reference)AQE 0.2.2AQE 0.2.3
Indicators
+7.8%vs recorded AQE 0.2.0
AQE 0.2.026.23 M bars/s
AQE 0.2.228.31 M bars/s
AQE 0.2.328.28 M bars/s

vs AQE 0.2.2-0.1%

Insight Pipes
+23%vs recorded AQE 0.2.0
AQE 0.2.08.48 M stages/s
AQE 0.2.29.72 M stages/s
AQE 0.2.310.43 M stages/s

vs AQE 0.2.2+7.2%

PaperBroker
+75.9%vs recorded AQE 0.2.0
AQE 0.2.0401 k orders/s
AQE 0.2.2682.2 k orders/s
AQE 0.2.3705.2 k orders/s

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.

Methodology and detailed results

Historical reference

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.

Latest release comparison

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.

Indicators

250,000 bars: SMA, EMA, RSI and ATR

Median / p95
Milliseconds
AQE 0.2.0
9.53 / 9.62
AQE 0.2.2
8.83 / 9.01
AQE 0.2.3
8.84 / 9.28
Throughput
28,283,077 bars/s

Insight Pipes

20,000 insights: entry, TTL and reward/risk

Median / p95
Milliseconds
AQE 0.2.0
7.08 / 7.51
AQE 0.2.2
6.17 / 6.33
AQE 0.2.3
5.75 / 5.93
Throughput
10,425,867 stages/s

PaperBroker

5,000 submissions and fills on one synthetic bar

Median / p95
Milliseconds
AQE 0.2.0
12.47 / 12.82
AQE 0.2.2
7.33 / 7.58
AQE 0.2.3
7.09 / 7.79
Throughput
705,239 orders/s

Execution and lifecycle results

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.

WorkloadAQE 0.2.2AQE 0.2.3
Journalled execution · 5,000 orders4,199.42 / 4,297.743,097.75 / 3,199.92
Backtest · 1,000 complete trades1,323.17 / 1,336.82911.31 / 996.37
Offline live-style · 1,000 complete trades5,452.26 / 5,516.815,344.19 / 5,408.48
Backtest replay · 10,000 bars1,100.37 / 1,117.13227.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.

Host
Apple M5 Max · Mac17,6 · 18 CPU · 48 GiB
Historical reference
AQE 0.2.0 @ ecdbf25 · 26 September 2026 · macOS 27.0 · 3 runs
Latest comparison baseline
Rebuilt published 0.2.2 source · same host and toolchain
Measured snapshot
AQE 0.2.3 @ e2fce39 · rustc 1.98.1 (48a229cea 2026-09-01) · cargo 1.98.1 (797e8a9bc 2026-08-05)
Source state
Includes local changes; source hashes are recorded in the JSON report.
Peak memory
Complete suite, RSS: 122.6 MiB → 117.8 MiB
Reproduce the recorded source snapshotcargo run --release -p aq-engine --example engine_performance --features runtime --locked

Baseline 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

aq-engine/src/core/pipeline/mod.rsCurrent trait
pub trait InsightPipe {
    fn version(&self) -> &str;

    fn run(
        &mut self,
        ctx: &mut dyn StrategyContext,
        insight: &mut Insight,
    ) -> InsightPipeResult;
}
Reusable components

Write once. Reuse across strategies.

Keep position sizing, entry rules and risk controls in focused components. Combine them into insight pipelines that respond as orders and positions change.

Reuse quantity sizing, market entry, stop-loss, take-profit, and trading-window pipes.
Compose state-aware logic for New, Executed, Filled, Cancelled, Rejected, and Closed insights.
Use the built-in brokers and datafeeds, or implement your own adapters.
examples/hyperparameter.rsDeterministic sweep
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?;
Hyperparameter sweeps

Test parameter combinations, one run at a time.

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.
Without a sweep flag, your strategy uses its default parameter values.
From backtest to live

One strategy. Backtesting and live trading.

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.

01Historical dataYahoo Finance or MT5 bars
→
02AQ EngineStrategy, models, pipes, risk
→
03Paper executionOrders, fills, account state
→
04Live executionMT5 and monitored sessions
Shared

Strategy lifecycle

Use the same lifecycle for historical tests and live sessions.

Replaceable

Execution and data

Choose execution and market data providers independently through UnifiedBroker.

Reviewable

State and outcomes

Keep backtest results in SQLite and monitor live state in the terminal or Studio.

Run it your way

Your code. Your infrastructure.

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.

Run strategies without an AQS Cloud connection.
Access saved SQLite backtests outside Studio.
Follow metrics, variables, insights and logs in the terminal.
Extend the engine with your own broker and datafeed adapters.
AQ Engine terminal UI showing runtime metrics, insights, variables, watches, and logs
AQ Engine Terminal UIMonitor your strategy without leaving the terminal.
Integrations and resources

Start with the tools you need.

Use the built-in integrations, follow the examples and extend the engine with documented Rust interfaces.

Execution

PaperBroker · Mt5Broker

Test with simulated orders or connect to MetaTrader 5 for live execution.

Read broker docs →
Market data

Yahoo Finance · MT5

Access historical data through Yahoo Finance or MT5, with live feeds through MT5.

Read datafeed docs →
Decision model

Insights · Pipelines

Apply sizing, validation and execution rules to each trading signal.

Read pipeline docs →
Studio integration

Optional AQS connection

Follow your running strategies in Studio's live dashboards.

Read AQS docs →
AlgoQuant Studio rendering a profitable closed AQ Engine insightAlgoQuant Studio rendering a profitable closed AQ Engine insight
Insights in StudioReview the recorded lifecycle of each insight in Studio.
Engine and workspace

Add a workspace around your engine.

Use AQE on its own, or pair it with AlgoQuant Studio to build visually, review backtests, deploy strategies and monitor live trading.

Common questions

Before you get started.

Answers to common questions about setup, integrations and live trading.

What are AQS, AQE and AQI?

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 workflow
Can I use AQE without Studio?

Yes. You can build and run strategies in your own Rust project. Studio and AQS Cloud are optional.

Get started with the engine
Can I use Python with AQE?

Python bindings are planned for a future AQE release. AQE currently uses Rust; availability and API details will be announced separately.

Build a Rust strategy
Can I reuse strategy logic in backtests and live trading?

Yes. 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 operation
Which brokers and datafeeds can I use?

Use 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 guides
How is AQE licensed?

AQE is source-available under the PolyForm Shield License 1.0.0. See the licence for the full terms.

Read the licence
Get started

Build your first strategy with AQE.

Start with a working example, connect your data and run a backtest. The guides take you through each step.