Visual Strategy Builder

Build trading strategies by dragging and connecting indicators, logic blocks, and actions without writing code.

How It Works

The Visual Builder converts your flow into strategy code. Data flows left to right:

Indicators
Logic
Actions

Example: SMA(20) CROSSOVER SMA(50) -> BUY

Node Types

Indicator Nodes

SMA, EMA, RSI, MACD, Bollinger Bands, and more. Edit parameters and timeframe in settings. Multi-output indicators can route different outputs to different logic blocks.

Logic Nodes

Combine inputs with CROSSOVER, CROSSUNDER, >, <, >=, <=, ==, AND, OR. Connect indicator outputs to A and B, then edit operators after placement.

Action Nodes

BUY defines entry. SELL/Exit defines close conditions. Connect a logic node's signal output to the action trigger. At least one BUY linked to logic is required.

Connection Rules

  • Indicator output -> Logic input (A or B)
  • Logic signal output -> Action trigger
  • Logic signal -> Logic input (for AND/OR nesting)
  • Invalid connections are rejected (e.g. indicator directly to action)

Risk Settings

  • Stop-loss %: applied to all positions
  • Take-profit %: target exit
  • Trailing stop % (optional): locks in profits

Example Strategies

SMA Crossover

Buy when fast SMA crosses above slow SMA; sell when it crosses below.

RSI Mean Reversion

Buy when RSI < 30; sell when RSI > 70. Use constants for thresholds.

MACD Histogram

Buy when histogram crosses above zero; sell when it crosses below.

Generate & Run

  • Use Generate to convert flow into DSL code.
  • Use Generate & Run to execute a backtest from the Visual tab.
  • Validation requires at least one BUY action connected to a logic block with both inputs.

Save, Load & Templates

Save stores your layout in browser storage. Load restores it. Templates in the sidebar provide pre-built starters (SMA Crossover, RSI Oversold, MACD Histogram).