Static_clearContext-free removal of all entries (hard delete). Routes to DictionaryBacktest or DictionaryLive based on dto.backtest.
Static_deleteContext-free removal of the entry under key (hard delete).
Routes to DictionaryBacktest or DictionaryLive based on dto.backtest.
Flag indicating if the context is backtest or live
Dictionary name
Signal identifier
Logical timestamp at which the delete is happening
Entry key
true if an entry existed and was removed
Static_entriesContext-free listing of visible [key, value] pairs (look-ahead-guarded). Routes to DictionaryBacktest or DictionaryLive based on dto.backtest.
Flag indicating if the context is backtest or live
Dictionary name
Signal identifier
Logical timestamp at which the read is happening (look-ahead guard)
Array of [key, value] tuples
Static_getContext-free read of the value stored under key.
Routes to DictionaryBacktest or DictionaryLive based on dto.backtest.
Flag indicating if the context is backtest or live
Dictionary name
Signal identifier
Logical timestamp at which the read is happening (look-ahead guard)
Entry key
Stored value, or null
Static_hasContext-free check whether a visible entry exists under key.
Routes to DictionaryBacktest or DictionaryLive based on dto.backtest.
Flag indicating if the context is backtest or live
Dictionary name
Signal identifier
Logical timestamp at which the check is happening (look-ahead guard)
Entry key
true if a visible entry exists
Static_keysContext-free listing of visible entry keys (look-ahead-guarded). Routes to DictionaryBacktest or DictionaryLive based on dto.backtest.
Flag indicating if the context is backtest or live
Dictionary name
Signal identifier
Logical timestamp at which the read is happening (look-ahead guard)
Array of keys
Static_setContext-free write of value under key.
Routes to DictionaryBacktest or DictionaryLive based on dto.backtest.
Flag indicating if the context is backtest or live
Dictionary name
Signal identifier
Logical timestamp this value belongs to
Entry key
Value to store
Static_sizeContext-free count of visible entries (look-ahead-guarded). Routes to DictionaryBacktest or DictionaryLive based on dto.backtest.
Flag indicating if the context is backtest or live
Dictionary name
Signal identifier
Logical timestamp at which the read is happening (look-ahead guard)
Number of visible entries
Static_valuesContext-free listing of visible entry values (look-ahead-guarded). Routes to DictionaryBacktest or DictionaryLive based on dto.backtest.
Flag indicating if the context is backtest or live
Dictionary name
Signal identifier
Logical timestamp at which the read is happening (look-ahead guard)
Array of values
Remove all entries for the active pending or scheduled signal (hard delete). Resolves the signal, mode and timestamp from execution context — no context arguments required.
Remove the entry under key for the active pending or scheduled signal (hard delete).
Resolves the signal, mode and timestamp from execution context — no context arguments required.
Entry key
true if an entry existed and was removed
StaticdisableDisables dictionary storage by unsubscribing from signal lifecycle events. Safe to call multiple times.
StaticenableEnables dictionary storage by subscribing to signal lifecycle events. Clears memoized instances in DictionaryBacktest and DictionaryLive when a signal is cancelled or closed, preventing stale instances from accumulating. Uses singleshot to ensure one-time subscription.
List [key, value] pairs of visible entries for the active pending or scheduled signal. Resolves the signal, mode and timestamp from execution context — no context arguments required.
Read the value stored under key for the active pending or scheduled signal.
Resolves the signal, mode and timestamp from execution context — no context arguments required.
Check whether a visible entry exists under key for the active pending or scheduled signal.
Resolves the signal, mode and timestamp from execution context — no context arguments required.
Entry key
true if a visible entry exists
List keys of visible entries for the active pending or scheduled signal. Resolves the signal, mode and timestamp from execution context — no context arguments required.
Array of keys
Write value under key for the active pending or scheduled signal.
Resolves the signal, mode and timestamp from execution context — no context arguments required.
Count visible entries for the active pending or scheduled signal. Resolves the signal, mode and timestamp from execution context — no context arguments required.
Number of visible entries
List values of visible entries for the active pending or scheduled signal. Resolves the signal, mode and timestamp from execution context — no context arguments required.
Per-signal Map-like storage scoped by dictionary name.
Works like
new Map()but the entries are bound to the CURRENT pending or scheduled signal:new Dictionary({ name: "llm" }).set("key", value)inside any strategy lifecycle callback. Unlike State, no context is passed through arguments — every instance method resolves the signal, mode and timestamp itself frombacktest.methodContextService/backtest.executionContextService, so the class is unavailable outside async_hooks lifecycle callbacks by design.Look-ahead bias protection: every entry is stamped with the logical
whenit was written at; a read happening at an earlierwhendoes not see it, and a write with a smallerwhenoverwrites (a restarted backtest resets live-written entries).Requires an explicit
Dictionary.enable()call before use — the subscription it creates disposes per-signal instances when the signal is cancelled or closed, preventing stale instances from accumulating.Example