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.
- Start nodeStrategy setupNIFTY · Futures5m candlesEMA(9), EMA(21)
- Condition nodeEntry signalEMA(9) crosses aboveEMA(21)
- Entry nodeBuyFUT · 1 lot · MIS
- Condition nodeExit signalEMA(9) crosses belowEMA(21)
- Exit nodeClose positionAll lots
- Square off nodeEnd of dayAt 15:15
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
- Check — a strategy checker flags broken or contradictory logic (for example, settings the engine would ignore) before you run anything.
- Backtest — run it over historical NSE data; every trade comes with a per-node decision trace. See algo backtesting.
- Replay or paper trade — replay a past day second by second, or paper trade on live prices with no money at risk.
- 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?
How do I add a stop-loss or a target?
Can one strategy use several timeframes?
Can I start from a ready-made strategy?
Can I share a strategy without revealing it?
Related
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.