[ {"op": "doc", "text": "consumer: splice the NY session anchor by name, go long 1.0 on the first session bar, flat otherwise"}, {"op": "source", "role": "price", "kind": "F64"}, {"op": "use", "ref": {"name": "ny_anchor"}, "name": "anchor"}, {"op": "feed", "role": "price", "into": ["anchor.price"]}, {"op": "add", "type": "EqConst", "name": "isfirst", "bind": {"target": {"I64": 1}}}, {"op": "connect", "from": "anchor.bars", "to": "isfirst.value"}, {"op": "add", "type": "Const", "name": "one", "bind": {"value": {"F64": 1.0}}}, {"op": "feed", "role": "price", "into": ["one.clock"]}, {"op": "add", "type": "Const", "name": "zero", "bind": {"value": {"F64": 0.0}}}, {"op": "feed", "role": "price", "into": ["zero.clock"]}, {"op": "add", "type": "Select", "name": "sel"}, {"op": "connect", "from": "isfirst.value", "to": "sel.cond"}, {"op": "connect", "from": "one.value", "to": "sel.then"}, {"op": "connect", "from": "zero.value", "to": "sel.otherwise"}, {"op": "add", "type": "Bias", "name": "bias", "bind": {"scale": {"F64": 1.0}}}, {"op": "connect", "from": "sel.value", "to": "bias.signal"}, {"op": "expose", "from": "bias.bias", "as": "bias"} ]