← All guides

Choosing a builder

Four ways to write a strategy, and which to pick.

3 min read

The four builders

  • Strategy Form - fill in the blanks: indicators and conditions from lists, plus stop loss, target and sizing. The quickest start; available for every market.
  • Visual Builder - connect logic blocks on a canvas. Good when the rules have several branches.
  • Code Editor - write the strategy in Python. Full control; the Strategy Intelligence panel reviews it.
  • Options Wizard - build a multi-leg options position step by step (spreads, straddles, condors). Offered for F&O and commodities only.

The Strategy Form, rule by rule

Example - buy when the price crosses above its 50-bar average: under Buy when, choose Close on the left, "crosses above", and on the right an Indicator - SMA, period 50. Set a stop loss, then Backtest.

  • A rule reads as a sentence: a price or an indicator, a condition (is above, is below, crosses above, crosses below), then a price, an indicator or a number.
  • Price - the bar's close, open, high, low or volume. Indicator - about a hundred from the engine's list, each with its settings; one that returns several lines (MACD, Bollinger Bands, Supertrend) asks which line the rule compares.
  • Buy when - the rules that open a position, joined with and / or. Close early when - optional rules that close it before the stop loss or target.
  • Risk & sizing, under the rules - the stop loss (required), target and trailing stop (left empty: none), the quantity, a daily loss limit, pyramiding.
  • Trading hours - new positions open only inside them; exits work at any time.

The Visual Builder, block by block

Example - buy when the price crosses above its 50-bar average: add Price (Close) and an Indicator (SMA, period 50); wire Price into the Compare's A and SMA into its B; set the Compare to "A crosses above B"; wire the Compare into Buy. Add a stop loss in Risk & sizing, then Backtest.

  • Price - the bar's close, open, high, low or volume.
  • Indicator - about a hundred, from the engine's own list (SMA, EMA, RSI, MACD, Supertrend, Ichimoku and more), each with its settings. One that returns several lines (MACD, Bollinger Bands) asks which line the rule compares.
  • Compare - reads A (its top input) against B (its bottom input): above, below, crosses above, crosses below. With nothing wired into B it compares A with a number you enter.
  • AND / OR - combines Compares before they reach an order.
  • Buy, Sell - the orders a Compare (or a gate) leads to.
  • Stop loss, target and trailing stop - set in Risk & sizing beside the canvas; each also shows as an Exit block.

Which market a strategy is for

A strategy is made for one kind of market. Cash / spot strategies buy and sell the thing itself (a share, a coin); derivatives strategies trade futures and options. The two are built and run separately and are not interchangeable.

Versions

Each save keeps a version, so you can see what changed and go back to an earlier one from the strategy's page.

In the app (after you sign in): Create a strategy.

Next guideBacktesting: settings, costs and metrics

Pehle parkho, phir paisa lagao.

A backtest shows the past, not the future - but it costs nothing to find out.

Create your free account

Backtesting works best on a laptop

Free while in beta. Bharosa data se, tips se nahi.

For education only, not investment advice. Past results do not predict future returns. Read the SEBI / risk disclaimer.