Skip to content

Memory slots

In Structure, a strategy often needs to remember values from one evaluation to the next. That remembered information is stored in memory slots.

Memory slots hold values the strategy will need again later.

Common examples include:

  • rolling numeric values
  • timestamps such as the last entry or exit time
  • flags or counters
  • other values that help the strategy decide what to do next

You can create memory slots from their dedicated “Memory” pane on the right. This is where you give the memory slot it’s data type and display name.

Adding a memory slot in the strategy revision editor.

You can place Memory Read or Memory Write nodes from the context menu.

Placing memory slot nodes into the graph for a strategy revision.

After a slot exists, it becomes selectable on the node itself.

Graph nodes related to reading or writing memory slots in the strategy editor.

Memory slots should have a clear job. If a value needs to survive into the next evaluation, it belongs in memory. If it only matters for the current evaluation, it usually belongs in the graph instead.

Once memory is in place, the next step is usually to connect it back into the strategy graph and state logic so it can influence future evaluations.