Visual programming for trading

A visual strategy builder for algorithmic trading

In TradeLayout you don't fill in a strategy form — you draw the strategy. Each step of your logic is a node on a canvas: a condition that has to be true, an order to place, a position to close, a rule for when to try again. Connecting them is the program.

The same strategy then runs unchanged in a backtest, in paper trading on live prices, and live through your broker.

Read the docs
Example: NIFTY futures EMA crossover
  1. Start node
    Strategy setup
    NIFTY · Futures
    5m candles
    EMA(9), EMA(21)
  2. Condition node
    Entry signal
    EMA(9) crosses above
    EMA(21)
  3. Entry node
    Buy
    FUT · 1 lot · MIS
  4. Condition node
    Exit signal
    EMA(9) crosses below
    EMA(21)
  5. Exit node
    Close position
    All lots
  6. Square off node
    End of day
    At 15:15
How a simple trend strategy reads on the canvas. An illustration of the node layout, not a backtest result.

The building blocks: node types

A strategy is made of a small set of node types. Each one does one job, which keeps a strategy readable even when the logic gets long:

  • Start — one per strategy. Sets the exchange, symbol and instrument type, the candle timeframes, the indicators, and optional "freeze windows" (for example, no new trades in the first 15 minutes).
  • Condition — a test that must be true for the flow to continue. The same node type acts as an entry signal or an exit signal depending on what it leads to.
  • Entry — opens one position leg: what to trade, buy or sell, quantity in lots, and intraday (MIS) or carry-forward (NRML).
  • Exit — closes all of a position, a percentage of it, or a number of lots.
  • Re-entry condition — lets a leg be entered again after it has closed, up to a maximum number of entries you set.
  • Go To — loops the flow back to an earlier condition, for strategies that cycle through entries and exits.
  • Square off — the end of the flow: exit now, at a time, a number of minutes before the close, or when a daily profit target or loss limit (in ₹) is reached.

Every node type is described in the strategy builder guide.

Conditions: the logic between the nodes

A condition compares two expressions. Operators include greater/less than, equals, crosses aboveand crosses below (compared with the previous bar, or the previous tick on live data), between, and in/not in a list. Conditions can be grouped with AND and OR, and groups can be nested.

The expressions on either side can be:

  • Indicator values and candle data (open, high, low, close, volume)
  • Live market data (last traded price)
  • Position data, P&L and underlying P&L
  • How long a position has been open
  • Specific time, current time, time offsets, days to expiry
  • Candle ranges (e.g. the opening range)
  • Math expressions combining any of the above
  • Global variables and values a node computed when it fired

Conditions are covered in detail in the conditions guide.

Indicators and multiple timeframes

The engine computes 130+ technical indicators — moving averages (EMA, SMA, WMA, HMA, VWAP…), oscillators (RSI, MACD, Stochastic, CCI, MFI…), trend and volatility tools (ADX, Supertrend, Parabolic SAR, ATR, Bollinger Bands, Keltner and Donchian channels), pivots (CPR, Camarilla, Fibonacci), candlestick patterns, and price-structure tools such as fair value gaps, order blocks and swing levels.

A strategy can use up to three timeframes at once from 1m, 3m, 5m, 10m, 15m, 30m, 1h and 1d, with indicators attached to each — so a condition can require, say, a 1-hour trend filter and a 5-minute entry trigger together.

Variables, re-entries and loops

Strategies often need to remember something: the low of the signal candle, how many trades were taken today, the price at which the first leg filled. Global variables hold values across the trading day, and nodes can set or update them when they fire. Conditions can then read them like any other value.

Re-entries are explicit: a re-entry condition decides when a closed leg may be taken again, and a per-leg maximum caps how many times. A Go To node can send the flow back to an earlier condition. Because these are drawn rather than hidden in settings, you can see exactly when your strategy will trade again.

Visual programming vs. a strategy settings form

Many strategy builders are configuration forms: you pick from the options the form exposes — entry time, legs, stop-loss percentage, re-entry on/off. That is fast for the strategies the form was designed for, and limiting for everything else.

A visual programming environment gives you the primitives instead — conditions, orders, exits, variables, loops — and you decide how they connect. The trade-offs, honestly:

What you gain

  • Logic the form never anticipated (multi-condition exits, staged entries, state across trades)
  • Every rule is visible on the canvas — nothing implied by a default
  • A backtest can show which node made each decision

What it costs

  • More steps for a simple, standard strategy than a ready-made form
  • You have to think about the flow, e.g. building a stop-loss as a condition and an exit
  • A short learning curve for the node types

To shorten that curve there are 17 strategy templates (opening range breakout, VWAP pullback, Supertrend + EMA, fair value gap and more) and an AI builder that drafts the nodes from a plain English description and explains an existing strategy back to you.

From the canvas to the market

  1. Check — a strategy checker flags broken or contradictory logic (for example, settings the engine would ignore) before you run anything.
  2. Backtest — run it over historical NSE data; every trade comes with a per-node decision trace. See algo backtesting.
  3. Replay or paper trade — replay a past day second by second, or paper trade on live prices with no money at risk.
  4. Go live — connect Zerodha or Angel One and run the same strategy with real orders. See automated trading.

Strategies export to a .tls file you can share as an editable copy — or as a run-onlycopy, encrypted so the recipient can run it but not see its logic.

Current limitations

What this does not do today, so you can decide before you sign up:

  • Orders are market orders. Limit orders are not available yet.
  • Stop-loss, target and trailing stop are not per-leg switches: you build them as a condition (on P&L, premium or price) followed by an Exit node.
  • Candles start at 1 minute; there are no sub-minute candles (conditions can still be evaluated on every tick in tick-level backtests, paper and live).
  • Up to three timeframes per strategy, and one leg per Entry node.
  • There is no code or scripting layer: indicators come from the built-in catalogue, combined with math expressions.

Questions

Do I need to know how to code?

No. Describe the idea in your own words and the AI builder writes the strategy for you — it asks about anything unclear, then places the nodes on the canvas. You can also build the logic yourself by adding and connecting nodes and filling in their settings. Either way there is no code to write, no code export step before backtesting or live trading, and the AI builder costs no extra credits or money beyond your plan.

How do I add a stop-loss or a target?

Add a Condition node that watches the position's P&L, premium or price, and connect it to an Exit node. It is one more node than a form toggle, but you can make it depend on anything — time of day, an indicator, the other legs.

Can one strategy use several timeframes?

Yes, up to three — for example a 1-hour trend filter with a 5-minute entry. Indicators are attached to a specific timeframe.

Can I start from a ready-made strategy?

Yes. There are 17 templates for common setups, and the AI builder can draft a strategy from a description. Either way you get ordinary nodes you can edit.

Can I share a strategy without revealing it?

Yes. A run-only export is encrypted: the person you send it to can backtest, paper trade or run it, but cannot open its logic.

Try it on your own idea

Sign up free, build the strategy on the canvas, and backtest it before you connect a broker. Trading involves risk of loss; a backtest is not a promise of future results — see the risk disclaimer.

See pricing