Multi-symbol indicators¶
Looking for
Correlation(BTC, ETH)? This page is about running the same single-input indicator (SMA, EMA, RSI) independently per symbol. For two-input indicators that consume a synchronised pair of streams, see cross-symbol-indicators.md.
Run the same indicator pipeline across multiple symbols. The C++ engine ships a built-in helper for parallel execution; from Python and Node.js, group your data per symbol and either iterate or use a process pool.
Partition by symbol¶
Sequential iteration¶
Parallel execution¶
Indicator compute releases the GIL in Python, so threads/processes give real speedup.
Use worker_threads or a tool like piscina to fan-out per symbol.
The function passed in must be thread-safe (no shared mutable state). C++ uses an internal pool; Python uses processes (real parallelism without the GIL).
See also¶
- Indicator graph — caching shared computations across nodes
- Bar aggregation — preparing the bars themselves