Browse documentation

Research

Build your own indicators and test trading strategies

Create custom indicators and strategies in Basis Builder. Connect blocks, plot your own studies and test strategies with replay, realistic fills and held-out data.

12 min readUpdated 2026-10-127 sections

Create an indicator without learning a scripting language

Builder is the visual workspace for both indicators and strategies. Choose an indicator template or start a new indicator, then connect the values you want to see to Plot blocks. The same data, math, comparisons and chart-indicator blocks can be combined into your own research tool.

  1. 01

    Name the question

    Start with a precise measurement: a trend made from several averages, volume relative to its baseline, or price distance measured in ATR. Choose the market and interval you want to inspect.

  2. 02

    Connect the calculation

    Wire inputs through calculation blocks into a Plot. Add more Plot blocks for additional outputs. A Parameter block lets you change an input without rebuilding the graph. Missing or warming-up inputs stay missing rather than becoming a plausible zero.

  3. 03

    Choose the presentation

    Give each plot a name and color. Use a line for a continuous value or a histogram for a bar-by-bar measurement, and choose the price chart or a separate pane. Keep unlike units off the same price scale.

  4. 04

    Preview, save and apply

    Inspect the indicator in the Builder preview, save it under a useful name and use Apply to Chart. Reopen the saved indicator to change its blocks; a new idea does not require starting again.

  5. 05

    Validate before using it

    Check warm-up, missing data and a few values by hand. Compare more than one market or interval. The chart uses available bars, not unlimited history, and a custom indicator does not prove that a trade will be profitable.

Practical tip

Builder uses Basis blocks and its formula engine, not Pine Script. It does not import or export Pine scripts, and applying a tool to the chart never places a real order.

Build a strategy from the same blocks

  1. 01

    Open Builder

    It sits beside the Screener. Choose a strategy template, such as EMA Crossover or Short Covering, or begin with a blank strategy. Existing saved strategies remain available; a strategy saved as formula rules opens here as blocks, with identical results.

  2. 02

    Add and connect blocks

    Right-click the canvas or press Tab to search more than 400 blocks: every chart indicator, computed by the same code as the chart, market data, order flow, derivatives, time and session filters, candle patterns and swing points, every Formula Lab function, comparisons and logic. A chart indicator’s settings can be driven by a Parameter, so Optimize can sweep them. Drag from a pin to connect it. Dropping a wire on empty canvas offers only the blocks that can take it.

  3. 03

    Read the test as you build

    Every block shows its live value, the Strategy block shows how often each condition was true, and the Performance tab re-runs on real bars. A sentence above the numbers says the most important thing about the test, and the Checks tab lists the rest: trades, one trade carrying the result, the last 30% of the window, doubled costs, buy and hold. Open the Chart tab to see every trade on candles, select a block to draw it there, and move along the bars: each block shows its value at that bar. Select a row under Trades to jump to that trade. Stops in percent or ATR, trailing stops, break-even, targets in percent, ATR or R, cooldown, risk per trade, costs and position size live under Exits & Risk.

  4. 04

    Save it and run it from Strategy Lab

    Edits save as you make them; a template becomes yours when you press Save or change it. Strategy Lab, beside the chart, lists every strategy you built, with Run on Chart and Edit. It runs each one with the stops, targets, sizing and costs it was saved with, so the chart shows the numbers the builder showed.

  5. 05

    Apply it to the chart

    Apply to Chart draws the trades on your chart. Blocks compile to the same formula language and backtester as every other strategy here, so fills happen on the next bar and there is no separate engine to trust.

One coin, many coins, or one coin reading another

A value from another market or a higher interval reaches your rules only once its bar has closed. A 4h bar that opens at 12:00 is not known until 16:00, so a 13:00 decision cannot read it, which is what keeps a filter like this from flattering a backtest. Top lists are ranked by today's volume, so coins that were delisted or faded are missing. That flatters any list of this kind, so treat a good result as a reason to look further, not as proof.

You want toDo this
Trade one coinChange the market with the symbol search above the editor. A strategy is not tied to a coin, so the same blocks run on whatever is on screen, on any interval, and Apply to Chart follows the chart.
See whether an idea travelsOpen the Markets tab and run the Top 10, 30, 50 or 100 by volume, one of your lists, or symbols you type. Each market is tested on its own. The portfolio splits capital equally and never moves it, a market that did not trade counts as flat, and the table shows what each market is signalling on its latest closed bar. Selecting a row opens that market.
Filter by another market or intervalAdd a Reference Market block, name BTCUSDT or any other market, choose an interval, and connect its values. Under Compute, a formula such as ema(close, 200) is worked out on that market's own bars. Templates such as BTC Trend Filter and Higher Timeframe Trend start you off.
Check it is not a flukeTimeframes runs the same settings on neighbouring intervals. Optimize sweeps your Parameter blocks and marks settings that only work at one exact value. First 70% and Last 30% under Performance split the window in two, so you can tune on one part and judge on the other.

Start with causal rules and explicit execution

A valid backtest computes each signal from information available at that moment and applies a declared fill model. Basis strategies expose entries, exits, stops and metrics on the chart so the path can be inspected rather than trusted as one final number.

  • No future-bar inputs or centered calculations.
  • Signal timing separated from fill timing.
  • Fees, slippage and position sizing included in the scenario.
  • Trades and chart markers available for manual inspection.

Read a metric set, not one headline number

MetricWhy it matters
Net returnOutcome, but sensitive to size and period
Sharpe / risk-adjusted returnReturn relative to variability
Maximum drawdownObserved capital and psychological pressure
Profit factorGross win relative to gross loss
ExpectancyAverage payoff per trade
Trade countWhether the sample can support the conclusion
ExposureHow much time and capital the strategy actually used

Separate discovery from evaluation

  1. 01

    Define the hypothesis

    Write why the rule could work before optimizing parameters.

  2. 02

    Choose a training period

    Use it to develop and reject variants.

  3. 03

    Lock the rule

    Stop changing it before opening held-out data.

  4. 04

    Evaluate out of sample

    Judge degradation, trade count and regime sensitivity.

  5. 05

    Walk forward

    Repeat train/test windows to see whether ranking persists through time.

Reject beautiful tests with weak evidence

  • Very few trades or one exceptional winner.
  • Large performance drop after realistic fees.
  • One exact parameter works while nearby values fail.
  • All profit comes from one symbol or regime.
  • Hundreds of trials were searched but not reported.
  • The held-out period changes the sign of expectancy.

Important

Backtesting estimates historical behavior under assumptions. It does not prove future profitability.