Skip to main content

SMITH Overview

SMITH is FORJ's visual strategy editor — the workspace where you design, configure, and build your trading strategies. In SMITH, you lay out your strategy's logic on a canvas by creating states, defining conditions, connecting transitions, and configuring actions.

The Editor Layout

When you open SMITH, you see three main areas:

Canvas

The center of the editor is an interactive graph canvas powered by a node-based flow engine. Each state is rendered as a node with its outgoing transitions listed inside it, and transitions are drawn as directed edges connecting state nodes. You can zoom, pan, and drag state nodes freely — positioning is purely visual and doesn't affect behavior. When you add transitions, the canvas automatically draws edge connections between states so you can see the flow at a glance.

Header Bar

The top bar gives you quick access to:

  • Strategy name — shows the current strategy (or "(New)" for unsaved work)
  • Undo / Redo — step backward or forward through your edits (keyboard shortcuts: Ctrl+Z / Ctrl+Shift+Z, or Cmd equivalents on Mac). SMITH takes automatic snapshots as you work, keeping up to 50 history states.
  • Orphan references — alerts you when conditions, actions, or variables reference something that no longer exists
  • Enable / Disable toggle — turn event processing on or off for a saved strategy
  • Edit name — rename the strategy
  • Strategy Toolbar (gear icon) — opens the full set of configuration tools
  • Save — saves the strategy when the checklist is satisfied

Creation Checklist

A collapsible panel at the bottom tracks whether your strategy meets the minimum requirements to save:

RequirementWhat It Means
Valid strategy nameThe name passes validation (non-empty, unique in your workspace)
Context configuredSymbol, direction, candle length, SL pips, TP pips, and pip size are all set
At least two statesYou need a minimum of two states
Initial state setOne state must be marked as the starting point
All states have transitionsEvery state needs at least one outgoing transition

Once all items are satisfied, the Save button activates.

Strategy Toolbar

Click the gear icon in the header to open the Strategy Toolbar — a quick-action menu for all major configuration tasks:

ActionWhat It Does
Configure ContextSet symbol, direction, candle length, risk parameters, custom variables, and indicator subscriptions
Add New StateCreate a new state on the canvas
Data SubscriptionsSubscribe the strategy to data streams so it receives market events
Configure AlertsDefine alert triggers for this strategy
Manage ConditionsView, create, edit, and delete all conditions
Manage ActionsView, create, edit, and delete all actions
Manage TransitionsView, create, edit, and delete all transitions with sorting and grouping
Add Global Event HandlerCreate a transition that can fire from any state
Clear StrategyErase all form data and start fresh

State Cards

Each state on the canvas is a card with:

  • Header — the state name, plus buttons to edit, configure, expand/collapse, or delete
  • Initial state toggle — marks this state as the strategy's starting point
  • Add Transition button — create a new outgoing transition from this state
  • Transition list — shows all outgoing transitions with their trigger type, target state, and condition/action counts

What's Next