14c43474ab
Source-blind consumer run over the #271 surface: a NY first-bar- momentum Session authored purely as data and run e2e over --real US500; a LinComb{arity:3} blend binding the arity-unlocked weights with the Session period swept (4 members, reproduced 4/4 bit-identically); eight strict-form refusal probes (all exit 1, actionable prose); an args composite registered and use-spliced into a consumer (v2 propagates, ids stable, C29 doc gate holds). Findings routed: Count lexical form + asymmetry ratified into glossary/guide (follow-up commit); introspect dead-end on arg-bearing ports and the missing CostSum wiring path absorbed into #341. refs #271
29 lines
1.5 KiB
JSON
29 lines
1.5 KiB
JSON
[
|
|
{"op": "source", "role": "open", "kind": "F64"},
|
|
{"op": "source", "role": "high", "kind": "F64"},
|
|
{"op": "source", "role": "low", "kind": "F64"},
|
|
{"op": "source", "role": "close", "kind": "F64"},
|
|
{"op": "add", "type": "Resample", "name": "c15", "bind": {"period_minutes": {"I64": 15}}},
|
|
{"op": "feed", "role": "open", "into": ["c15.open"]},
|
|
{"op": "feed", "role": "high", "into": ["c15.high"]},
|
|
{"op": "feed", "role": "low", "into": ["c15.low"]},
|
|
{"op": "feed", "role": "close", "into": ["c15.close"]},
|
|
{"op": "add", "type": "Sub", "name": "body"},
|
|
{"op": "connect", "from": "c15.close", "to": "body.lhs"},
|
|
{"op": "connect", "from": "c15.open", "to": "body.rhs"},
|
|
{"op": "add", "type": "Sign", "name": "dir"},
|
|
{"op": "connect", "from": "body.value", "to": "dir.value"},
|
|
{"op": "add", "type": "Session", "name": "sess",
|
|
"args": {"tz": "America/New_York", "open": "09:30"},
|
|
"bind": {"period_minutes": {"I64": 15}}},
|
|
{"op": "connect", "from": "c15.close", "to": "sess.trigger"},
|
|
{"op": "add", "type": "EqConst", "name": "isfirst", "bind": {"target": {"I64": 1}}},
|
|
{"op": "connect", "from": "sess.bars_since_open", "to": "isfirst.value"},
|
|
{"op": "add", "type": "When", "name": "firstmom"},
|
|
{"op": "connect", "from": "dir.value", "to": "firstmom.value"},
|
|
{"op": "connect", "from": "isfirst.value", "to": "firstmom.gate"},
|
|
{"op": "add", "type": "Bias", "name": "bias", "bind": {"scale": {"F64": 1.0}}},
|
|
{"op": "connect", "from": "firstmom.value", "to": "bias.signal"},
|
|
{"op": "expose", "from": "bias.bias", "as": "bias"}
|
|
]
|