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§
- Composed
Node - A
GraphIndicatorbuilt from closures, for nodes that genuinely consume other nodes’ outputs (e.g. a Chandelier Exit reading an upstream ATR node). - Composition
Graph - A dependency-ordered set of
GraphIndicatornodes, executed together per bar. - Leaf
- Adapts any existing
Indicatorinto a dependency-freeGraphIndicatorleaf node, so the full existing indicator catalog can be used inside aCompositionGraphunchanged.
Enums§
- Graph
Error - Error building or running a
CompositionGraph.
Traits§
- Graph
Indicator - A node in a
CompositionGraph. UnlikeIndicator,computealso receives the current bar’s already-computed outputs of this node’s declaredGraphIndicator::dependencies.