Managing Transitions
Transitions define how your strategy moves between states. Each transition specifies a trigger (what causes it), an optional set of conditions (what must be true), and optional actions (what to do when it fires).
Opening the Transitions Manager
- In SMITH, click the gear icon to open the Strategy Toolbar.
- Select Manage Transitions.
The Transitions Manager gives you a centralized view of every transition in your strategy — both regular transitions (from a specific state) and global event handlers (from any state).
Transition Display
Each transition in the list shows:
- Source state — where the transition starts (or "any state" for globals)
- Target state — where the transition leads
- Trigger type — an icon and label indicating what causes evaluation:
| Trigger | Description |
|---|---|
| Candle | Fires on a new candle event from a candle data stream |
| Event | Fires on a custom event from an event data stream |
| After | Fires after a specified time delay |
| Always | Evaluates immediately on every state entry (no external trigger needed) |
| Global | A global event handler — can fire from any state |
- Condition count — how many conditions are attached
- Action count — how many actions are attached
Sorting and Grouping
Use the sort toggle at the top to change how transitions are organized:
| View | Groups By |
|---|---|
| Category | Trigger type — Event Triggers, Time-Based, Immediate, No Trigger, Global Handlers |
| Source | Source state — all transitions leaving each state together |
| Target | Target state — all transitions arriving at each state together |
| Stream | Data stream — grouped by which instrument/stream triggers them |
| A-Z | Alphabetical by source then target state |
Bulk Replace Event Source
The Replace Source button lets you change the event source across multiple transitions at once. This is useful when you want to switch a strategy from one data stream to another without editing each transition individually.
Editing and Deleting
- Click Edit on any transition to modify its trigger, target, conditions, or actions
- Click Delete to remove a transition (confirms before deleting)