Add a sim-optimal broker node integrating the exposure stream into a pip-equity (signal-quality) stream #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
C10 (reframed in cycle 0007) makes the sim-optimal broker the measure of SIGNAL
QUALITY: a downstream consumer node that consumes the EXPOSURE stream (#4) plus
the price stream and integrates exposure*return into a synthetic pip-equity
stream. It does NOT consume position events (the position-event table is a
separate, deferred layer; realistic brokers consume that, later).
Delivered jointly with #4 in cycle 0007 (the signal-quality loop): this half is
the broker.
Scope
A node (C8) with two f64 inputs (exposure, price). It holds prev_price,
prev_exposure, cumulative pips, and per-instrument pip_size (reference metadata
beside the hot path, C7/C15 — never streamed). Each fired cycle it realizes the
return earned by the exposure HELD INTO the cycle (decided at t-1), causal and
look-ahead-free (C2):
and emits cumulative pip equity as its output port. Class (a) of C10:
deterministic, frictionless, perfect-fill — the level, currency-free playing
field for comparing and combining signals. The equity output is recorded by a
sink (cycle 0006 / C22), so the run yields a displayable trace.
Because a broker is an ordinary node, several can later attach at once (C10);
this issue ships only the sim-optimal one.
Anchors
exposure*return -> synthetic pip equity = signal quality.
Acceptance
[ ] A broker node consumes exposure + price, emits a pip-equity stream.
[ ] Frictionless, perfect-fill, deterministic (C1); no currency, no slippage.
[ ] PnL uses the exposure held into the cycle (decided at t-1) — no look-ahead (C2).
[ ] Per-instrument pip size sourced from reference metadata, not a stream.
[ ] Flat (zero exposure) during warm-up; equity starts at 0.
[ ] Equity stream recorded via a sink.
Add a sim-optimal broker node consuming position events into a pip-equity streamto Add a sim-optimal broker node integrating the exposure stream into a pip-equity (signal-quality) stream