AlgoMLN
Build strategies. Backtest precisely. Trade confidently.
A fast, local-first algorithmic trading platform built in Rust. Engine-first by design — custom strategy DSL, deterministic backtests, and a plugin system powered by Rhai and WASM.
Built from the bottom up
Most trading platforms are UI-first. AlgoMLN is built engine-first — every layer is tested, deterministic, and production-grade before the next layer is added.
Everything in one engine
One execution path from backtest to live. No hidden code paths, no divergence.
false → true transitions.
PaperBroker and live brokers are interchangeable behind the
ExecutionTarget trait. Backtests, paper trading, and live trading share one engine.
Strategies in plain text
Write strategies in .algomln files — a small, rules-only DSL.
No variables. No loops. Just conditions and actions.
Rules compile from source text through a full lexer → parser → AST → validator pipeline before hitting the runtime engine. Same code runs backtests, paper trading, and live.
# EMA crossover strategy WHEN cross_above(ema(20), ema(50)) BUY 10 WHEN cross_below(ema(20), ema(50)) SELL ALL # RSI filter on top WHEN ema(9) > ema(21) AND rsi(14) < 60 BUY 5 # Bollinger band breakout WHEN close < bb_lower(20) BUY 10 WHEN rsi(14) > 75 SELL ALL
Measured. Verified. Fast.
Benchmarked on a stock i5 8th gen — not a server, not a workstation.
Build progress
AlgoMLN is being built engine-first. Each layer is tested before the next is added.