feature
Emit not collected
You expected definition events to show up in Collect or in a study, but nothing is there.
Most often the emit is missing a label, the event id was never declared, oncePer suppressed repeats, or Collect was run on the wrong version / range.
Checklist
meta.kindis"flow"— required for Collectable emits.Event declared —
events.declare({ id })matchesctx.emitid.Label present — missing labels are dropped at runtime (
events/emit-missing-label).oncePernot suppressing — keys / windowBars may block repeats you expected.Snapshot / version — Collect the version that contains your emit logic.
Instrument / range / timeframe — Collect settings must cover bars where conditions fire.
Study alias —
ctx.event.flowmust matchflows.declare({ as }), not necessarily the slug.
Minimal verify emit
ctx.emit("tick", { reason: "test" }, {
label: "Test tick",
price: ctx.close,
timeStart: ctx.time,
});If even this never Collects, check kind, snapshot, and Collect range before debugging study filters.
