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.
What memory slots do
Section titled “What memory slots do”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
In the editor
Section titled “In the editor”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.
You can place Memory Read or Memory Write nodes from the context menu.
After a slot exists, it becomes selectable on the node itself.
Practical takeaway
Section titled “Practical takeaway”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.
Next step
Section titled “Next step”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.