Skip to main content

Module graph

Module graph 

Source
Expand description

Generic composition graph: typed indicator dependencies, shared intermediate outputs, and centralized warmup/execution ordering. Generic composition graph for indicators with typed dependencies.

Indicator::on_bar only ever sees the raw Bar — it has no way to consume another indicator’s output. engine::pipeline wires specific engines together by hand for specific milestones; it is not a reusable graph. GraphIndicator and CompositionGraph fill that gap: nodes declare named dependencies on other nodes’ outputs, the graph topologically sorts them once, and each bar is pushed through in that order with upstream outputs made available to downstream nodes. Node-local warmup composes with dependency warmup automatically.

Structs§

ComposedNode
A GraphIndicator built from closures, for nodes that genuinely consume other nodes’ outputs (e.g. a Chandelier Exit reading an upstream ATR node).
CompositionGraph
A dependency-ordered set of GraphIndicator nodes, executed together per bar.
Leaf
Adapts any existing Indicator into a dependency-free GraphIndicator leaf node, so the full existing indicator catalog can be used inside a CompositionGraph unchanged.

Enums§

GraphError
Error building or running a CompositionGraph.

Traits§

GraphIndicator
A node in a CompositionGraph. Unlike Indicator, compute also receives the current bar’s already-computed outputs of this node’s declared GraphIndicator::dependencies.