Skip to content

QuantFlow programs

QuantFlow is a small, restricted language for writing programs that run inside LivTorgEx. A host compiles the source into a program and controls the input, available functions, and execution:

source text → QuantFlow compiler → program → host-controlled execution

Programs are designed for focused transformations and decisions. They can read the value supplied by their host, use registered functions, and return a result. They cannot import modules, run loops, define classes, or execute arbitrary code.

QuantFlow is currently used by API mappings, workflow Program nodes, and strategy-version bot legs. Bot legs use the quantflow_bot_v1 runtime and can run QuantFlow source directly; attached Rust WASM modules are optional. See Bot strategy programs for indicators, event handlers, order actions, and a working QuantFlow-only example.

The signal service is not implemented yet. We do not plan a separate declarative rule format for signal programs.

The signal service is not implemented yet. The first version is intended to calculate supported indicators in the Rust host with ta-rs, then pass the needed values to QuantFlow for a small decision such as detecting a price crossing an indicator line. The language and runtime currently have no signal-service input contract, signal-emission API, or MRC host integration.

See Signal programs for the boundary between the current runtime and that planned service.