tradingbacktest.live Log inStart free

How to backtest a trading strategy without coding

A step-by-step method to turn a trading idea into rules, test it on real data with real costs, and judge the result, without writing a line of code.

Educational content, not investment advice. Backtests are simulations on past data; results on a live account can differ.

Most traders have ideas they never test, because testing usually means learning a programming language first. It does not have to. A backtest only needs three things: precise rules, good data and honest costs. Here is a method that works with a visual builder.

Step 1: write the idea as rules

An idea becomes testable when every part of it is precise. “Buy pullbacks in an uptrend” is not yet a rule. These are:

  • Context: the trend is up when the 200-period EMA is below the price.
  • Trigger: RSI 14 crosses back above 30.
  • Exit: stop at 1.5 times the ATR, target at 2 times the stop.
  • Risk: 1% of the account per trade.

If you cannot write a rule for a part of your idea, that part is discretionary. Either find a rule that captures it or leave it out of the test.

Step 2: assemble the blocks

In a block builder each part of the rule is one block: an indicator, a comparison, a number. The builder shows the result as a sentence, which is the best check that the rules say what you mean.

Step 3: choose data that matches how you trade

  • Market and timeframe: the ones you will trade.
  • Period: at least two to three years, ideally including calm and volatile phases.
  • Precision: candle-level simulation is fine for wide stops; tight stops need tick or second-level data, because the order of prices inside a candle decides the trade.

Step 4: add real costs

Use the spread, commission and swap of your broker or prop firm. A strategy that makes 0.2 R per trade before costs can lose money after them, especially on short timeframes.

Step 5: judge the result

Read beyond net profit:

Question Where to look
Is there enough data? Number of trades (aim for 100 or more)
Is the edge real? Profit factor and expectancy after costs
Can I live with it? Maximum drawdown and its duration
Is it steady? Monthly results
How bad could it get? Monte Carlo drawdown at the 95th percentile

Step 6: try to break it

Test another period, another market and slightly different settings. A good idea survives these changes with smaller profits; a fitted one collapses. Only then is the strategy worth trading on a demo or small account.

Summary

Backtesting without code is about discipline, not software: precise rules, data that matches your trading, real costs and a hard look at the result. The tool only removes the programming.

FAQ

Can I backtest a trading strategy without coding?

Yes. A visual builder turns each part of the rules into a block: an indicator, a comparison or a number. The test then runs on historical data like a coded strategy.

How many years of data should a backtest cover?

At least two to three years, including calm and volatile phases, with enough trades: 100 or more is a good target.

Should a backtest include trading costs?

Always. Spread, commission and swap can turn a small edge into a loss, especially on short timeframes.

Try it on real dataBuild the strategy with blocks and test it on real ticks with spreads, commissions and swaps. The free plan needs no card.

Start free
tradingbacktest Research

We build the backtesting engine of tradingbacktest.live and write about what our data shows. Figures come from our own tick and 1-minute data, with costs included. How we test.

Read more